ramips: fix ZyXEL Keenetic Omni switch config
authorAlexey Belyaev <spider@spider.vc>
Sat, 22 Apr 2017 20:46:23 +0000 (02:46 +0600)
committerMathias Kresin <dev@kresin.me>
Tue, 25 Apr 2017 17:29:59 +0000 (19:29 +0200)
The wan port is connected to switch port 0. Fix the mediatek,portmap as
well as the default switch config.

Signed-off-by: Alexey Belyaev <spider@spider.vc>
target/linux/ramips/base-files/etc/board.d/02_network
target/linux/ramips/dts/kn_rc.dts

index 99c3ad66446687a1d9d9df049a5a26aeda3e6cc9..ecfa8a66e68aa8fe515c3419c1669d1b225afef1 100755 (executable)
@@ -85,6 +85,7 @@ ramips_setup_interfaces()
        hc5661a|\
        hc5962|\
        hlk-rm04|\
+       kn_rc|\
        mac1200rv2|\
        miwifi-mini|\
        miwifi-nano|\
@@ -227,7 +228,6 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0"
                ;;
-       kn_rc|\
        kn_rf)
                ucidef_add_switch "switch0" \
                        "0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6@eth0"
index e25783f68550ea2604335df5387428431815f491..3c9dfb4d241da112a6e36217cc0b6236479cc185 100644 (file)
 
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
-       mediatek,portmap = "wllll";
+       mediatek,portmap = "llllw";
 };
 
 &wmac {