[openwrt/openwrt] lantiq: dts: vr9: Add missing properties to the CPU port on the switch

LEDE Commits lede-commits at lists.infradead.org
Mon Oct 10 12:55:54 PDT 2022


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/2683cca5927844594f7835aa983e2690d1e343c6

commit 2683cca5927844594f7835aa983e2690d1e343c6
Author: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
AuthorDate: Mon Oct 10 17:48:49 2022 +0200

    lantiq: dts: vr9: Add missing properties to the CPU port on the switch
    
    The CPU port should define the phy-mode and and a PHY phandle or
    fixed-link to indicate how the CPU port is connected to the SoC's
    Ethernet controller. On xRX200 this is all internal connection, so use
    phy-mode = "internal" along with a fixed-link that matches the
    definition inside &eth0.
    
    Linux 6.0 shows a warning since upstream commit e09e9873152e3f ("net:
    dsa: make phylink-related OF properties mandatory on DSA and CPU
    ports"). when these properties are missing. Adding the properties
    before OpenWrt is updated to Linux 6.0 is harmless.
    
    Suggested-by: Martin Schiller <ms at dev.tdt.de>
    Signed-off-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
---
 target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi
index 1089cdc80c..7fa2fac1ef 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi
@@ -448,7 +448,13 @@
 				port at 6 {
 					reg = <0x6>;
 					label = "cpu";
+					phy-mode = "internal";
 					ethernet = <&eth0>;
+
+					fixed-link {
+						speed = <1000>;
+						full-duplex;
+					};
 				};
 			};
 




More information about the lede-commits mailing list