Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: armada-385-linksys: describe switch port 6
@ 2026-12-05  5:04 Rosen Penev
  2026-12-05  5:04 ` [PATCH 1/2] ARM: dts: marvell: armada-385-linksys: add switch port 6 node Rosen Penev
  2026-12-05  5:04 ` [PATCH 2/2] ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0 Rosen Penev
  0 siblings, 2 replies; 3+ messages in thread
From: Rosen Penev @ 2026-12-05  5:04 UTC (permalink / raw)
  To: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-kernel, devicetree

On the Armada 385 Linksys boards, eth0 is wired to port 6 of the
88E6176/88E6352 switch over RGMII, but only port 5 (SGMII to eth2) is
described. Patch 1 adds port 6 as a second CPU port, as was done for the
Turris Omnia in f87db2005f73. Patch 2 changes eth0 to plain rgmii, as
the switch adds the clock delays. This makes no functional difference
with mvneta.

Tested on a WRT3200ACM (Rango).

Claude Code (Opus) was used to help prepare these patches.

Rosen Penev (2):
  ARM: dts: marvell: armada-385-linksys: add switch port 6 node
  ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0

 arch/arm/boot/dts/marvell/armada-385-linksys.dtsi | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

-- 
2.56.1



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

* [PATCH 1/2] ARM: dts: marvell: armada-385-linksys: add switch port 6 node
  2026-12-05  5:04 [PATCH 0/2] ARM: dts: armada-385-linksys: describe switch port 6 Rosen Penev
@ 2026-12-05  5:04 ` Rosen Penev
  2026-12-05  5:04 ` [PATCH 2/2] ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0 Rosen Penev
  1 sibling, 0 replies; 3+ messages in thread
From: Rosen Penev @ 2026-12-05  5:04 UTC (permalink / raw)
  To: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-kernel, devicetree

Switch port 6 is connected to eth0 over RGMII, but only port 5 (SGMII to
eth2) is described. Add port 6 as a second CPU port, as was done for the
Turris Omnia.

The port is strapped to RGMII with both RX and TX clock delays enabled
on the switch side (port status 0x0e07, physical control 0xc03e), so
describe it as rgmii-id.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 arch/arm/boot/dts/marvell/armada-385-linksys.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi b/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi
index 4116ed60f709..58ee283735e0 100644
--- a/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi
+++ b/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi
@@ -201,6 +201,18 @@ fixed-link {
 					full-duplex;
 				};
 			};
+
+			/* RGMII, delays strapped on the switch */
+			ethernet-port@6 {
+				reg = <6>;
+				phy-mode = "rgmii-id";
+				ethernet = <&eth0>;
+
+				fixed-link {
+					speed = <1000>;
+					full-duplex;
+				};
+			};
 		};
 	};
 };
-- 
2.56.1



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

* [PATCH 2/2] ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0
  2026-12-05  5:04 [PATCH 0/2] ARM: dts: armada-385-linksys: describe switch port 6 Rosen Penev
  2026-12-05  5:04 ` [PATCH 1/2] ARM: dts: marvell: armada-385-linksys: add switch port 6 node Rosen Penev
@ 2026-12-05  5:04 ` Rosen Penev
  1 sibling, 0 replies; 3+ messages in thread
From: Rosen Penev @ 2026-12-05  5:04 UTC (permalink / raw)
  To: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-kernel, devicetree

eth0 is connected to switch port 6 through a fixed link. The RGMII clock
delays are added by the switch, which is described as rgmii-id, so the
MAC side should be plain rgmii. This matches the Turris Omnia, which has
the same eth0/eth1 to 88E6176 wiring.

mvneta does not implement RGMII delays and treats all RGMII modes alike,
so there is no functional change.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 arch/arm/boot/dts/marvell/armada-385-linksys.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi b/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi
index 58ee283735e0..3005a3afbb59 100644
--- a/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi
+++ b/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi
@@ -98,7 +98,8 @@ &bm_bppi {
 
 &eth0 {
 	status = "okay";
-	phy-mode = "rgmii-id";
+	/* RGMII delays are added by switch port 6 */
+	phy-mode = "rgmii";
 	buffer-manager = <&bm>;
 	bm,pool-long = <0>;
 	bm,pool-short = <1>;
-- 
2.56.1



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

end of thread, other threads:[~2026-12-05  5:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05  5:04 [PATCH 0/2] ARM: dts: armada-385-linksys: describe switch port 6 Rosen Penev
2026-12-05  5:04 ` [PATCH 1/2] ARM: dts: marvell: armada-385-linksys: add switch port 6 node Rosen Penev
2026-12-05  5:04 ` [PATCH 2/2] ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0 Rosen Penev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox