2 * kirkwood-viper.dts - Device Tree file for Linksys viper (E4200v2 / EA4500)
4 * (c) 2013 Jonas Gorski <jogo@openwrt.org>
5 * (c) 2013 Deutsche Telekom Innovation Laboratories
6 * (c) 2014 Luka Perkov <luka@openwrt.org>
7 * (c) 2014 Randy C. Will <randall.will@gmail.com>
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
16 #include "kirkwood.dtsi"
17 #include "kirkwood-6282.dtsi"
20 model = "Linksys Viper (E4200v2 / EA4500)";
21 compatible = "linksys,viper", "marvell,kirkwood-88f6282", "marvell,kirkwood";
24 device_type = "memory";
25 reg = <0x00000000 0x8000000>;
33 stdout-path = "serial0:115200n8";
37 compatible = "gpio-keys";
40 pinctrl-0 = < &pmx_btn_wps &pmx_btn_reset >;
41 pinctrl-names = "default";
45 linux,code = <KEY_WPS_BUTTON>;
46 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
50 label = "Reset Button";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-leds";
58 pinctrl-0 = < &pmx_led_white_health &pmx_led_white_pulse >;
59 pinctrl-names = "default";
62 label = "viper:white:health";
63 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
67 label = "viper:white:pulse";
68 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>;
216 /* eth0 is connected to a Marvell 88E6171 switch, without a PHY. So set
217 * fixed speed and duplex.
227 /* eth1 is connected to the switch at port 6. However DSA only supports a
228 * single CPU port. So leave this port disabled to avoid confusion.
234 /* There is no battery on the board, so the RTC does not keep
235 * time when there is no power, making it useless.