ARM: dts: stm32: Add custom PHY reset bindings on AV96
authorMarek Vasut <marex@denx.de>
Sat, 13 Nov 2021 02:27:37 +0000 (03:27 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 13 Dec 2021 13:34:11 +0000 (14:34 +0100)
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 <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi

index 8b275e4..4b1dbf0 100644 (file)
        };
 };
 
+
+&ethernet0 {
+       mdio0 {
+               ethernet-phy@7 {
+                       reset-gpios = <&gpioz 2 GPIO_ACTIVE_LOW>;
+                       reset-assert-us = <11000>;
+                       reset-deassert-us = <1000>;
+               };
+       };
+};
+
 &sdmmc1 {
        u-boot,dm-spl;
 };