netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: net: snps,dwmac: Fix snps,reset-delays-us dependency
@ 2023-02-13 21:31 Andrew Halaney
  2023-02-13 21:31 ` [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio Andrew Halaney
  2023-02-14  8:11 ` [PATCH 1/2] dt-bindings: net: snps,dwmac: Fix snps,reset-delays-us dependency Krzysztof Kozlowski
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Halaney @ 2023-02-13 21:31 UTC (permalink / raw)
  To: devicetree
  Cc: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt,
	shawnguo, s.hauer, kernel, festevam, linux-imx, alexandre.torgue,
	peppe.cavallaro, joabreu, mripard, shenwei.wang, netdev,
	linux-kernel, linux-arm-kernel, 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")
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
---
 Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index e88a86623fce..16b7d2904696 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -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#"
-- 
2.39.1


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

* [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio
  2023-02-13 21:31 [PATCH 1/2] dt-bindings: net: snps,dwmac: Fix snps,reset-delays-us dependency Andrew Halaney
@ 2023-02-13 21:31 ` Andrew Halaney
  2023-02-13 21:47   ` Fabio Estevam
  2023-02-14  8:12   ` Krzysztof Kozlowski
  2023-02-14  8:11 ` [PATCH 1/2] dt-bindings: net: snps,dwmac: Fix snps,reset-delays-us dependency Krzysztof Kozlowski
  1 sibling, 2 replies; 6+ messages in thread
From: Andrew Halaney @ 2023-02-13 21:31 UTC (permalink / raw)
  To: devicetree
  Cc: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt,
	shawnguo, s.hauer, kernel, festevam, linux-imx, alexandre.torgue,
	peppe.cavallaro, joabreu, mripard, shenwei.wang, netdev,
	linux-kernel, linux-arm-kernel, 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")
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
---
 arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
index 1bcf228a22b8..b6d7c2526131 100644
--- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
@@ -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";
 
-- 
2.39.1


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

* Re: [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio
  2023-02-13 21:31 ` [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio Andrew Halaney
@ 2023-02-13 21:47   ` Fabio Estevam
  2023-02-14  8:12   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2023-02-13 21:47 UTC (permalink / raw)
  To: Andrew Halaney
  Cc: devicetree, davem, edumazet, kuba, pabeni, robh+dt,
	krzysztof.kozlowski+dt, shawnguo, s.hauer, kernel, linux-imx,
	alexandre.torgue, peppe.cavallaro, joabreu, mripard, shenwei.wang,
	netdev, linux-kernel, linux-arm-kernel

On Mon, Feb 13, 2023 at 6:31 PM Andrew Halaney <ahalaney@redhat.com> wrote:
>
> 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")
> Signed-off-by: Andrew Halaney <ahalaney@redhat.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

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

* Re: [PATCH 1/2] dt-bindings: net: snps,dwmac: Fix snps,reset-delays-us dependency
  2023-02-13 21:31 [PATCH 1/2] dt-bindings: net: snps,dwmac: Fix snps,reset-delays-us dependency Andrew Halaney
  2023-02-13 21:31 ` [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio Andrew Halaney
@ 2023-02-14  8:11 ` Krzysztof Kozlowski
  1 sibling, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14  8:11 UTC (permalink / raw)
  To: Andrew Halaney, devicetree
  Cc: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt,
	shawnguo, s.hauer, kernel, festevam, linux-imx, alexandre.torgue,
	peppe.cavallaro, joabreu, mripard, shenwei.wang, netdev,
	linux-kernel, linux-arm-kernel

On 13/02/2023 22:31, Andrew Halaney wrote:
> 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")
> Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
> ---


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio
  2023-02-13 21:31 ` [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio Andrew Halaney
  2023-02-13 21:47   ` Fabio Estevam
@ 2023-02-14  8:12   ` Krzysztof Kozlowski
  2023-02-14 14:15     ` Andrew Halaney
  1 sibling, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14  8:12 UTC (permalink / raw)
  To: Andrew Halaney, devicetree
  Cc: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt,
	shawnguo, s.hauer, kernel, festevam, linux-imx, alexandre.torgue,
	peppe.cavallaro, joabreu, mripard, shenwei.wang, netdev,
	linux-kernel, linux-arm-kernel

On 13/02/2023 22:31, Andrew Halaney wrote:
> 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")
> Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
> ---
>  arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
> index 1bcf228a22b8..b6d7c2526131 100644
> --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
> @@ -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


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

* Re: [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio
  2023-02-14  8:12   ` Krzysztof Kozlowski
@ 2023-02-14 14:15     ` Andrew Halaney
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Halaney @ 2023-02-14 14:15 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: devicetree, davem, edumazet, kuba, pabeni, robh+dt,
	krzysztof.kozlowski+dt, shawnguo, s.hauer, kernel, festevam,
	linux-imx, alexandre.torgue, peppe.cavallaro, joabreu, mripard,
	shenwei.wang, netdev, linux-kernel, linux-arm-kernel

On Tue, Feb 14, 2023 at 09:12:36AM +0100, Krzysztof Kozlowski wrote:
> On 13/02/2023 22:31, Andrew Halaney wrote:
> > 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")
> > Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
> > ---
> >  arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
> > index 1bcf228a22b8..b6d7c2526131 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
> > +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts
> > @@ -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!


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

end of thread, other threads:[~2023-02-14 14:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13 21:31 [PATCH 1/2] dt-bindings: net: snps,dwmac: Fix snps,reset-delays-us dependency Andrew Halaney
2023-02-13 21:31 ` [PATCH 2/2] arm64: dts: imx8dxl-evk: Fix eqos phy reset gpio Andrew Halaney
2023-02-13 21:47   ` Fabio Estevam
2023-02-14  8:12   ` Krzysztof Kozlowski
2023-02-14 14:15     ` Andrew Halaney
2023-02-14  8:11 ` [PATCH 1/2] dt-bindings: net: snps,dwmac: Fix snps,reset-delays-us dependency Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).