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>;
47 pinctrl-0 = <&ge0_rgmii_pins>;
48 pinctrl-names = "default";
50 phy-mode = "rgmii-id";
55 pinctrl-0 = <&i2c0_pins>;
56 pinctrl-names = "default";
57 clock-frequency = <100000>;
59 /* RTC - NXP 8563T (second source) */
61 compatible = "nxp,pcf8563";
67 compatible = "microchip,mcp7941x";
76 marvell,nand-keep-config;
77 marvell,nand-enable-arbiter;
79 nand-ecc-strength = <4>;
80 nand-ecc-step-size = <512>;
87 label = "device-tree";
88 reg = <0x300000 0x20000>;
92 reg = <0x320000 0x2000000>;
96 reg = <0x2320000 0xdce0000>;
104 compatible = "simple-bus";
105 #address-cells = <1>;
107 pinctrl-names = "default";
110 compatible = "regulator-fixed";
112 regulator-name = "SATA0 power";
113 regulator-min-microvolt = <5000000>;
114 regulator-max-microvolt = <5000000>;
118 gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
121 compatible = "regulator-fixed";
123 regulator-name = "SATA1 power";
124 regulator-min-microvolt = <5000000>;
125 regulator-max-microvolt = <5000000>;
129 gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
134 compatible = "gpio-fan";
135 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH
136 &gpio2 1 GPIO_ACTIVE_HIGH>;
140 compatible = "gpio-keys";
141 #address-cells = <1>;
145 label = "Power button";
146 linux,code = <KEY_POWER>;
147 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
148 debounce-interval = <100>;
151 label = "Backup button";
152 linux,code = <KEY_OPTION>;
153 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
154 debounce-interval = <100>;
157 label = "Reset Button";
158 linux,code = <KEY_RESTART>;
159 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
160 debounce-interval = <100>;
165 compatible = "gpio-leds";
168 label = "dart:white:power";
169 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
170 linux,default-trigger = "timer";
174 label = "dart:red:power";
175 gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
178 label = "dart:red:sata0";
179 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
182 label = "dart:red:sata1";
183 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
188 compatible = "gpio-poweroff";
189 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
196 /* USB 3.0 bridge ASM1042A */
204 pinctrl-0 = <&mdio_pins>;
205 pinctrl-names = "default";
207 phy0: ethernet-phy@0 {
213 pinctrl-0 = <&hdd0_led_sata_pin>, <&hdd1_led_sata_pin>;
214 pinctrl-names = "default";
216 hdd0_led_sata_pin: hdd0-led-sata-pin {
217 marvell,pins = "mpp48";
218 marvell,function = "sata1";
220 hdd0_led_gpio_pin: hdd0-led-gpio-pin {
221 marvell,pins = "mpp48";
222 marvell,function = "gpio";
224 hdd1_led_sata_pin: hdd1-led-sata-pin {
225 marvell,pins = "mpp57";
226 marvell,function = "sata0";
228 hdd1_led_gpio_pin: hdd1-led-gpio-pin {
229 marvell,pins = "mpp57";
230 marvell,function = "gpio";