]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
qualcommax: ipq5018: pz-l8: enable PHY-to-PHY CPU link 21496/head
authorZiyang Huang <hzyitc@outlook.com>
Fri, 9 Jan 2026 15:17:12 +0000 (23:17 +0800)
committerRobert Marko <robimarko@gmail.com>
Tue, 14 Apr 2026 17:16:39 +0000 (19:16 +0200)
So we can reach 2Gbps.

Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/21496
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/dts/ipq5018-pz-l8.dts
target/linux/qualcommax/ipq50xx/base-files/etc/board.d/02_network

index f09007503fef686cf495937bb10bc70d89b43365..5b4e3b5ba7ba8a836af62d5a09836fb5b3119dcc 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <0>;
 
+                       port@0 {
+                               reg = <0>;
+                               phy-mode = "sgmii";
+                               ethernet = <&dp2>;
+                               qca,sgmii-enable-pll;
+
+                               fixed-link {
+                                       speed = <1000>;
+                                       full-duplex;
+                               };
+                       };
+
                        port@1 {
                                reg = <1>;
                                label = "lan3";
                                phy-handle = <&qca8337_3>;
                        };
 
-                       /*
-                        * WAN cannot work if added
-                        * port@5 {
-                        *      reg = <5>;
-                        *      phy-handle = <&qca8337_4>;
-                        *      phy-mode = "gmii";
-                        *      ethernet = <&dp1>;
-                        * };
-                        */
-
-                       port@6 {
-                               reg = <6>;
-                               phy-mode = "sgmii";
-                               ethernet = <&dp2>;
-                               qca,sgmii-enable-pll;
-
-                               fixed-link {
-                                       speed = <1000>;
-                                       full-duplex;
-                               };
+                       port@5 {
+                               reg = <5>;
+                               phy-handle = <&qca8337_4>;
+                               phy-mode = "gmii";
+                               ethernet = <&dp1>;
                        };
                };
        };
index 16aa187ec8060a6bbe4153bb87864171990bd54e..35bca4110d00543bce60c88825264ec325235399 100644 (file)
@@ -17,7 +17,6 @@ ipq50xx_setup_interfaces()
                ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
                ;;
        cmcc,mr3000d-ci|\
-       cmcc,pz-l8|\
        linksys,mx2000|\
        linksys,mx5500|\
        linksys,spnmx56|\
@@ -29,6 +28,13 @@ ipq50xx_setup_interfaces()
        yuncore,ax850)
                ucidef_set_interfaces_lan_wan "lan" "wan"
                ;;
+       cmcc,pz-l8)
+               ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
+               ucidef_set_network_device_conduit "lan1" "eth1"
+               ucidef_set_network_device_conduit "lan2" "eth1"
+               ucidef_set_network_device_conduit "lan3" "eth1"
+               ucidef_set_network_device_conduit "wan" "eth0"
+               ;;
        esac
 }