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";
103 isil,irq2-can-wakeup-machine;
106 /* Controller for rear fan #1 of 3 (Protechnic
107 * MGT4012XB-O20, 8000RPM) near eSATA port */
109 compatible = "gmt,g762";
111 clocks = <&g762_clk>; /* input clock */
117 /* Controller for rear (center) fan #2 of 3 */
119 compatible = "gmt,g762";
121 clocks = <&g762_clk>; /* input clock */
127 /* Controller for rear fan #3 of 3 */
129 compatible = "gmt,g762";
131 clocks = <&g762_clk>; /* input clock */
137 /* Temperature sensor */
139 compatible = "gmt,g751";
147 marvell,nand-keep-config;
148 marvell,nand-enable-arbiter;
151 /* Use Hardware BCH ECC */
152 nand-ecc-strength = <4>;
153 nand-ecc-step-size = <512>;
157 reg = <0x0000000 0x180000>; /* 1.5MB */
162 label = "u-boot-env";
163 reg = <0x180000 0x20000>; /* 128KB */
169 reg = <0x0200000 0x600000>; /* 6MB */
173 label = "minirootfs";
174 reg = <0x0800000 0x400000>; /* 4MB */
177 /* Last MB is for the BBT, i.e. not writable */
180 reg = <0x0c00000 0x7400000>; /* 116MB */
187 g762_clk: g762-oscillator {
188 compatible = "fixed-clock";
190 clock-frequency = <32768>;
195 compatible = "gpio-leds";
196 pinctrl-0 = <&sata1_led_pin &sata2_led_pin &err_led_pin
197 &sata3_led_pin &sata4_led_pin>;
198 pinctrl-names = "default";
201 label = "rn2120:red:sata1";
202 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
203 default-state = "off";
207 label = "rn2120:red:sata2";
208 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
209 default-state = "off";
213 label = "rn2120:red:sata3";
214 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
215 default-state = "off";
219 label = "rn2120:red:sata4";
220 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
221 default-state = "off";
225 label = "rn2120:red:err";
226 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
227 default-state = "off";
232 compatible = "gpio-keys";
233 pinctrl-0 = <&power_button_pin &reset_button_pin>;
234 pinctrl-names = "default";
237 label = "Power Button";
238 linux,code = <KEY_POWER>;
239 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
243 label = "Reset Button";
244 linux,code = <KEY_RESTART>;
245 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
250 compatible = "gpio-poweroff";
251 pinctrl-0 = <&poweroff>;
252 pinctrl-names = "default";
253 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
259 marvell,pins = "mpp42";
260 marvell,function = "gpio";
263 power_button_pin: power-button-pin {
264 marvell,pins = "mpp27";
265 marvell,function = "gpio";
268 reset_button_pin: reset-button-pin {
269 marvell,pins = "mpp41";
270 marvell,function = "gpio";
273 sata1_led_pin: sata1-led-pin {
274 marvell,pins = "mpp31";
275 marvell,function = "gpio";
278 sata2_led_pin: sata2-led-pin {
279 marvell,pins = "mpp40";
280 marvell,function = "gpio";
283 sata3_led_pin: sata3-led-pin {
284 marvell,pins = "mpp44";
285 marvell,function = "gpio";
288 sata4_led_pin: sata4-led-pin {
289 marvell,pins = "mpp47";
290 marvell,function = "gpio";
293 sata1_power_pin: sata1-power-pin {
294 marvell,pins = "mpp24";
295 marvell,function = "gpio";
298 sata2_power_pin: sata2-power-pin {
299 marvell,pins = "mpp25";
300 marvell,function = "gpio";
303 sata3_power_pin: sata3-power-pin {
304 marvell,pins = "mpp26";
305 marvell,function = "gpio";
308 sata4_power_pin: sata4-power-pin {
309 marvell,pins = "mpp28";
310 marvell,function = "gpio";
313 sata1_pres_pin: sata1-pres-pin {
314 marvell,pins = "mpp32";
315 marvell,function = "gpio";
318 sata2_pres_pin: sata2-pres-pin {
319 marvell,pins = "mpp33";
320 marvell,function = "gpio";
323 sata3_pres_pin: sata3-pres-pin {
324 marvell,pins = "mpp34";
325 marvell,function = "gpio";
328 sata4_pres_pin: sata4-pres-pin {
329 marvell,pins = "mpp35";
330 marvell,function = "gpio";
333 err_led_pin: err-led-pin {
334 marvell,pins = "mpp45";
335 marvell,function = "gpio";