2 * Device Tree file for NETGEAR ReadyNAS 104
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 "armada-370.dtsi"
15 #include <dt-bindings/gpio/gpio.h>
18 model = "NETGEAR ReadyNAS 104";
19 compatible = "netgear,readynas-104", "marvell,armada370", "marvell,armada-370-xp";
22 bootargs = "console=ttyS0,115200 earlyprintk";
26 device_type = "memory";
27 reg = <0x00000000 0x20000000>; /* 512 MB */
31 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
32 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
37 /* Connected to FL1009 USB 3.0 controller */
43 /* Connected to Marvell 88SE9215 SATA controller */
52 clock-frequency = <200000000>;
58 marvell,pins = "mpp60";
59 marvell,function = "gpio";
62 backup_key_pin: backup-key-pin {
63 marvell,pins = "mpp52";
64 marvell,function = "gpio";
67 power_key_pin: power-key-pin {
68 marvell,pins = "mpp62";
69 marvell,function = "gpio";
72 backup_led_pin: backup-led-pin {
73 marvell,pins = "mpp63";
74 marvell,function = "gpo";
77 power_led_pin: power-led-pin {
78 marvell,pins = "mpp64";
79 marvell,function = "gpio";
82 reset_key_pin: reset-key-pin {
83 marvell,pins = "mpp65";
84 marvell,function = "gpio";
89 phy0: ethernet-phy@0 {
93 phy1: ethernet-phy@1 {
101 phy-mode = "rgmii-id";
107 phy-mode = "rgmii-id";
115 compatible = "marvell,mv64xxx-i2c";
116 clock-frequency = <100000>;
120 compatible = "gmt,g762";
122 clocks = <&g762_clk>; /* input clock */
128 pca9554: pca9554@23 {
129 compatible = "nxp,pca9554";
139 #address-cells = <1>;
143 compatible = "fixed-clock";
145 clock-frequency = <8192>;
150 compatible = "gpio-leds";
151 pinctrl-0 = <&backup_led_pin &power_led_pin>;
152 pinctrl-names = "default";
155 label = "rn104:blue:backup";
156 gpios = <&gpio1 31 0>; /* GPIO 63 Active High */
157 default-state = "off";
161 label = "rn104:blue:pwr";
162 gpios = <&gpio2 0 1>; /* GPIO 64 Active Low */
163 linux,default-trigger = "keep";
167 label = "rn104:blue:sata1";
168 gpios = <&pca9554 0 GPIO_ACTIVE_LOW>;
169 default-state = "off";
173 label = "rn104:blue:sata2";
174 gpios = <&pca9554 1 GPIO_ACTIVE_LOW>;
175 default-state = "off";
179 label = "rn104:blue:sata3";
180 gpios = <&pca9554 2 GPIO_ACTIVE_LOW>;
181 default-state = "off";
185 label = "rn104:blue:sata4";
186 gpios = <&pca9554 3 GPIO_ACTIVE_LOW>;
187 default-state = "off";
192 compatible = "gpio-keys";
193 #address-cells = <1>;
195 pinctrl-0 = <&backup_key_pin
198 pinctrl-names = "default";
201 label = "Backup Button";
202 linux,code = <133>; /* KEY_COPY */
203 gpios = <&gpio1 20 1>;
207 label = "Power Button";
208 linux,code = <116>; /* KEY_POWER */
209 gpios = <&gpio1 30 0>;
213 label = "Reset Button";
214 linux,code = <0x198>; /* KEY_RESTART */
215 gpios = <&gpio2 1 1>;
220 compatible = "gpio-poweroff";
221 pinctrl-0 = <&poweroff>;
222 pinctrl-names = "default";
223 gpios = <&gpio1 28 1>;