kirkwood-netgear_readynas_duo_v2.dts 4.7 KB

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