ARM: dts: stm32: Add custom PHY reset bindings on AV96
Subsystems (3)
PATCH 1/1 ARM: dts: stm32: Add custom PHY reset bindings on AV96
The ethernet PHY must be reset on AV96, however DWMAC currently does not support the MDIO-bus PHY GPIO reset bindings and the ethernet MAC PHY reset property is going away on next DT sync. Add PHY specific reset bindings to trigger the PHY reset and fix sporadic ethernet malfunctions, until the next DT sync.
--- arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi +11 -0
@@ -19,6 +19,17 @@ }; }; + +ðernet0 { + mdio0 { + ethernet-phy@7 { + reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; + reset-assert-us = <11000>; + reset-deassert-us = <1000>; + }; + }; +}; + &sdmmc1 { u-boot,dm-spl; };
Signature · 1 line
2.33.0
Hi Marek
Quoted 26 lines · Marek Vasut
The ethernet PHY must be reset on AV96, however DWMAC currently does not support the MDIO-bus PHY GPIO reset bindings and the ethernet MAC PHY reset property is going away on next DT sync. Add PHY specific reset bindings to trigger the PHY reset and fix sporadic ethernet malfunctions, until the next DT sync.
Signed-off-by Marek Vasut <[email protected]>Cc Patrice Chotard <[email protected]>Cc Patrick Delaunay <[email protected]>--- arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi +4
-0@@ -19,6 +19,17 @@ }; }; + +ðernet0 { + mdio0 { + ethernet-phy@7 {
arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi line 35
Quoted 10 lines
arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi +7
-0+ reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; + reset-assert-us = <11000>; + reset-deassert-us = <1000>; + }; + }; +}; + &sdmmc1 { u-boot,dm-spl; };
Thanks
Patrice
Hi Marek,
Quoted 25 lines · Marek Vasut
The ethernet PHY must be reset on AV96, however DWMAC currently does not support the MDIO-bus PHY GPIO reset bindings and the ethernet MAC PHY reset property is going away on next DT sync. Add PHY specific reset bindings to trigger the PHY reset and fix sporadic ethernet malfunctions, until the next DT sync.
Signed-off-by Marek Vasut <[email protected]>Cc Patrice Chotard <[email protected]>Cc Patrick Delaunay <[email protected]>--- arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi +4
-0@@ -19,6 +19,17 @@ }; }; + +ðernet0 { + mdio0 { + ethernet-phy@7 {
arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi line 35
Quoted 10 lines
arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi +7
-0+ reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>; + reset-assert-us = <11000>; + reset-deassert-us = <1000>; + }; + }; +}; + &sdmmc1 { u-boot,dm-spl; };
Thanks
Patrick
HI Marek
Quoted 41 lines · Patrick DELAUNAY
Hi Marek,
Quoted 31 lines · Marek Vasut
The ethernet PHY must be reset on AV96, however DWMAC currently does not support the MDIO-bus PHY GPIO reset bindings and the ethernet MAC PHY reset property is going away on next DT sync. Add PHY specific reset bindings to trigger the PHY reset and fix sporadic ethernet malfunctions, until the next DT sync.
Signed-off-by Marek Vasut <[email protected]>Cc Patrice Chotard <[email protected]>Cc Patrick Delaunay <[email protected]>---
arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi| 11 +++++++++++1 file changed, 11 insertions(+)arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi +0
-0@@ -19,6 +19,17 @@ }; };+
+ðernet0 {
+ mdio0 {
+ ethernet-phy@7 {
+ reset-gpios = <&gpioz 2GPIO_ACTIVE_LOW>; + reset-assert-us = <11000>;
+ reset-deassert-us = <1000>;
+ };
+ };arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi +2
-0+}; +Quoted 3 lines
&sdmmc1 {
u-boot,dm-spl;
};Reviewed-by Patrick Delaunay <[email protected]>
Quoted 5 lines
Thanks
Patrick
Applied to u-boot-stm32/next
Thanks
Patrice