kirkwood-netgear_readynas_duo_v2.dts 4.8 KB

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