Devicetree
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: BCM5301X: panamera: add phy-mode to switch
@ 2026-07-27 22:59 Rosen Penev
  2026-07-27 23:09 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Rosen Penev @ 2026-07-27 22:59 UTC (permalink / raw)
  To: devicetree
  Cc: Florian Fainelli, Hauke Mehrtens, Rafał Miłecki,
	Broadcom internal kernel review list, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley,
	moderated list:BROADCOM BCM5301X ARM ARCHITECTURE, open list

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

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts
index e02a7a902f72..372601f0d56d 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts
@@ -183,6 +183,7 @@ port@4 {
 					sw1_p8: port@8 {
 						reg = <8>;
 						ethernet = <&sw0_p0>;
+						phy-mode = "internal";
 						label = "cpu";
 
 						fixed-link {
-- 
2.55.0


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

* Re: [PATCH] ARM: dts: BCM5301X: panamera: add phy-mode to switch
  2026-07-27 22:59 [PATCH] ARM: dts: BCM5301X: panamera: add phy-mode to switch Rosen Penev
@ 2026-07-27 23:09 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-07-27 23:09 UTC (permalink / raw)
  To: Rosen Penev; +Cc: robh, conor+dt, devicetree

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 <rosenp@gmail.com>

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.

> diff --git a/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts b/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts
> index 74161b76008ad..bc497d59ea805 100644
> --- a/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts
> +++ b/arch/arm/boot/dts/broadcom/bcm47094-linksys-panamera.dts
> @@ -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?

>  						label = "cpu";
>  
>  						fixed-link {

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260727225954.268155-1-rosenp@gmail.com?part=1

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

end of thread, other threads:[~2026-07-27 23:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-27 22:59 [PATCH] ARM: dts: BCM5301X: panamera: add phy-mode to switch Rosen Penev
2026-07-27 23: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