kirkwood-netgear_readynas_duo_v2.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. /dts-v1/;
  2. #include "kirkwood.dtsi"
  3. #include "kirkwood-6282.dtsi"
  4. / {
  5. model = "NETGEAR ReadyNAS Duo v2";
  6. compatible = "netgear,readynas-duo-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,kirkwood";
  7. memory { /* 256 MB */
  8. device_type = "memory";
  9. reg = <0x00000000 0x10000000>;
  10. };
  11. chosen {
  12. bootargs = "console=ttyS0,115200n8 earlyprintk";
  13. };
  14. mbus {
  15. pcie-controller {
  16. status = "okay";
  17. pcie@1,0 {
  18. status = "okay";
  19. };
  20. };
  21. };
  22. ocp@f1000000 {
  23. pinctrl: pinctrl@10000 {
  24. pmx_button_power: pmx-button-power {
  25. marvell,pins = "mpp47";
  26. marvell,function = "gpio";
  27. };
  28. pmx_button_backup: pmx-button-backup {
  29. marvell,pins = "mpp45";
  30. marvell,function = "gpio";
  31. };
  32. pmx_button_reset: pmx-button-reset {
  33. marvell,pins = "mpp13";
  34. marvell,function = "gpio";
  35. };
  36. pmx_led_blue_power: pmx-led-blue-power {
  37. marvell,pins = "mpp31";
  38. marvell,function = "gpio";
  39. };
  40. pmx_led_blue_activity: pmx-led-blue-activity {
  41. marvell,pins = "mpp38";
  42. marvell,function = "gpio";
  43. };
  44. pmx_led_blue_disk1: pmx-led-blue-disk1 {
  45. marvell,pins = "mpp23";
  46. marvell,function = "gpio";
  47. };
  48. pmx_led_blue_disk2: pmx-led-blue-disk2 {
  49. marvell,pins = "mpp22";
  50. marvell,function = "gpio";
  51. };
  52. pmx_led_blue_backup: pmx-led-blue-backup {
  53. marvell,pins = "mpp29";
  54. marvell,function = "gpio";
  55. };
  56. };
  57. clocks {
  58. #address-cells = <1>;
  59. #size-cells = <0>;
  60. g762_clk: fixedclk {
  61. compatible = "fixed-clock";
  62. #clock-cells = <0>;
  63. clock-frequency = <8192>;
  64. };
  65. };
  66. i2c@11000 {
  67. status = "okay";
  68. rs5c372a: rs5c372a@32 {
  69. compatible = "ricoh,rs5c372a";
  70. reg = <0x32>;
  71. };
  72. g762: g762@3e {
  73. compatible = "gmt,g762";
  74. reg = <0x3e>;
  75. clocks = <&g762_clk>; /* input clock */
  76. fan_gear_mode = <0>;
  77. fan_startv = <1>;
  78. pwm_polarity = <0>;
  79. };
  80. };
  81. serial@12000 {
  82. pinctrl-0 = <&pmx_uart0>;
  83. pinctrl-names = "default";
  84. status = "okay";
  85. };
  86. nand@3000000 {
  87. status = "okay";
  88. partition@0 {
  89. label = "u-boot";
  90. reg = <0x0000000 0x180000>;
  91. read-only;
  92. };
  93. partition@180000 {
  94. label = "u-boot-env";
  95. reg = <0x180000 0x20000>;
  96. };
  97. partition@200000 {
  98. label = "uImage";
  99. reg = <0x0200000 0x600000>;
  100. };
  101. partition@800000 {
  102. label = "minirootfs";
  103. reg = <0x0800000 0x1000000>;
  104. };
  105. partition@1800000 {
  106. label = "jffs2";
  107. reg = <0x1800000 0x6800000>;
  108. };
  109. };
  110. sata@80000 {
  111. status = "okay";
  112. nr-ports = <2>;
  113. };
  114. };
  115. gpio-leds {
  116. compatible = "gpio-leds";
  117. pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity
  118. &pmx_led_blue_disk1 &pmx_led_blue_disk2
  119. &pmx_led_blue_backup >;
  120. pinctrl-names = "default";
  121. power_led {
  122. label = "status:blue:power_led";
  123. gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */
  124. linux,default-trigger = "default-on";
  125. };
  126. activity_led {
  127. label = "status:blue:activity_led";
  128. gpios = <&gpio1 6 1>; /* GPIO 38 Active Low */
  129. };
  130. disk1_led {
  131. label = "status:blue:disk1_led";
  132. gpios = <&gpio0 23 1>; /* GPIO 23 Active Low */
  133. };
  134. disk2_led {
  135. label = "status:blue:disk2_led";
  136. gpios = <&gpio0 22 1>; /* GPIO 22 Active Low */
  137. };
  138. backup_led {
  139. label = "status:blue:backup_led";
  140. gpios = <&gpio0 29 1>; /* GPIO 29 Active Low*/
  141. };
  142. };
  143. gpio_keys {
  144. compatible = "gpio-keys";
  145. #address-cells = <1>;
  146. #size-cells = <0>;
  147. pinctrl-0 = <&pmx_button_power &pmx_button_backup
  148. &pmx_button_reset>;
  149. pinctrl-names = "default";
  150. button@1 {
  151. label = "Power Button";
  152. linux,code = <116>; /* KEY_POWER */
  153. gpios = <&gpio1 15 1>;
  154. };
  155. button@2 {
  156. label = "Reset Button";
  157. linux,code = <0x198>; /* KEY_RESTART */
  158. gpios = <&gpio0 13 1>;
  159. };
  160. button@3 {
  161. label = "Backup Button";
  162. linux,code = <133>; /* KEY_COPY */
  163. gpios = <&gpio1 13 1>;
  164. };
  165. };
  166. regulators {
  167. compatible = "simple-bus";
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. usb_power: regulator@1 {
  171. compatible = "regulator-fixed";
  172. reg = <1>;
  173. regulator-name = "USB 3.0 Power";
  174. regulator-min-microvolt = <5000000>;
  175. regulator-max-microvolt = <5000000>;
  176. enable-active-high;
  177. regulator-always-on;
  178. regulator-boot-on;
  179. gpio = <&gpio1 14 0>;
  180. };
  181. };
  182. };
  183. &mdio {
  184. status = "okay";
  185. ethphy0: ethernet-phy@0 {
  186. device_type = "ethernet-phy";
  187. reg = <0>;
  188. };
  189. };
  190. &eth0 {
  191. status = "okay";
  192. ethernet0-port@0 {
  193. phy-handle = <&ethphy0>;
  194. };
  195. };