Skip to contentSkip to conversation

ARM: dts: BCM5301X: panamera: add phy-mode to switch

PATCH Superseded Rosen Penev 2 participants 2 messages Jul 27

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: BCM5301X: panamera: add phy-mode to switch

phy-mode is needed for CPU ports based on the documentation.

Fixes dtbs_checks warning:

switch@0 (brcm,bcm53125): ports:port@8: 'phy-mode' is a required property from schema $id: http://devicetree.org/schemas/net/dsa/brcm,b53.yaml

---
 arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts +1 -0
index e02a7a902f72..372601f0d56d 100644
@@ -183,6 +183,7 @@ port@4 {
 					sw1_p8: port@8 {
 						reg = <8>;
 						ethernet = <&sw0_p0>;
+						phy-mode = "internal";
 						label = "cpu";
 
 						fixed-link {
Signature · 1 line
2.55.0
#1 lore raw
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] Incorrect physical interface mode for external switch CPU port --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Incorrect physical interface mode for external switch CPU port --

--- Patch [1]: [PATCH] ARM: dts: BCM5301X: panamera: add phy-mode to switch --- commit 2598ed8af439b245eb41bd31bdc3a006d830e5ec
Author: Rosen Penev <[email protected]>

ARM: dts: BCM5301X: panamera: add phy-mode to switch

This commit adds the phy-mode property to the CPU port of the BCM53125 switch to resolve a device tree schema validation warning.

arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts port@4 { · line 187

Quoted 9 lines
arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts +1 -0
index 74161b76008ad..bc497d59ea805 100644
@@ -184,6 +184,7 @@ port@4 {
 					sw1_p8: port@8 {
 						reg = <8>;
 						ethernet = <&sw0_p0>;
+						phy-mode = "internal";

[Severity: Medium]
Is "internal" the correct physical interface mode for this external switch CPU port?

The b53 DSA driver evaluates phy_interface_mode_is_rgmii() to configure RGMII delays via b53_adjust_531x5_rgmii(). Setting the mode to "internal" bypasses this logic for what appears to be an external MAC-to-MAC connection.

Does this codify an incorrect hardware description that prevents the kernel from managing the connection timing correctly?

Quoted 3 lines
arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts +0 -0
 						label = "cpu";
 
 						fixed-link {
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1