1 // SPDX-License-Identifier: GPL-2.0
3 * kirkwood-viper.dts - Device Tree file for Linksys viper (E4200v2 / EA4500)
5 * (c) 2013 Jonas Gorski <jogo@openwrt.org>
6 * (c) 2013 Deutsche Telekom Innovation Laboratories
7 * (c) 2014 Luka Perkov <luka@openwrt.org>
8 * (c) 2014 Randy C. Will <randall.will@gmail.com>
14 #include "kirkwood.dtsi"
15 #include "kirkwood-6282.dtsi"
18 model = "Linksys Viper (E4200v2 / EA4500)";
19 compatible = "linksys,viper", "marvell,kirkwood-88f6282", "marvell,kirkwood";
22 device_type = "memory";
23 reg = <0x00000000 0x8000000>;
31 stdout-path = "serial0:115200n8";
35 compatible = "gpio-keys";
38 pinctrl-0 = < &pmx_btn_wps &pmx_btn_reset >;
39 pinctrl-names = "default";
43 linux,code = <KEY_WPS_BUTTON>;
44 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
48 label = "Reset Button";
49 linux,code = <KEY_RESTART>;
50 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
55 compatible = "gpio-leds";
56 pinctrl-0 = < &pmx_led_white_health &pmx_led_white_pulse >;
57 pinctrl-names = "default";
60 label = "viper:white:health";
61 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
65 label = "viper:white:pulse";
66 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
73 compatible = "marvell,dsa";
77 dsa,ethernet = <ð0port>;
78 dsa,mii-bus = <&mdio>;
83 reg = <16 0>; /* MDIO address 16, switch 0 in tree */
119 pmx_led_white_health: pmx-led-white-health {
120 marvell,pins = "mpp7";
121 marvell,function = "gpo";
123 pmx_led_white_pulse: pmx-led-white-pulse {
124 marvell,pins = "mpp14";
125 marvell,function = "gpio";
127 pmx_btn_wps: pmx-btn-wps {
128 marvell,pins = "mpp47";
129 marvell,function = "gpio";
131 pmx_btn_reset: pmx-btn-reset {
132 marvell,pins = "mpp48";
133 marvell,function = "gpio";
139 pinctrl-0 = <&pmx_nand>;
140 pinctrl-names = "default";
143 compatible = "fixed-partitions";
144 #address-cells = <1>;
155 reg = <0x80000 0x20000>;
160 reg = <0xA0000 0x20000>;
165 reg = <0x200000 0x2A0000>;
170 reg = <0x4A0000 0x1760000>;
174 label = "alt_kernel";
175 reg = <0x1C00000 0x2A0000>;
179 label = "alt_rootfs";
180 reg = <0x1EA0000 0x1760000>;
185 reg = <0x3600000 0x4A00000>;
190 reg = <0xC0000 0x140000>;
212 compatible = "marvell,mv88e6085";
213 #address-cells = <1>;
218 #address-cells = <1>;
249 ethernet = <ð0port>;
263 /* eth0 is connected to a Marvell 88E6171 switch, without a PHY. So set
264 * fixed speed and duplex.
274 /* eth1 is connected to the switch at port 6. However DSA only supports a
275 * single CPU port. So leave this port disabled to avoid confusion.
281 /* There is no battery on the board, so the RTC does not keep
282 * time when there is no power, making it useless.