2 * Device Tree file for NETGEAR ReadyNAS 2120
4 * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
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.
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include "armada-xp-mv78230.dtsi"
19 model = "NETGEAR ReadyNAS 2120";
20 compatible = "netgear,readynas-2120", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
23 bootargs = "console=ttyS0,115200 earlyprintk";
27 device_type = "memory";
28 reg = <0 0x00000000 0 0x80000000>; /* 2GB */
32 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
33 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>;
38 /* Connected to first Marvell 88SE9170 SATA controller */
44 /* Connected to second Marvell 88SE9170 SATA controller */
50 /* Connected to Fresco Logic FL1009 USB 3.0 controller */
58 /* Two rear eSATA ports */
69 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
73 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
81 phy-mode = "rgmii-id";
87 phy-mode = "rgmii-id";
90 /* Front USB 2.0 port */
96 compatible = "marvell,mv64xxx-i2c";
97 clock-frequency = <400000>;
100 isl12057: isl12057@68 {
101 compatible = "isil,isl12057";
105 /* Controller for rear fan #1 of 3 (Protechnic
106 * MGT4012XB-O20, 8000RPM) near eSATA port */
108 compatible = "gmt,g762";
110 clocks = <&g762_clk>; /* input clock */
116 /* Controller for rear (center) fan #2 of 3 */
118 compatible = "gmt,g762";
120 clocks = <&g762_clk>; /* input clock */
126 /* Controller for rear fan #3 of 3 */
128 compatible = "gmt,g762";
130 clocks = <&g762_clk>; /* input clock */
136 /* Temperature sensor */
138 compatible = "gmt,g751";
146 marvell,nand-keep-config;
147 marvell,nand-enable-arbiter;
150 /* Use Hardware BCH ECC */
151 nand-ecc-strength = <4>;
152 nand-ecc-step-size = <512>;
156 reg = <0x0000000 0x180000>; /* 1.5MB */
161 label = "u-boot-env";
162 reg = <0x180000 0x20000>; /* 128KB */
168 reg = <0x0200000 0x600000>; /* 6MB */
172 label = "minirootfs";
173 reg = <0x0800000 0x400000>; /* 4MB */
176 /* Last MB is for the BBT, i.e. not writable */
179 reg = <0x0c00000 0x7400000>; /* 116MB */
186 g762_clk: g762-oscillator {
187 compatible = "fixed-clock";
189 clock-frequency = <32768>;
194 compatible = "gpio-leds";
195 pinctrl-0 = <&sata1_led_pin &sata2_led_pin &err_led_pin
196 &sata3_led_pin &sata4_led_pin>;
197 pinctrl-names = "default";
200 label = "rn2120:red:sata1";
201 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
202 default-state = "off";
206 label = "rn2120:red:sata2";
207 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
208 default-state = "off";
212 label = "rn2120:red:sata3";
213 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
214 default-state = "off";
218 label = "rn2120:red:sata4";
219 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
220 default-state = "off";
224 label = "rn2120:red:err";
225 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
226 default-state = "off";
231 compatible = "gpio-keys";
232 pinctrl-0 = <&power_button_pin &reset_button_pin>;
233 pinctrl-names = "default";
236 label = "Power Button";
237 linux,code = <KEY_POWER>;
238 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
242 label = "Reset Button";
243 linux,code = <KEY_RESTART>;
244 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
249 compatible = "gpio-poweroff";
250 pinctrl-0 = <&poweroff>;
251 pinctrl-names = "default";
252 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
258 marvell,pins = "mpp42";
259 marvell,function = "gpio";
262 power_button_pin: power-button-pin {
263 marvell,pins = "mpp27";
264 marvell,function = "gpio";
267 reset_button_pin: reset-button-pin {
268 marvell,pins = "mpp41";
269 marvell,function = "gpio";
272 sata1_led_pin: sata1-led-pin {
273 marvell,pins = "mpp31";
274 marvell,function = "gpio";
277 sata2_led_pin: sata2-led-pin {
278 marvell,pins = "mpp40";
279 marvell,function = "gpio";
282 sata3_led_pin: sata3-led-pin {
283 marvell,pins = "mpp44";
284 marvell,function = "gpio";
287 sata4_led_pin: sata4-led-pin {
288 marvell,pins = "mpp47";
289 marvell,function = "gpio";
292 sata1_power_pin: sata1-power-pin {
293 marvell,pins = "mpp24";
294 marvell,function = "gpio";
297 sata2_power_pin: sata2-power-pin {
298 marvell,pins = "mpp25";
299 marvell,function = "gpio";
302 sata3_power_pin: sata3-power-pin {
303 marvell,pins = "mpp26";
304 marvell,function = "gpio";
307 sata4_power_pin: sata4-power-pin {
308 marvell,pins = "mpp28";
309 marvell,function = "gpio";
312 sata1_pres_pin: sata1-pres-pin {
313 marvell,pins = "mpp32";
314 marvell,function = "gpio";
317 sata2_pres_pin: sata2-pres-pin {
318 marvell,pins = "mpp33";
319 marvell,function = "gpio";
322 sata3_pres_pin: sata3-pres-pin {
323 marvell,pins = "mpp34";
324 marvell,function = "gpio";
327 sata4_pres_pin: sata4-pres-pin {
328 marvell,pins = "mpp35";
329 marvell,function = "gpio";
332 err_led_pin: err-led-pin {
333 marvell,pins = "mpp45";
334 marvell,function = "gpio";