devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: armada388-clearfog: add missing phy-modes
@ 2023-05-13 10:21 Russell King (Oracle)
  2023-05-13 13:53 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King (Oracle) @ 2023-05-13 10:21 UTC (permalink / raw)
  To: Gregory Clement, Andrew Lunn
  Cc: Sebastian Hesselbarth, Rob Herring, Krzysztof Kozlowski,
	linux-arm-kernel, devicetree

The DSA framework has got more picky about always having a phy-mode,
particularly for the CPU port. Add the missing phy-mode properties
for every port which does not have an integrated PHY.

Add a phy-mode property to the ethernet interface facing the switch
as this was configured using SGMII - as the switch is actually
using 1000base-x, let's have some consistency between the two link
partners.

Additionally, the cpu label has never actually been used in the
binding, so remove it.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
This continues on with Andrew's patch set from April, fixing up
SolidRun's Armada-388 based Clearfog board with a 88e6176 switch.

 arch/arm/boot/dts/armada-388-clearfog.dts | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/armada-388-clearfog.dts b/arch/arm/boot/dts/armada-388-clearfog.dts
index 95299167dcf5..32c569df142f 100644
--- a/arch/arm/boot/dts/armada-388-clearfog.dts
+++ b/arch/arm/boot/dts/armada-388-clearfog.dts
@@ -47,6 +47,8 @@ button-0 {
 
 &eth1 {
 	/* ethernet@30000 */
+	phy-mode = "1000base-x";
+
 	fixed-link {
 		speed = <1000>;
 		full-duplex;
@@ -129,8 +131,9 @@ port@4 {
 
 			port@5 {
 				reg = <5>;
-				label = "cpu";
 				ethernet = <&eth1>;
+				phy-mode = "1000base-x";
+
 				fixed-link {
 					speed = <1000>;
 					full-duplex;
@@ -141,6 +144,8 @@ port@6 {
 				/* 88E1512 external phy */
 				reg = <6>;
 				label = "lan6";
+				phy-mode = "rgmii-id";
+
 				fixed-link {
 					speed = <1000>;
 					full-duplex;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: dts: armada388-clearfog: add missing phy-modes
  2023-05-13 10:21 [PATCH] ARM: dts: armada388-clearfog: add missing phy-modes Russell King (Oracle)
@ 2023-05-13 13:53 ` Andrew Lunn
  2023-05-15  7:50   ` Gregory CLEMENT
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2023-05-13 13:53 UTC (permalink / raw)
  To: Russell King (Oracle)
  Cc: Gregory Clement, Sebastian Hesselbarth, Rob Herring,
	Krzysztof Kozlowski, linux-arm-kernel, devicetree

On Sat, May 13, 2023 at 11:21:24AM +0100, Russell King (Oracle) wrote:
> The DSA framework has got more picky about always having a phy-mode,
> particularly for the CPU port. Add the missing phy-mode properties
> for every port which does not have an integrated PHY.
> 
> Add a phy-mode property to the ethernet interface facing the switch
> as this was configured using SGMII - as the switch is actually
> using 1000base-x, let's have some consistency between the two link
> partners.
> 
> Additionally, the cpu label has never actually been used in the
> binding, so remove it.
> 
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

Thanks Russell

The changes for most of the IMX board where merged recently. So
hopefully by the merge window, we will have all boards updated.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: dts: armada388-clearfog: add missing phy-modes
  2023-05-13 13:53 ` Andrew Lunn
@ 2023-05-15  7:50   ` Gregory CLEMENT
  0 siblings, 0 replies; 3+ messages in thread
From: Gregory CLEMENT @ 2023-05-15  7:50 UTC (permalink / raw)
  To: Andrew Lunn, Russell King (Oracle)
  Cc: Sebastian Hesselbarth, Rob Herring, Krzysztof Kozlowski,
	linux-arm-kernel, devicetree

Andrew Lunn <andrew@lunn.ch> writes:

> On Sat, May 13, 2023 at 11:21:24AM +0100, Russell King (Oracle) wrote:
>> The DSA framework has got more picky about always having a phy-mode,
>> particularly for the CPU port. Add the missing phy-mode properties
>> for every port which does not have an integrated PHY.
>> 
>> Add a phy-mode property to the ethernet interface facing the switch
>> as this was configured using SGMII - as the switch is actually
>> using 1000base-x, let's have some consistency between the two link
>> partners.
>> 
>> Additionally, the cpu label has never actually been used in the
>> binding, so remove it.
>> 
>> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
>
> Thanks Russell
>
> The changes for most of the IMX board where merged recently. So
> hopefully by the merge window, we will have all boards updated.
>
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
>
>     Andrew

Applied on mvebu/dt

Thanks,

Gregory

-- 
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-15  7:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-13 10:21 [PATCH] ARM: dts: armada388-clearfog: add missing phy-modes Russell King (Oracle)
2023-05-13 13:53 ` Andrew Lunn
2023-05-15  7:50   ` Gregory CLEMENT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).