kirkwood-netgear_readynas_nv+_v2.dts 5.2 KB

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