1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree file for D-Link DNS-327L
5 * Copyright (C) 2015, Andrew Andrianov <andrew@ncrmnt.org>
9 * There's still some unknown device on i2c address 0x13
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include "armada-370.dtsi"
19 model = "D-Link DNS-327L";
20 compatible = "dlink,dns327l",
22 "marvell,armada-370-xp";
29 device_type = "memory";
30 reg = <0x00000000 0x20000000>; /* 512 MiB */
34 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
35 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
36 MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
51 marvell,nand-keep-config;
52 marvell,nand-enable-arbiter;
54 nand-ecc-strength = <4>;
55 nand-ecc-step-size = <512>;
60 reg = <0x0000000 0x100000>;
67 reg = <0x100000 0x20000>;
74 reg = <0x120000 0x700000>;
80 reg = <0x820000 0x54e0000>;
83 /* Hardcoded into stock bootloader */
85 label = "failsafe-uImage";
87 reg = <0x5d00000 0x500000>;
91 label = "failsafe-fs";
93 reg = <0x6200000 0x1d00000>;
99 reg = <0x7f00000 0x100000>;
106 compatible = "gpio-keys";
111 pinctrl-names = "default";
114 label = "Power Button";
115 linux,code = <KEY_POWER>;
116 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
120 label = "Backup Button";
121 linux,code = <KEY_COPY>;
122 gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
126 label = "Reset Button";
127 linux,code = <KEY_RESTART>;
128 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
133 compatible = "gpio-leds";
138 /* Ensure these are managed by hardware */
142 pinctrl-names = "default";
145 label = "dns327l:amber:sata-r";
146 gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
147 default-state = "keep";
151 label = "dns327l:amber:sata-l";
152 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
153 default-state = "keep";
157 label = "dns327l:white:usb";
158 gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
159 default-state = "keep";
164 compatible = "simple-bus";
165 #address-cells = <1>;
168 usb_power: regulator@1 {
169 compatible = "regulator-fixed";
171 pinctrl-0 = <&xhci_pwr_pin>;
172 pinctrl-names = "default";
173 regulator-name = "USB3.0 Port Power";
174 regulator-min-microvolt = <5000000>;
175 regulator-max-microvolt = <5000000>;
179 gpio = <&gpio0 13 GPIO_ACTIVE_HIGH>;
182 sata_r_power: regulator@2 {
183 compatible = "regulator-fixed";
185 pinctrl-0 = <&sata_r_pwr_pin>;
186 pinctrl-names = "default";
187 regulator-name = "SATA-R Power";
188 regulator-min-microvolt = <5000000>;
189 regulator-max-microvolt = <5000000>;
190 startup-delay-us = <2000000>;
194 gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
197 sata_l_power: regulator@3 {
198 compatible = "regulator-fixed";
200 pinctrl-0 = <&sata_l_pwr_pin>;
201 pinctrl-names = "default";
202 regulator-name = "SATA-L Power";
203 regulator-min-microvolt = <5000000>;
204 regulator-max-microvolt = <5000000>;
205 startup-delay-us = <4000000>;
209 gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;
229 sata_l_white_pin: sata-l-white-pin {
230 marvell,pins = "mpp57";
231 marvell,function = "sata0";
234 sata_r_white_pin: sata-r-white-pin {
235 marvell,pins = "mpp55";
236 marvell,function = "sata1";
239 sata_r_amber_pin: sata-r-amber-pin {
240 marvell,pins = "mpp52";
241 marvell,function = "gpio";
244 sata_l_amber_pin: sata-l-amber-pin {
245 marvell,pins = "mpp53";
246 marvell,function = "gpio";
249 backup_led_pin: backup-led-pin {
250 marvell,pins = "mpp61";
251 marvell,function = "gpo";
254 xhci_pwr_pin: xhci-pwr-pin {
255 marvell,pins = "mpp13";
256 marvell,function = "gpio";
259 sata_r_pwr_pin: sata-r-pwr-pin {
260 marvell,pins = "mpp54";
261 marvell,function = "gpio";
264 sata_l_pwr_pin: sata-l-pwr-pin {
265 marvell,pins = "mpp56";
266 marvell,function = "gpio";
269 uart1_pins: uart1-pins {
270 marvell,pins = "mpp60", "mpp61";
271 marvell,function = "uart1";
274 power_button_pin: power-button-pin {
275 marvell,pins = "mpp65";
276 marvell,function = "gpio";
279 backup_button_pin: backup-button-pin {
280 marvell,pins = "mpp63";
281 marvell,function = "gpio";
284 reset_button_pin: reset-button-pin {
285 marvell,pins = "mpp64";
286 marvell,function = "gpio";
295 /* Connected to Weltrend MCU */
297 pinctrl-0 = <&uart1_pins>;
298 pinctrl-names = "default";
303 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
305 marvell,reg-init = <0x0 0x16 0x0 0x0002>,
306 <0x0 0x19 0x0 0x0077>,
307 <0x0 0x18 0x0 0x5747>;
313 phy-mode = "rgmii-id";
318 compatible = "marvell,mv64xxx-i2c";
319 clock-frequency = <100000>;