armada-370-netgear-rn104.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree file for NETGEAR ReadyNAS 104
  4. *
  5. * Copyright (C) 2013, Arnaud EBALARD <[email protected]>
  6. */
  7. /dts-v1/;
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/gpio/gpio.h>
  10. #include "armada-370.dtsi"
  11. / {
  12. model = "NETGEAR ReadyNAS 104";
  13. compatible = "netgear,readynas-104", "marvell,armada370", "marvell,armada-370-xp";
  14. chosen {
  15. stdout-path = "serial0:115200n8";
  16. };
  17. memory@0 {
  18. device_type = "memory";
  19. reg = <0x00000000 0x20000000>; /* 512 MB */
  20. };
  21. soc {
  22. ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
  23. MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
  24. MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
  25. internal-regs {
  26. /* RTC is provided by Intersil ISL12057 I2C RTC chip */
  27. rtc@10300 {
  28. status = "disabled";
  29. };
  30. serial@12000 {
  31. status = "okay";
  32. };
  33. ethernet@70000 {
  34. pinctrl-0 = <&ge0_rgmii_pins>;
  35. pinctrl-names = "default";
  36. status = "okay";
  37. phy = <&phy0>;
  38. phy-mode = "rgmii-id";
  39. };
  40. ethernet@74000 {
  41. pinctrl-0 = <&ge1_rgmii_pins>;
  42. pinctrl-names = "default";
  43. status = "okay";
  44. phy = <&phy1>;
  45. phy-mode = "rgmii-id";
  46. };
  47. usb@50000 {
  48. status = "okay";
  49. };
  50. i2c@11000 {
  51. clock-frequency = <100000>;
  52. pinctrl-0 = <&i2c0_pins>;
  53. pinctrl-names = "default";
  54. status = "okay";
  55. isl12057: rtc@68 {
  56. compatible = "isil,isl12057";
  57. reg = <0x68>;
  58. wakeup-source;
  59. };
  60. g762: g762@3e {
  61. compatible = "gmt,g762";
  62. reg = <0x3e>;
  63. clocks = <&g762_clk>; /* input clock */
  64. fan_gear_mode = <0>;
  65. fan_startv = <1>;
  66. pwm_polarity = <0>;
  67. };
  68. pca9554: pca9554@23 {
  69. compatible = "nxp,pca9554";
  70. gpio-controller;
  71. #gpio-cells = <2>;
  72. reg = <0x23>;
  73. };
  74. };
  75. };
  76. };
  77. clocks {
  78. g762_clk: g762-oscillator {
  79. compatible = "fixed-clock";
  80. #clock-cells = <0>;
  81. clock-frequency = <8192>;
  82. };
  83. };
  84. gpio-leds {
  85. compatible = "gpio-leds";
  86. pinctrl-0 = <&backup_led_pin &power_led_pin>;
  87. pinctrl-names = "default";
  88. blue-backup-led {
  89. label = "rn104:blue:backup";
  90. gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
  91. default-state = "off";
  92. };
  93. blue-power-led {
  94. label = "rn104:blue:pwr";
  95. gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
  96. linux,default-trigger = "keep";
  97. };
  98. blue-sata1-led {
  99. label = "rn104:blue:sata1";
  100. gpios = <&pca9554 0 GPIO_ACTIVE_LOW>;
  101. default-state = "off";
  102. };
  103. blue-sata2-led {
  104. label = "rn104:blue:sata2";
  105. gpios = <&pca9554 1 GPIO_ACTIVE_LOW>;
  106. default-state = "off";
  107. };
  108. blue-sata3-led {
  109. label = "rn104:blue:sata3";
  110. gpios = <&pca9554 2 GPIO_ACTIVE_LOW>;
  111. default-state = "off";
  112. };
  113. blue-sata4-led {
  114. label = "rn104:blue:sata4";
  115. gpios = <&pca9554 3 GPIO_ACTIVE_LOW>;
  116. default-state = "off";
  117. };
  118. };
  119. auxdisplay {
  120. compatible = "hit,hd44780";
  121. data-gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>,
  122. <&gpio1 26 GPIO_ACTIVE_HIGH>,
  123. <&gpio1 27 GPIO_ACTIVE_HIGH>,
  124. <&gpio1 29 GPIO_ACTIVE_HIGH>;
  125. enable-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
  126. rs-gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
  127. rw-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
  128. backlight-gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
  129. display-height-chars = <2>;
  130. display-width-chars = <16>;
  131. };
  132. gpio-keys {
  133. compatible = "gpio-keys";
  134. pinctrl-0 = <&backup_button_pin
  135. &power_button_pin
  136. &reset_button_pin>;
  137. pinctrl-names = "default";
  138. backup-button {
  139. label = "Backup Button";
  140. linux,code = <KEY_COPY>;
  141. gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
  142. };
  143. power-button {
  144. label = "Power Button";
  145. linux,code = <KEY_POWER>;
  146. gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
  147. };
  148. reset-button {
  149. label = "Reset Button";
  150. linux,code = <KEY_RESTART>;
  151. gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
  152. };
  153. };
  154. gpio-poweroff {
  155. compatible = "gpio-poweroff";
  156. pinctrl-0 = <&poweroff>;
  157. pinctrl-names = "default";
  158. gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
  159. };
  160. };
  161. &pciec {
  162. status = "okay";
  163. /* Connected to FL1009 USB 3.0 controller */
  164. pcie@1,0 {
  165. /* Port 0, Lane 0 */
  166. status = "okay";
  167. };
  168. /* Connected to Marvell 88SE9215 SATA controller */
  169. pcie@2,0 {
  170. /* Port 1, Lane 0 */
  171. status = "okay";
  172. };
  173. };
  174. &mdio {
  175. pinctrl-0 = <&mdio_pins>;
  176. pinctrl-names = "default";
  177. phy0: ethernet-phy@0 { /* Marvell 88E1318 */
  178. reg = <0>;
  179. };
  180. phy1: ethernet-phy@1 { /* Marvell 88E1318 */
  181. reg = <1>;
  182. };
  183. };
  184. &pinctrl {
  185. poweroff: poweroff {
  186. marvell,pins = "mpp60";
  187. marvell,function = "gpio";
  188. };
  189. backup_button_pin: backup-button-pin {
  190. marvell,pins = "mpp52";
  191. marvell,function = "gpio";
  192. };
  193. power_button_pin: power-button-pin {
  194. marvell,pins = "mpp62";
  195. marvell,function = "gpio";
  196. };
  197. backup_led_pin: backup-led-pin {
  198. marvell,pins = "mpp63";
  199. marvell,function = "gpio";
  200. };
  201. power_led_pin: power-led-pin {
  202. marvell,pins = "mpp64";
  203. marvell,function = "gpio";
  204. };
  205. reset_button_pin: reset-button-pin {
  206. marvell,pins = "mpp65";
  207. marvell,function = "gpio";
  208. };
  209. };
  210. &nand_controller {
  211. status = "okay";
  212. nand@0 {
  213. reg = <0>;
  214. label = "pxa3xx_nand-0";
  215. nand-rb = <0>;
  216. marvell,nand-keep-config;
  217. nand-on-flash-bbt;
  218. /* Use Hardware BCH ECC */
  219. nand-ecc-strength = <4>;
  220. nand-ecc-step-size = <512>;
  221. partitions {
  222. compatible = "fixed-partitions";
  223. #address-cells = <1>;
  224. #size-cells = <1>;
  225. partition@0 {
  226. label = "u-boot";
  227. reg = <0x0000000 0x180000>; /* 1.5MB */
  228. read-only;
  229. };
  230. partition@180000 {
  231. label = "u-boot-env";
  232. reg = <0x180000 0x20000>; /* 128KB */
  233. read-only;
  234. };
  235. partition@200000 {
  236. label = "uImage";
  237. reg = <0x0200000 0x600000>; /* 6MB */
  238. };
  239. partition@800000 {
  240. label = "minirootfs";
  241. reg = <0x0800000 0x400000>; /* 4MB */
  242. };
  243. /* Last MB is for the BBT, i.e. not writable */
  244. partition@c00000 {
  245. label = "ubifs";
  246. reg = <0x0c00000 0x7400000>; /* 116MB */
  247. };
  248. };
  249. };
  250. };