2 * Device Tree include file for Armada 385 based Linksys boards
4 * Copyright (C) 2015 Imre Kaloz <kaloz@openwrt.org>
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
12 * a) This file is licensed under the terms of the GNU General Public
13 * License version 2. This program is licensed "as is" without
14 * any warranty of any kind, whether express or implied.
18 * b) Permission is hereby granted, free of charge, to any person
19 * obtaining a copy of this software and associated documentation
20 * files (the "Software"), to deal in the Software without
21 * restriction, including without limitation the rights to use,
22 * copy, modify, merge, publish, distribute, sublicense, and/or
23 * sell copies of the Software, and to permit persons to whom the
24 * Software is furnished to do so, subject to the following
27 * The above copyright notice and this permission notice shall be
28 * included in all copies or substantial portions of the Software.
30 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
32 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
33 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
34 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
35 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
36 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
37 * OTHER DEALINGS IN THE SOFTWARE.
40 #include <dt-bindings/gpio/gpio.h>
41 #include <dt-bindings/input/input.h>
42 #include "armada-385.dtsi"
45 model = "Linksys boards based on Armada 385";
46 compatible = "linksys,armada385", "marvell,armada385",
50 stdout-path = "serial0:115200n8";
54 device_type = "memory";
55 reg = <0x00000000 0x20000000>; /* 512 MB */
59 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
60 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
61 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
62 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000>;
66 pinctrl-names = "default";
67 pinctrl-0 = <&i2c0_pins>;
71 compatible = "ti,tmp421";
78 compatible = "nxp,pca9635";
83 /* J10: VCC, NC, RX, NC, TX, GND */
90 phy-mode = "rgmii-id";
110 compatible = "marvell,mv88e6085";
111 #address-cells = <1>;
116 #address-cells = <1>;
162 /* USB part of the eSATA/USB 2.0 port */
169 usb-phy = <&usb3_phy>;
175 marvell,nand-keep-config;
176 marvell,nand-enable-arbiter;
181 reg = <0x0000000 0x200000>; /* 2MB */
187 reg = <0x200000 0x40000>; /* 256KB */
192 reg = <0x240000 0x40000>; /* 256KB */
197 reg = <0x900000 0x100000>; /* 1MB */
201 /* kernel1 overlaps with rootfs1 by design */
204 reg = <0xa00000 0x2800000>; /* 40MB */
209 reg = <0x1000000 0x2200000>; /* 34MB */
212 /* kernel2 overlaps with rootfs2 by design */
215 reg = <0x3200000 0x2800000>; /* 40MB */
220 reg = <0x3800000 0x2200000>; /* 34MB */
224 * 38MB, last MB is for the BBT, not writable
228 reg = <0x5a00000 0x2600000>;
232 * Unused area between "s_env" and "devinfo".
233 * Moved here because otherwise the renumbered
234 * partitions would break the bootloader
238 label = "unused_area";
239 reg = <0x280000 0x680000>; /* 6.5MB */
248 /* Marvell 88W8864, 5GHz-only */
253 /* Marvell 88W8864, 2GHz-only */
260 compatible = "usb-nop-xceiv";
261 vcc-supply = <®_xhci0_vbus>;
264 reg_xhci0_vbus: xhci0-vbus {
265 compatible = "regulator-fixed";
266 pinctrl-names = "default";
267 pinctrl-0 = <&xhci0_vbus_pins>;
268 regulator-name = "xhci0-vbus";
269 regulator-min-microvolt = <5000000>;
270 regulator-max-microvolt = <5000000>;
272 gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
276 compatible = "gpio-keys";
277 #address-cells = <1>;
279 pinctrl-0 = <&keys_pin>;
280 pinctrl-names = "default";
284 linux,code = <KEY_WPS_BUTTON>;
285 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
289 label = "Factory Reset Button";
290 linux,code = <KEY_RESTART>;
291 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
296 compatible = "gpio-leds";
297 pinctrl-0 = <&power_led_pin &sata_led_pin>;
298 pinctrl-names = "default";
301 gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
302 default-state = "on";
306 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
307 default-state = "off";
314 compatible = "marvell,dsa";
315 #address-cells = <2>;
318 dsa,ethernet = <ð2>;
319 dsa,mii-bus = <&mdio>;
322 #address-cells = <1>;
324 reg = <0x0 0>; /* MDIO address 0, switch 0 in tree */
361 marvell,pins = "mpp24", "mpp29";
362 marvell,function = "gpio";
365 power_led_pin: power-led-pin {
366 marvell,pins = "mpp55";
367 marvell,function = "gpio";
370 sata_led_pin: sata-led-pin {
371 marvell,pins = "mpp54";
372 marvell,function = "gpio";
375 xhci0_vbus_pins: xhci0-vbus-pins {
376 marvell,pins = "mpp50";
377 marvell,function = "gpio";