1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree file for NETGEAR ReadyNAS 2120
5 * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/gpio/gpio.h>
12 #include "armada-xp-mv78230.dtsi"
15 model = "NETGEAR ReadyNAS 2120";
16 compatible = "netgear,readynas-2120", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp";
19 stdout-path = "serial0:115200n8";
23 device_type = "memory";
24 reg = <0 0x00000000 0 0x80000000>; /* 2GB */
28 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
29 MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
30 MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
31 MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000>;
35 /* RTC is provided by Intersil ISL12057 I2C RTC chip */
41 clock-frequency = <400000>;
44 /* Controller for rear fan #1 of 3 (Protechnic
45 * MGT4012XB-O20, 8000RPM) near eSATA port */
47 compatible = "gmt,g762";
49 clocks = <&g762_clk>; /* input clock */
55 /* Controller for rear (center) fan #2 of 3 */
57 compatible = "gmt,g762";
59 clocks = <&g762_clk>; /* input clock */
65 /* Controller for rear fan #3 of 3 */
67 compatible = "gmt,g762";
69 clocks = <&g762_clk>; /* input clock */
75 /* Temperature sensor */
77 compatible = "gmt,g751";
82 compatible = "isil,isl12057";
92 /* Front USB 2.0 port */
98 pinctrl-0 = <&ge0_rgmii_pins>;
99 pinctrl-names = "default";
103 phy-mode = "rgmii-id";
107 pinctrl-0 = <&ge1_rgmii_pins>;
108 pinctrl-names = "default";
112 phy-mode = "rgmii-id";
115 /* Two rear eSATA ports */
124 g762_clk: g762-oscillator {
125 compatible = "fixed-clock";
127 clock-frequency = <32768>;
132 compatible = "gpio-leds";
133 pinctrl-0 = <&sata1_led_pin &sata2_led_pin &err_led_pin
134 &sata3_led_pin &sata4_led_pin>;
135 pinctrl-names = "default";
138 label = "rn2120:red:sata1";
139 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
140 default-state = "off";
144 label = "rn2120:red:sata2";
145 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
146 default-state = "off";
150 label = "rn2120:red:sata3";
151 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
152 default-state = "off";
156 label = "rn2120:red:sata4";
157 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
158 default-state = "off";
162 label = "rn2120:red:err";
163 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
164 default-state = "off";
169 compatible = "gpio-keys";
170 pinctrl-0 = <&power_button_pin &reset_button_pin>;
171 pinctrl-names = "default";
174 label = "Power Button";
175 linux,code = <KEY_POWER>;
176 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
180 label = "Reset Button";
181 linux,code = <KEY_RESTART>;
182 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
187 compatible = "gpio-poweroff";
188 pinctrl-0 = <&poweroff>;
189 pinctrl-names = "default";
190 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
197 /* Connected to first Marvell 88SE9170 SATA controller */
203 /* Connected to second Marvell 88SE9170 SATA controller */
209 /* Connected to Fresco Logic FL1009 USB 3.0 controller */
217 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
221 phy1: ethernet-phy@1 { /* Marvell 88E1318 */
229 marvell,pins = "mpp42";
230 marvell,function = "gpio";
233 power_button_pin: power-button-pin {
234 marvell,pins = "mpp27";
235 marvell,function = "gpio";
238 reset_button_pin: reset-button-pin {
239 marvell,pins = "mpp41";
240 marvell,function = "gpio";
243 sata1_led_pin: sata1-led-pin {
244 marvell,pins = "mpp31";
245 marvell,function = "gpio";
248 sata2_led_pin: sata2-led-pin {
249 marvell,pins = "mpp40";
250 marvell,function = "gpio";
253 sata3_led_pin: sata3-led-pin {
254 marvell,pins = "mpp44";
255 marvell,function = "gpio";
258 sata4_led_pin: sata4-led-pin {
259 marvell,pins = "mpp47";
260 marvell,function = "gpio";
263 sata1_power_pin: sata1-power-pin {
264 marvell,pins = "mpp24";
265 marvell,function = "gpio";
268 sata2_power_pin: sata2-power-pin {
269 marvell,pins = "mpp25";
270 marvell,function = "gpio";
273 sata3_power_pin: sata3-power-pin {
274 marvell,pins = "mpp26";
275 marvell,function = "gpio";
278 sata4_power_pin: sata4-power-pin {
279 marvell,pins = "mpp28";
280 marvell,function = "gpio";
283 sata1_pres_pin: sata1-pres-pin {
284 marvell,pins = "mpp32";
285 marvell,function = "gpio";
288 sata2_pres_pin: sata2-pres-pin {
289 marvell,pins = "mpp33";
290 marvell,function = "gpio";
293 sata3_pres_pin: sata3-pres-pin {
294 marvell,pins = "mpp34";
295 marvell,function = "gpio";
298 sata4_pres_pin: sata4-pres-pin {
299 marvell,pins = "mpp35";
300 marvell,function = "gpio";
303 err_led_pin: err-led-pin {
304 marvell,pins = "mpp45";
305 marvell,function = "gpio";
314 label = "pxa3xx_nand-0";
316 marvell,nand-keep-config;
319 /* Use Hardware BCH ECC */
320 nand-ecc-strength = <4>;
321 nand-ecc-step-size = <512>;
324 compatible = "fixed-partitions";
325 #address-cells = <1>;
330 reg = <0x0000000 0x180000>; /* 1.5MB */
335 label = "u-boot-env";
336 reg = <0x180000 0x20000>; /* 128KB */
342 reg = <0x0200000 0x600000>; /* 6MB */
346 label = "minirootfs";
347 reg = <0x0800000 0x400000>; /* 4MB */
350 /* Last MB is for the BBT, i.e. not writable */
353 reg = <0x0c00000 0x7400000>; /* 116MB */