Skip to contentSkip to conversation

dt-bindings: net: snps,dwmac: Fix snps,reset-delays-us dependency

PATCH Superseded Andrew Halaney 3 participants 6 messages Feb 13, 2023 – Feb 14, 2023

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: net: snps,dwmac: Fix snps,reset-delays-us dependency

The schema had snps,reset-delay-us as dependent on snps,reset-gpio. The actual property is called snps,reset-delays-us, so fix this to catch any devicetree defining snsps,reset-delays-us without snps,reset-gpio.

Fixes 7db3545aef5f ("dt-bindings: net: stmmac: Convert the binding to a schemas")
---
 Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/net/snps,dwmac.yaml +1 -1
index e88a86623fce..16b7d2904696 100644
@@ -552,7 +552,7 @@ required:
 
 dependencies:
   snps,reset-active-low: ["snps,reset-gpio"]
-  snps,reset-delay-us: ["snps,reset-gpio"]
+  snps,reset-delays-us: ["snps,reset-gpio"]
 
 allOf:
   - $ref: "ethernet-controller.yaml#"
Signature · 1 line
2.39.1
#1 lore raw

PATCH 2/2 arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio

The property is named snps,reset-gpio. Update the name accordingly so the corresponding phy is reset.

Fixes 8dd495d12374 ("arm64: dts: freescale: add support for i.MX8DXL EVK board")
---
 arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +1 -1
index 1bcf228a22b8..b6d7c2526131 100644
@@ -121,7 +121,7 @@ &eqos {
 	phy-handle = <&ethphy0>;
 	nvmem-cells = <&fec_mac1>;
 	nvmem-cell-names = "mac-address";
-	snps,reset-gpios = <&pca6416_1 2 GPIO_ACTIVE_LOW>;
+	snps,reset-gpio = <&pca6416_1 2 GPIO_ACTIVE_LOW>;
 	snps,reset-delays-us = <10 20 200000>;
 	status = "okay";
 
Signature · 1 line
2.39.1
Reviewed-by on v1 1/2
#5 lore raw
In reply to Andrew Halaney
Quoted 7 lines · Andrew Halaney

The schema had snps,reset-delay-us as dependent on snps,reset-gpio. The actual property is called snps,reset-delays-us, so fix this to catch any devicetree defining snsps,reset-delays-us without snps,reset-gpio.

Fixes 7db3545aef5f ("dt-bindings: net: stmmac: Convert the binding to a schemas")

---

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio

In reply to Andrew Halaney
Quoted 14 lines · Andrew Halaney

The property is named snps,reset-gpio. Update the name accordingly so the corresponding phy is reset.

Fixes 8dd495d12374 ("arm64: dts: freescale: add support for i.MX8DXL EVK board")
---
 arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +0 -0
index 1bcf228a22b8..b6d7c2526131 100644

arch/arm64/boot/dts/freescale/imx8dxl-evk.dts &eqos { · line 124

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +1 -1
@@ -121,7 +121,7 @@ &eqos {
 	phy-handle = <&ethphy0>;
 	nvmem-cells = <&fec_mac1>;
 	nvmem-cell-names = "mac-address";
-	snps,reset-gpios = <&pca6416_1 2 GPIO_ACTIVE_LOW>;
+	snps,reset-gpio = <&pca6416_1 2 GPIO_ACTIVE_LOW>;

I don't think it's correct change. This property is deprecated. Also uses old, deprecated suffix gpio.

Best regards,
Krzysztof

#4 lore raw

Re: [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio

Quoted 10 lines · Krzysztof Kozlowski
Quoted 9 lines · Andrew Halaney

The property is named snps,reset-gpio. Update the name accordingly so the corresponding phy is reset.

Fixes 8dd495d12374 ("arm64: dts: freescale: add support for i.MX8DXL EVK board")
---
 arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

arch/arm64/boot/dts/freescale/imx8dxl-evk.dts &eqos { · line 124

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +1 -1
index 1bcf228a22b8..b6d7c2526131 100644
@@ -121,7 +121,7 @@ &eqos {
 	phy-handle = <&ethphy0>;
 	nvmem-cells = <&fec_mac1>;
 	nvmem-cell-names = "mac-address";
-	snps,reset-gpios = <&pca6416_1 2 GPIO_ACTIVE_LOW>;
+	snps,reset-gpio = <&pca6416_1 2 GPIO_ACTIVE_LOW>;

I don't think it's correct change. This property is deprecated. Also uses old, deprecated suffix gpio.

I mentally grandfathered this in, but after your comment realized it shouldn't be. I'll post a v2 with the reset handled in the phy node directly. Thanks!