armada-370-netgear-rn102.dts 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. /*
  2. * Device Tree file for NETGEAR ReadyNAS 102
  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 <dt-bindings/input/input.h>
  13. #include <dt-bindings/gpio/gpio.h>
  14. #include "armada-370.dtsi"
  15. / {
  16. model = "NETGEAR ReadyNAS 102";
  17. compatible = "netgear,readynas-102", "marvell,armada370", "marvell,armada-370-xp";
  18. chosen {
  19. bootargs = "console=ttyS0,115200 earlyprintk";
  20. };
  21. memory {
  22. device_type = "memory";
  23. reg = <0x00000000 0x20000000>; /* 512 MB */
  24. };
  25. soc {
  26. ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
  27. MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
  28. pcie-controller {
  29. status = "okay";
  30. /* Connected to Marvell SATA controller */
  31. pcie@1,0 {
  32. /* Port 0, Lane 0 */
  33. status = "okay";
  34. };
  35. /* Connected to FL1009 USB 3.0 controller */
  36. pcie@2,0 {
  37. /* Port 1, Lane 0 */
  38. status = "okay";
  39. };
  40. };
  41. internal-regs {
  42. serial@12000 {
  43. status = "okay";
  44. };
  45. sata@a0000 {
  46. nr-ports = <2>;
  47. status = "okay";
  48. };
  49. pinctrl {
  50. power_led_pin: power-led-pin {
  51. marvell,pins = "mpp57";
  52. marvell,function = "gpio";
  53. };
  54. sata1_led_pin: sata1-led-pin {
  55. marvell,pins = "mpp15";
  56. marvell,function = "gpio";
  57. };
  58. sata2_led_pin: sata2-led-pin {
  59. marvell,pins = "mpp14";
  60. marvell,function = "gpio";
  61. };
  62. backup_led_pin: backup-led-pin {
  63. marvell,pins = "mpp56";
  64. marvell,function = "gpio";
  65. };
  66. backup_button_pin: backup-button-pin {
  67. marvell,pins = "mpp58";
  68. marvell,function = "gpio";
  69. };
  70. power_button_pin: power-button-pin {
  71. marvell,pins = "mpp62";
  72. marvell,function = "gpio";
  73. };
  74. reset_button_pin: reset-button-pin {
  75. marvell,pins = "mpp6";
  76. marvell,function = "gpio";
  77. };
  78. poweroff: poweroff {
  79. marvell,pins = "mpp8";
  80. marvell,function = "gpio";
  81. };
  82. };
  83. mdio {
  84. pinctrl-0 = <&mdio_pins>;
  85. pinctrl-names = "default";
  86. phy0: ethernet-phy@0 { /* Marvell 88E1318 */
  87. reg = <0>;
  88. };
  89. };
  90. ethernet@74000 {
  91. pinctrl-0 = <&ge1_rgmii_pins>;
  92. pinctrl-names = "default";
  93. status = "okay";
  94. phy = <&phy0>;
  95. phy-mode = "rgmii-id";
  96. };
  97. usb@50000 {
  98. status = "okay";
  99. };
  100. i2c@11000 {
  101. compatible = "marvell,mv64xxx-i2c";
  102. clock-frequency = <100000>;
  103. status = "okay";
  104. isl12057: isl12057@68 {
  105. compatible = "isil,isl12057";
  106. reg = <0x68>;
  107. };
  108. g762: g762@3e {
  109. compatible = "gmt,g762";
  110. reg = <0x3e>;
  111. clocks = <&g762_clk>; /* input clock */
  112. fan_gear_mode = <0>;
  113. fan_startv = <1>;
  114. pwm_polarity = <0>;
  115. };
  116. };
  117. nand@d0000 {
  118. status = "okay";
  119. num-cs = <1>;
  120. marvell,nand-keep-config;
  121. marvell,nand-enable-arbiter;
  122. nand-on-flash-bbt;
  123. /* Use Hardware BCH ECC */
  124. nand-ecc-strength = <4>;
  125. nand-ecc-step-size = <512>;
  126. partition@0 {
  127. label = "u-boot";
  128. reg = <0x0000000 0x180000>; /* 1.5MB */
  129. read-only;
  130. };
  131. partition@180000 {
  132. label = "u-boot-env";
  133. reg = <0x180000 0x20000>; /* 128KB */
  134. read-only;
  135. };
  136. partition@200000 {
  137. label = "uImage";
  138. reg = <0x0200000 0x600000>; /* 6MB */
  139. };
  140. partition@800000 {
  141. label = "minirootfs";
  142. reg = <0x0800000 0x400000>; /* 4MB */
  143. };
  144. /* Last MB is for the BBT, i.e. not writable */
  145. partition@c00000 {
  146. label = "ubifs";
  147. reg = <0x0c00000 0x7400000>; /* 116MB */
  148. };
  149. };
  150. };
  151. };
  152. clocks {
  153. g762_clk: g762-oscillator {
  154. compatible = "fixed-clock";
  155. #clock-cells = <0>;
  156. clock-frequency = <8192>;
  157. };
  158. };
  159. gpio-leds {
  160. compatible = "gpio-leds";
  161. pinctrl-0 = <&power_led_pin
  162. &sata1_led_pin
  163. &sata2_led_pin
  164. &backup_led_pin>;
  165. pinctrl-names = "default";
  166. blue-power-led {
  167. label = "rn102:blue:pwr";
  168. gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
  169. default-state = "keep";
  170. };
  171. green-sata1-led {
  172. label = "rn102:green:sata1";
  173. gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
  174. default-state = "on";
  175. };
  176. green-sata2-led {
  177. label = "rn102:green:sata2";
  178. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  179. default-state = "on";
  180. };
  181. green-backup-led {
  182. label = "rn102:green:backup";
  183. gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
  184. default-state = "on";
  185. };
  186. };
  187. gpio-keys {
  188. compatible = "gpio-keys";
  189. pinctrl-0 = <&power_button_pin
  190. &reset_button_pin
  191. &backup_button_pin>;
  192. pinctrl-names = "default";
  193. power-button {
  194. label = "Power Button";
  195. linux,code = <KEY_POWER>;
  196. gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
  197. };
  198. reset-button {
  199. label = "Reset Button";
  200. linux,code = <KEY_RESTART>;
  201. gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  202. };
  203. backup-button {
  204. label = "Backup Button";
  205. linux,code = <KEY_COPY>;
  206. gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
  207. };
  208. };
  209. gpio-poweroff {
  210. compatible = "gpio-poweroff";
  211. pinctrl-0 = <&poweroff>;
  212. pinctrl-names = "default";
  213. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  214. };
  215. };