kirkwood-netgear_readynas_duo_v2.dts 4.7 KB

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