[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230407151722.2320481-3-andrew@lunn.ch>
Date: Fri, 7 Apr 2023 17:17:21 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Gregory Clement <gregory.clement@...tlin.com>
Cc: Russell King <rmk+kernel@...linux.org.uk>,
Vladimir Oltean <vladimir.oltean@....com>,
arm-soc <arm@...nel.org>, netdev <netdev@...r.kernel.org>,
Andrew Lunn <andrew@...n.ch>
Subject: [PATCH 2/3] ARM: dts: orion5: Add missing phy-mode and fixed links
The DSA framework has got more picky about always having a phy-mode
for the CPU port. The Orion5x Ethernet is an RGMII port. Set the
switch to impose the RGMII delays.
Additionally, the cpu label has never actually been used in the
binding, so remove it.
Lastly, add a fixed-link node indicating the expected speed/duplex of
the link to the SoC.
Signed-off-by: Andrew Lunn <andrew@...n.ch>
---
arch/arm/boot/dts/orion5x-netgear-wnr854t.dts | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/orion5x-netgear-wnr854t.dts b/arch/arm/boot/dts/orion5x-netgear-wnr854t.dts
index 4f4888ec9138..fb203e7d37f5 100644
--- a/arch/arm/boot/dts/orion5x-netgear-wnr854t.dts
+++ b/arch/arm/boot/dts/orion5x-netgear-wnr854t.dts
@@ -137,8 +137,12 @@ port@2 {
port@3 {
reg = <3>;
- label = "cpu";
ethernet = <ðport>;
+ phy-mode = "rgmii-id";
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
};
port@5 {
@@ -208,6 +212,7 @@ ethernet-port@0 {
/* Hardwired to DSA switch */
speed = <1000>;
duplex = <1>;
+ phy-mode = "rgmii";
};
};
--
2.40.0
Powered by blists - more mailing lists