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. sata@80000 {
  87. status = "okay";
  88. nr-ports = <2>;
  89. };
  90. };
  91. gpio-leds {
  92. compatible = "gpio-leds";
  93. pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity
  94. &pmx_led_blue_disk1 &pmx_led_blue_disk2
  95. &pmx_led_blue_backup >;
  96. pinctrl-names = "default";
  97. power_led {
  98. label = "status:blue:power_led";
  99. gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */
  100. linux,default-trigger = "default-on";
  101. };
  102. activity_led {
  103. label = "status:blue:activity_led";
  104. gpios = <&gpio1 6 1>; /* GPIO 38 Active Low */
  105. };
  106. disk1_led {
  107. label = "status:blue:disk1_led";
  108. gpios = <&gpio0 23 1>; /* GPIO 23 Active Low */
  109. };
  110. disk2_led {
  111. label = "status:blue:disk2_led";
  112. gpios = <&gpio0 22 1>; /* GPIO 22 Active Low */
  113. };
  114. backup_led {
  115. label = "status:blue:backup_led";
  116. gpios = <&gpio0 29 1>; /* GPIO 29 Active Low*/
  117. };
  118. };
  119. gpio_keys {
  120. compatible = "gpio-keys";
  121. #address-cells = <1>;
  122. #size-cells = <0>;
  123. pinctrl-0 = <&pmx_button_power &pmx_button_backup
  124. &pmx_button_reset>;
  125. pinctrl-names = "default";
  126. button@1 {
  127. label = "Power Button";
  128. linux,code = <116>; /* KEY_POWER */
  129. gpios = <&gpio1 15 1>;
  130. };
  131. button@2 {
  132. label = "Reset Button";
  133. linux,code = <0x198>; /* KEY_RESTART */
  134. gpios = <&gpio0 13 1>;
  135. };
  136. button@3 {
  137. label = "Backup Button";
  138. linux,code = <133>; /* KEY_COPY */
  139. gpios = <&gpio1 13 1>;
  140. };
  141. };
  142. regulators {
  143. compatible = "simple-bus";
  144. #address-cells = <1>;
  145. #size-cells = <0>;
  146. usb_power: regulator@1 {
  147. compatible = "regulator-fixed";
  148. reg = <1>;
  149. regulator-name = "USB 3.0 Power";
  150. regulator-min-microvolt = <5000000>;
  151. regulator-max-microvolt = <5000000>;
  152. enable-active-high;
  153. regulator-always-on;
  154. regulator-boot-on;
  155. gpio = <&gpio1 14 0>;
  156. };
  157. };
  158. };
  159. &nand {
  160. status = "okay";
  161. partition@0 {
  162. label = "u-boot";
  163. reg = <0x0000000 0x180000>;
  164. read-only;
  165. };
  166. partition@180000 {
  167. label = "u-boot-env";
  168. reg = <0x180000 0x20000>;
  169. };
  170. partition@200000 {
  171. label = "uImage";
  172. reg = <0x0200000 0x600000>;
  173. };
  174. partition@800000 {
  175. label = "minirootfs";
  176. reg = <0x0800000 0x1000000>;
  177. };
  178. partition@1800000 {
  179. label = "jffs2";
  180. reg = <0x1800000 0x6800000>;
  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. };