kirkwood: enable switch on Linksys EA3500
authorLuka Perkov <luka@openwrt.org>
Sun, 18 Jan 2015 16:45:01 +0000 (16:45 +0000)
committerLuka Perkov <luka@openwrt.org>
Sun, 18 Jan 2015 16:45:01 +0000 (16:45 +0000)
Signed-off-by: Claudio Leite <leitec@staticky.com>
SVN-Revision: 44036

target/linux/kirkwood/base-files/etc/uci-defaults/02_network
target/linux/kirkwood/patches-3.14/170-ea3500.patch
target/linux/kirkwood/patches-3.18/170-ea3500.patch

index 9fd68459246ef0e41a85f1a5edc5259e3de8cff7..994d7e89989d7863e4d4e69a7e09570327e2c806 100644 (file)
@@ -55,6 +55,9 @@ case "$board" in
        ;;
 "ea3500")
        ucidef_set_interfaces_lan_wan "eth0" "eth1"
+       ucidef_add_switch "switch0" "1" "0"
+       add_port_based_vlan "switch0" "1" "0 1 2 3 5"
+       add_port_based_vlan "switch0" "2" "4 6"
        ;;
 "ea4500")
        ucidef_set_interfaces_lan_wan "eth0" "eth1"
index ac4f45ca3eecb45dc6b21e52bfec89c82bf483e1..58e7a1fbd16ea5e5c832bc4d7593e872c23feafe 100644 (file)
@@ -10,7 +10,7 @@
        kirkwood-guruplug-server-plus.dtb \
 --- /dev/null
 +++ b/arch/arm/boot/dts/kirkwood-ea3500.dts
-@@ -0,0 +1,149 @@
+@@ -0,0 +1,160 @@
 +/*
 + * kirkwood-ea3500.dts - Device Tree file for Linksys EA3500
 + *
 +                      gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
 +              };
 +      };
++
++      mvsw61xx {
++              compatible = "marvell,88e6171";
++              status = "okay";
++              reg = <0x10>;
++
++              mii-bus = <&mdio>;
++              cpu-port-0 = <5>;
++              cpu-port-1 = <6>;
++              is-indirect;
++      };
 +};
 +
 +&nand {
index 95007fa30d1dd96ca2b9dd3592aff1c99a3c333d..84645decf332f7b7374df0b5974823251f9377c6 100644 (file)
@@ -10,7 +10,7 @@
        kirkwood-guruplug-server-plus.dtb \
 --- /dev/null
 +++ b/arch/arm/boot/dts/kirkwood-ea3500.dts
-@@ -0,0 +1,149 @@
+@@ -0,0 +1,160 @@
 +/*
 + * kirkwood-ea3500.dts - Device Tree file for Linksys EA3500
 + *
 +                      gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
 +              };
 +      };
++
++      mvsw61xx {
++              compatible = "marvell,88e6171";
++              status = "okay";
++              reg = <0x10>;
++
++              mii-bus = <&mdio>;
++              cpu-port-0 = <5>;
++              cpu-port-1 = <6>;
++              is-indirect;
++      };
 +};
 +
 +&nand {