Skip to content

Commit 9dfc0c3

Browse files
hzyitcrobimarko
authored andcommitted
qualcommax: ipq5018: pz-l8: enable PHY-to-PHY CPU link
So we can reach 2Gbps. Signed-off-by: Ziyang Huang <hzyitc@outlook.com> Link: openwrt/openwrt#21496 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent a5c5ca0 commit 9dfc0c3

2 files changed

Lines changed: 24 additions & 21 deletions

File tree

target/linux/qualcommax/dts/ipq5018-pz-l8.dts

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,18 @@
232232
#address-cells = <1>;
233233
#size-cells = <0>;
234234

235+
port@0 {
236+
reg = <0>;
237+
phy-mode = "sgmii";
238+
ethernet = <&dp2>;
239+
qca,sgmii-enable-pll;
240+
241+
fixed-link {
242+
speed = <1000>;
243+
full-duplex;
244+
};
245+
};
246+
235247
port@1 {
236248
reg = <1>;
237249
label = "lan3";
@@ -256,26 +268,11 @@
256268
phy-handle = <&qca8337_3>;
257269
};
258270

259-
/*
260-
* WAN cannot work if added
261-
* port@5 {
262-
* reg = <5>;
263-
* phy-handle = <&qca8337_4>;
264-
* phy-mode = "gmii";
265-
* ethernet = <&dp1>;
266-
* };
267-
*/
268-
269-
port@6 {
270-
reg = <6>;
271-
phy-mode = "sgmii";
272-
ethernet = <&dp2>;
273-
qca,sgmii-enable-pll;
274-
275-
fixed-link {
276-
speed = <1000>;
277-
full-duplex;
278-
};
271+
port@5 {
272+
reg = <5>;
273+
phy-handle = <&qca8337_4>;
274+
phy-mode = "gmii";
275+
ethernet = <&dp1>;
279276
};
280277
};
281278
};

target/linux/qualcommax/ipq50xx/base-files/etc/board.d/02_network

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ ipq50xx_setup_interfaces()
1717
ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
1818
;;
1919
cmcc,mr3000d-ci|\
20-
cmcc,pz-l8|\
2120
linksys,mx2000|\
2221
linksys,mx5500|\
2322
linksys,spnmx56|\
@@ -29,6 +28,13 @@ ipq50xx_setup_interfaces()
2928
yuncore,ax850)
3029
ucidef_set_interfaces_lan_wan "lan" "wan"
3130
;;
31+
cmcc,pz-l8)
32+
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
33+
ucidef_set_network_device_conduit "lan1" "eth1"
34+
ucidef_set_network_device_conduit "lan2" "eth1"
35+
ucidef_set_network_device_conduit "lan3" "eth1"
36+
ucidef_set_network_device_conduit "wan" "eth0"
37+
;;
3238
esac
3339
}
3440

0 commit comments

Comments
 (0)