2 * Device Tree file for D-Link DNS-327L
4 * Copyright (C) 2015, Andrew Andrianov <andrew@ncrmnt.org>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
45 /* Remaining unsolved:
46 * There's still some unknown device on i2c address 0x13
51 #include <dt-bindings/input/input.h>
52 #include <dt-bindings/gpio/gpio.h>
53 #include "armada-370.dtsi"
56 model = "D-Link DNS-327L";
57 compatible = "dlink,dns327l",
59 "marvell,armada-370-xp";
66 device_type = "memory";
67 reg = <0x00000000 0x20000000>; /* 512 MiB */
71 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
72 MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
73 MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
102 marvell,nand-keep-config;
103 marvell,nand-enable-arbiter;
105 nand-ecc-strength = <4>;
106 nand-ecc-step-size = <512>;
111 reg = <0x0000000 0x100000>;
116 label = "u-boot-env";
118 reg = <0x100000 0x20000>;
125 reg = <0x120000 0x700000>;
131 reg = <0x820000 0x54e0000>;
134 /* Hardcoded into stock bootloader */
136 label = "failsafe-uImage";
138 reg = <0x5d00000 0x500000>;
142 label = "failsafe-fs";
144 reg = <0x6200000 0x1d00000>;
150 reg = <0x7f00000 0x100000>;
157 compatible = "gpio-keys";
162 pinctrl-names = "default";
165 label = "Power Button";
166 linux,code = <KEY_POWER>;
167 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
171 label = "Backup Button";
172 linux,code = <KEY_COPY>;
173 gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
177 label = "Reset Button";
178 linux,code = <KEY_RESTART>;
179 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
184 compatible = "gpio-leds";
189 /* Ensure these are managed by hardware */
193 pinctrl-names = "default";
196 label = "dns327l:amber:sata-r";
197 gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
198 default-state = "keep";
202 label = "dns327l:amber:sata-l";
203 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
204 default-state = "keep";
208 label = "dns327l:white:usb";
209 gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
210 default-state = "keep";
215 compatible = "simple-bus";
216 #address-cells = <1>;
219 usb_power: regulator@1 {
220 compatible = "regulator-fixed";
222 pinctrl-0 = <&xhci_pwr_pin>;
223 pinctrl-names = "default";
224 regulator-name = "USB3.0 Port Power";
225 regulator-min-microvolt = <5000000>;
226 regulator-max-microvolt = <5000000>;
230 gpio = <&gpio0 13 GPIO_ACTIVE_HIGH>;
233 sata_r_power: regulator@2 {
234 compatible = "regulator-fixed";
236 pinctrl-0 = <&sata_r_pwr_pin>;
237 pinctrl-names = "default";
238 regulator-name = "SATA-R Power";
239 regulator-min-microvolt = <5000000>;
240 regulator-max-microvolt = <5000000>;
241 startup-delay-us = <2000000>;
245 gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
248 sata_l_power: regulator@3 {
249 compatible = "regulator-fixed";
251 pinctrl-0 = <&sata_l_pwr_pin>;
252 pinctrl-names = "default";
253 regulator-name = "SATA-L Power";
254 regulator-min-microvolt = <5000000>;
255 regulator-max-microvolt = <5000000>;
256 startup-delay-us = <4000000>;
260 gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;
266 sata_l_white_pin: sata-l-white-pin {
267 marvell,pins = "mpp57";
268 marvell,function = "sata0";
271 sata_r_white_pin: sata-r-white-pin {
272 marvell,pins = "mpp55";
273 marvell,function = "sata1";
276 sata_r_amber_pin: sata-r-amber-pin {
277 marvell,pins = "mpp52";
278 marvell,function = "gpio";
281 sata_l_amber_pin: sata-l-amber-pin {
282 marvell,pins = "mpp53";
283 marvell,function = "gpio";
286 backup_led_pin: backup-led-pin {
287 marvell,pins = "mpp61";
288 marvell,function = "gpo";
291 xhci_pwr_pin: xhci-pwr-pin {
292 marvell,pins = "mpp13";
293 marvell,function = "gpio";
296 sata_r_pwr_pin: sata-r-pwr-pin {
297 marvell,pins = "mpp54";
298 marvell,function = "gpio";
301 sata_l_pwr_pin: sata-l-pwr-pin {
302 marvell,pins = "mpp56";
303 marvell,function = "gpio";
306 uart1_pins: uart1-pins {
307 marvell,pins = "mpp60", "mpp61";
308 marvell,function = "uart1";
311 power_button_pin: power-button-pin {
312 marvell,pins = "mpp65";
313 marvell,function = "gpio";
316 backup_button_pin: backup-button-pin {
317 marvell,pins = "mpp63";
318 marvell,function = "gpio";
321 reset_button_pin: reset-button-pin {
322 marvell,pins = "mpp64";
323 marvell,function = "gpio";
332 /* Connected to Weltrend MCU */
334 pinctrl-0 = <&uart1_pins>;
335 pinctrl-names = "default";
340 phy0: ethernet-phy@0 { /* Marvell 88E1318 */
342 marvell,reg-init = <0x0 0x16 0x0 0x0002>,
343 <0x0 0x19 0x0 0x0077>,
344 <0x0 0x18 0x0 0x5747>;
350 phy-mode = "rgmii-id";
355 compatible = "marvell,mv64xxx-i2c";
356 clock-frequency = <100000>;