Skip to contentSkip to conversation

riscv: dts: sophgo: cv180x: Fix internal ephy node name

PATCH Superseded Chen-Yu Yeh 2 participants 3 messages Aug 3 – Aug 28

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 riscv: dts: sophgo: cv180x: Fix internal ephy node name

The internal EPHY node is named "phy@0" while its reg property is <1>. The unit-address should match the first entry of the reg property, but this is not checked by dtc for MDIO buses. The kernel confirms the PHY is indeed at address 1:

eth0: PHY [mdio_mux-0.0:01] driver [Generic PHY]

Rename the node to ethernet-phy@1, which also follows the common naming convention for ethernet PHY nodes.

Fixes ba1abacc57cb ("riscv: dts: sophgo: Add mdio multiplexer device for cv18xx")
---
 arch/riscv/boot/dts/sophgo/cv180x.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/sophgo/cv180x.dtsi +1 -1
index ec3bf305274a..cf672cc6b935 100644
@@ -71,7 +71,7 @@ internal_mdio: mdio@0 {
 				#size-cells = <0>;
 				reg = <0>;
 
-				internal_ephy: phy@0 {
+				internal_ephy: phy@1 {
 					compatible = "ethernet-phy-ieee802.3-c22";
 					reg = <1>;
 				};
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 2/2
#1 lore raw
Quoted 33 lines · Chen-Yu Yeh

The internal EPHY node is named "phy@0" while its reg property is <1>. The unit-address should match the first entry of the reg property, but this is not checked by dtc for MDIO buses. The kernel confirms the PHY is indeed at address 1:

eth0: PHY [mdio_mux-0.0:01] driver [Generic PHY]

Rename the node to ethernet-phy@1, which also follows the common naming convention for ethernet PHY nodes.

Fixes ba1abacc57cb ("riscv: dts: sophgo: Add mdio multiplexer device for cv18xx")
---
 arch/riscv/boot/dts/sophgo/cv180x.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/sophgo/cv180x.dtsi +1 -1
index ec3bf305274a..cf672cc6b935 100644
@@ -71,7 +71,7 @@ internal_mdio: mdio@0 {
 				#size-cells = <0>;
 				reg = <0>;
 
-				internal_ephy: phy@0 {
+				internal_ephy: phy@1 {
 					compatible = "ethernet-phy-ieee802.3-c22";
 					reg = <1>;
 				};
Signature · 1 line
2.43.0

Please send this with the same thread of PATCH 1. Otherwise, LGTM

Regards,
Inochi

author
#2 lore raw
Quoted 3 lines

Please send this with the same thread of PATCH 1. Otherwise, LGTM

Understood -- 2/2 went out as its own thread by mistake. It will be threaded properly in v2, and I will carry your Reviewed-by over.

Thanks,
Chen-Yu