ipq806x: enable Linksys EA8500 eth1 interface
authorPawel Dembicki <paweldembicki@gmail.com>
Tue, 30 Jun 2020 09:29:46 +0000 (11:29 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sat, 11 Jul 2020 11:33:28 +0000 (13:33 +0200)
At this moment Linksys EA8500 uses only eth0.

This patch change switch registers, which allow to use eth1 as lan
and eth0 as wan. The method work with similar Linksys EA7500V1
and it work with EA8500.

Suggested-by: Sungbo Eo <mans0n@gorani.run>
Tested-by: Brian Onn <brian.a.onn@gmail.com>
Tested-by: Adrian Panella <ianchi74@outlook.com>
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
target/linux/ipq806x/base-files/etc/board.d/02_network
target/linux/ipq806x/files-4.19/arch/arm/boot/dts/qcom-ipq8064-ea8500.dts
target/linux/ipq806x/files-5.4/arch/arm/boot/dts/qcom-ipq8064-ea8500.dts

index 65946d7ac50dc20d777993e9d342ae7851073f76..529a8d9f39c9d8842d62949f56a8485d290abfce 100755 (executable)
@@ -37,7 +37,7 @@ linksys,ea7500-v1)
 linksys,ea8500)
        hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
        ucidef_add_switch "switch0" \
-               "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
+               "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
        ucidef_set_interface_macaddr "lan" "$hw_mac_addr"
        ucidef_set_interface_macaddr "wan" "$hw_mac_addr"
        ;;
index b052ca6fcb1713598230f41f961be3f89546dbce..fc4d64453f66311efd80922da5bf71dd7bb9dabd 100644 (file)
                                        0x00004 0x7600000   /* PAD0_MODE */
                                        0x00008 0x1000000   /* PAD5_MODE */
                                        0x0000c 0x80        /* PAD6_MODE */
+                                       0x00010 0x2613a0    /* PWS_REG */
                                        0x000e4 0x6a545     /* MAC_POWER_SEL */
                                        0x000e0 0xc74164de  /* SGMII_CTRL */
                                        0x0007c 0x4e        /* PORT0_STATUS */
index 0e4563a96140bc13e52726281a014edeb27de415..7110f8943ab2bc8a1bee3453feea9e93aae7485e 100644 (file)
                        0x00004 0x7600000   /* PAD0_MODE */
                        0x00008 0x1000000   /* PAD5_MODE */
                        0x0000c 0x80        /* PAD6_MODE */
+                       0x00010 0x2613a0    /* PWS_REG */
                        0x000e4 0x6a545     /* MAC_POWER_SEL */
                        0x000e0 0xc74164de  /* SGMII_CTRL */
                        0x0007c 0x4e        /* PORT0_STATUS */