2 * Device Tree common file for the Seagate NAS 2 and 4-bay (Armada 370 SoC).
4 * Copyright (C) 2015 Seagate
6 * Author: Vincent Donnefort <vdonnefort@gmail.com>
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
14 * TODO: add support for the white SATA LEDs associated with HDD 0 and 1.
17 #include "armada-370.dtsi"
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
23 stdout-path = "serial0:115200n8";
27 device_type = "memory";
28 reg = <0x00000000 0x20000000>; /* 512 MB */
32 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
33 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
38 /* USB 3.0 bridge ASM1042A */
55 pinctrl-0 = <&mdio_pins>;
56 pinctrl-names = "default";
58 phy0: ethernet-phy@0 {
65 pinctrl-0 = <&ge0_rgmii_pins>;
66 pinctrl-names = "default";
68 phy-mode = "rgmii-id";
73 pinctrl-0 = <&i2c0_pins>;
74 pinctrl-names = "default";
75 clock-frequency = <100000>;
77 /* RTC - NXP 8563T (second source) */
79 compatible = "nxp,pcf8563";
85 compatible = "microchip,mcp7941x";
94 marvell,nand-keep-config;
95 marvell,nand-enable-arbiter;
97 nand-ecc-strength = <4>;
98 nand-ecc-step-size = <512>;
102 reg = <0x0 0x300000>;
105 label = "device-tree";
106 reg = <0x300000 0x20000>;
110 reg = <0x320000 0x2000000>;
114 reg = <0x2320000 0xdce0000>;
122 compatible = "simple-bus";
123 #address-cells = <1>;
125 pinctrl-names = "default";
128 compatible = "regulator-fixed";
130 regulator-name = "SATA0 power";
131 regulator-min-microvolt = <5000000>;
132 regulator-max-microvolt = <5000000>;
136 gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
139 compatible = "regulator-fixed";
141 regulator-name = "SATA1 power";
142 regulator-min-microvolt = <5000000>;
143 regulator-max-microvolt = <5000000>;
147 gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
152 compatible = "gpio-fan";
153 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH
154 &gpio2 1 GPIO_ACTIVE_HIGH>;
158 compatible = "gpio-keys";
159 #address-cells = <1>;
163 label = "Power button";
164 linux,code = <KEY_POWER>;
165 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
166 debounce-interval = <100>;
169 label = "Backup button";
170 linux,code = <KEY_OPTION>;
171 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
172 debounce-interval = <100>;
175 label = "Reset Button";
176 linux,code = <KEY_RESTART>;
177 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
178 debounce-interval = <100>;
183 compatible = "gpio-leds";
186 label = "dart:white:power";
187 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
188 linux,default-trigger = "timer";
192 label = "dart:red:power";
193 gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
196 label = "dart:red:sata0";
197 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
200 label = "dart:red:sata1";
201 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
206 compatible = "gpio-poweroff";
207 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
212 pinctrl-0 = <&hdd0_led_sata_pin>, <&hdd1_led_sata_pin>;
213 pinctrl-names = "default";
215 hdd0_led_sata_pin: hdd0-led-sata-pin {
216 marvell,pins = "mpp48";
217 marvell,function = "sata1";
219 hdd0_led_gpio_pin: hdd0-led-gpio-pin {
220 marvell,pins = "mpp48";
221 marvell,function = "gpio";
223 hdd1_led_sata_pin: hdd1-led-sata-pin {
224 marvell,pins = "mpp57";
225 marvell,function = "sata0";
227 hdd1_led_gpio_pin: hdd1-led-gpio-pin {
228 marvell,pins = "mpp57";
229 marvell,function = "gpio";