Skip to contentSkip to conversation

ARM: dts: stm32: Add custom PHY reset bindings on AV96

PATCH In review Marek Vasut 3 participants 4 messages Nov 13, 2021 – Nov 30, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

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 +11 -0
index 8b275e4950e..4b1dbf08387 100644
@@ -19,6 +19,17 @@
 	};
 };
 
+
+&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;
 };
Signature · 1 line
2.33.0
Reviewed-by on v1 1/1
#1 lore raw

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.

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
index 8b275e4950e..4b1dbf08387 100644
@@ -19,6 +19,17 @@
 	};
 };
 
+
+&ethernet0 {
+	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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Marek Vasut

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.

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
index 8b275e4950e..4b1dbf08387 100644
@@ -19,6 +19,17 @@
  	};
  };
 
+
+&ethernet0 {
+	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

#3 lore raw

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.

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
index 8b275e4950e..4b1dbf08387 100644
@@ -19,6 +19,17 @@
       };
   };

  +
+&ethernet0 {
+    mdio0 {
+        ethernet-phy@7 {
+            reset-gpios = <&gpioz 2 GPIO_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;
  };

Quoted 5 lines

Thanks
Patrick

Applied to u-boot-stm32/next

Thanks
Patrice