* [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; 5+ 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] 5+ 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:22 ` sashiko-bot
2026-12-05 5:04 ` [PATCH 2/2] ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0 Rosen Penev
1 sibling, 1 reply; 5+ 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 = <ð0>;
+
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
};
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] 5+ 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
2026-12-05 5:09 ` sashiko-bot
1 sibling, 1 reply; 5+ 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 {
ð0 {
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] 5+ messages in thread
* Re: [PATCH 2/2] ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0
2026-12-05 5:04 ` [PATCH 2/2] ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0 Rosen Penev
@ 2026-12-05 5:09 ` sashiko-bot
0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-05 5:09 UTC (permalink / raw)
To: Rosen Penev; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ARM: dts: marvell: commit message misstates eth0/eth1 wiring vs
Turris Omnia
--
commit b8dc038100a0fe8fc038b9a456a8ad034263d621
Author: Rosen Penev <rosenp@gmail.com>
ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0
This commit changes eth0's phy-mode from "rgmii-id" to "rgmii" in
armada-385-linksys.dtsi because switch port 6 adds the RGMII delays.
> 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.
[Severity: Low]
Is the commit message accurate about the eth0/eth1 wiring matching the
Turris Omnia?
In armada-385-linksys.dtsi, eth1 is not used; ethernet-port@5 connects to
eth2 over SGMII, whereas armada-385-turris-omnia.dts wires ethernet-port@5
to eth1 over RGMII. Only the eth0 to switch port 6 RGMII connection
matches, so it would be clearer to refer specifically to that link.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205050417.61345-1-rosenp@gmail.com?part=2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] ARM: dts: marvell: armada-385-linksys: add switch port 6 node
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:22 ` sashiko-bot
0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-05 5:22 UTC (permalink / raw)
To: Rosen Penev; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] ARM: dts: marvell: port 6 overwrites mv88e6xxx CPUDest register
- [Medium] ARM: dts: marvell: port 6 causes duplicate bridged floods in
mv88e6xxx
--
commit 1b3971c987afa66e2e2ce1fae1d3f6e610fa8eba
Author: Rosen Penev <rosenp@gmail.com>
ARM: dts: marvell: armada-385-linksys: add switch port 6 node
This commit adds switch port 6 as a second DSA CPU port connected to eth0
over RGMII with internal delays on Linksys Armada 385 boards.
> diff --git a/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi b/arch/arm/boot/dts/marvell/armada-385-linksys.dtsi
> index 4116ed60f7092..58ee283735e0b 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 = <ð0>;
> +
> + fixed-link {
> + speed = <1000>;
> + full-duplex;
> + };
> + };
[Severity: High]
Does adding port 6 as a second CPU port overwrite the switch-wide CPUDest
register from port 5 (eth2) to port 6 (eth0)?
dsa_tree_setup_cpu_ports() assigns all user ports to the first local CPU
port, port 5 (eth2), so dsa_user_open() leaves eth0 administratively down.
During mv88e6xxx_setup(), mv88e6xxx_setup_upstream_port() runs in
ascending port order and dsa_upstream_port() returns port itself for every
CPU port. Iteration 6 therefore overwrites the global CPUDest and monitor
destination registers from port 5 to port 6.
Trapped control frames such as IGMP, MLD, and STP BPDUs then egress port 6
toward the down eth0 interface and are silently dropped. Because
mv88e6xxx_switch_ops lacks port_change_conduit, userspace cannot move user
ports to eth0 or bond eth2 and eth0 into a conduit LAG.
[Severity: Medium]
Can bridged user ports duplicate flooded frames when eth0 is brought up
alongside eth2?
When user ports join a bridge, mv88e6xxx_port_vlan() adds every local
DSA_PORT_TYPE_CPU port to each bridged port's Port Based VLAN Map without
restricting it to dp->cpu_dp:
drivers/net/dsa/mv88e6xxx/chip.c:mv88e6xxx_port_vlan() {
...
dsa_switch_for_each_port(other_dp, ds)
if (other_dp->type == DSA_PORT_TYPE_CPU ||
other_dp->type == DSA_PORT_TYPE_DSA ||
dsa_port_bridge_same(dp, other_dp))
pvlan |= BIT(other_dp->index);
...
}
Because dsa_tree_setup_conduit() attaches DSA RX handling to both eth2 and
eth0 and dsa_conduit_find_user() does not check dp->cpu_dp, every
broadcast, multicast, and unknown-unicast frame on a bridged port is
flooded to both conduits and delivered twice to the same user netdev.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205050417.61345-1-rosenp@gmail.com?part=1
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-12-05 5:22 UTC | newest]
Thread overview: 5+ 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:22 ` sashiko-bot
2026-12-05 5:04 ` [PATCH 2/2] ARM: dts: marvell: armada-385-linksys: use rgmii phy-mode for eth0 Rosen Penev
2026-12-05 5:09 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox