1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree common file for the Seagate NAS 2 and 4-bay (Armada 370 SoC).
5 * Copyright (C) 2015 Seagate
7 * Author: Vincent Donnefort <vdonnefort@gmail.com>
11 * TODO: add support for the white SATA LEDs associated with HDD 0 and 1.
14 #include "armada-370.dtsi"
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h>
20 stdout-path = "serial0:115200n8";
24 device_type = "memory";
25 reg = <0x00000000 0x20000000>; /* 512 MB */
29 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
30 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
44 pinctrl-0 = <&ge0_rgmii_pins>;
45 pinctrl-names = "default";
47 phy-mode = "rgmii-id";
52 pinctrl-0 = <&i2c0_pins>;
53 pinctrl-names = "default";
54 clock-frequency = <100000>;
56 /* RTC - NXP 8563T (second source) */
58 compatible = "nxp,pcf8563";
64 compatible = "microchip,mcp7941x";
73 marvell,nand-keep-config;
74 marvell,nand-enable-arbiter;
76 nand-ecc-strength = <4>;
77 nand-ecc-step-size = <512>;
84 label = "device-tree";
85 reg = <0x300000 0x20000>;
89 reg = <0x320000 0x2000000>;
93 reg = <0x2320000 0xdce0000>;
101 compatible = "simple-bus";
102 #address-cells = <1>;
104 pinctrl-names = "default";
107 compatible = "regulator-fixed";
109 regulator-name = "SATA0 power";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
115 gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
118 compatible = "regulator-fixed";
120 regulator-name = "SATA1 power";
121 regulator-min-microvolt = <5000000>;
122 regulator-max-microvolt = <5000000>;
126 gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
131 compatible = "gpio-fan";
132 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH
133 &gpio2 1 GPIO_ACTIVE_HIGH>;
137 compatible = "gpio-keys";
138 #address-cells = <1>;
142 label = "Power button";
143 linux,code = <KEY_POWER>;
144 gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
145 debounce-interval = <100>;
148 label = "Backup button";
149 linux,code = <KEY_OPTION>;
150 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
151 debounce-interval = <100>;
154 label = "Reset Button";
155 linux,code = <KEY_RESTART>;
156 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
157 debounce-interval = <100>;
162 compatible = "gpio-leds";
165 label = "dart:white:power";
166 gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
167 linux,default-trigger = "timer";
171 label = "dart:red:power";
172 gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
175 label = "dart:red:sata0";
176 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
179 label = "dart:red:sata1";
180 gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
185 compatible = "gpio-poweroff";
186 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
193 /* USB 3.0 bridge ASM1042A */
201 pinctrl-0 = <&mdio_pins>;
202 pinctrl-names = "default";
204 phy0: ethernet-phy@0 {
210 pinctrl-0 = <&hdd0_led_sata_pin>, <&hdd1_led_sata_pin>;
211 pinctrl-names = "default";
213 hdd0_led_sata_pin: hdd0-led-sata-pin {
214 marvell,pins = "mpp48";
215 marvell,function = "sata1";
217 hdd0_led_gpio_pin: hdd0-led-gpio-pin {
218 marvell,pins = "mpp48";
219 marvell,function = "gpio";
221 hdd1_led_sata_pin: hdd1-led-sata-pin {
222 marvell,pins = "mpp57";
223 marvell,function = "sata0";
225 hdd1_led_gpio_pin: hdd1-led-gpio-pin {
226 marvell,pins = "mpp57";
227 marvell,function = "gpio";