From 4df4197e1eb7e257d0c4dda60a7ff427fbd47c6f Mon Sep 17 00:00:00 2001 From: Christian Hewitt Date: Tue, 20 Apr 2021 05:29:19 +0000 Subject: [PATCH 06/25] WIP: ARM: dts: use snps,reset on WeTek devices to fix Ethernet The sync of the device tree and dt-bindings from Linux v5.6-rc2 11a48a5a18c6 ("Linux 5.6-rc2") causes Ethernet to break on both WeTek devices. The PHY seems to need proper reset timing to be functional in U-Boot and Linux afterwards. Re-add the old PHY reset bindings for dwmac until we support the new bindings in the PHY node. Signed-off-by: Christian Hewitt --- arch/arm/dts/meson-gxbb-wetek-hub-u-boot.dtsi | 7 +++++++ arch/arm/dts/meson-gxbb-wetek-play2-u-boot.dtsi | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/meson-gxbb-wetek-hub-u-boot.dtsi b/arch/arm/dts/meson-gxbb-wetek-hub-u-boot.dtsi index c35158d7e9..2a245bbe7f 100644 --- a/arch/arm/dts/meson-gxbb-wetek-hub-u-boot.dtsi +++ b/arch/arm/dts/meson-gxbb-wetek-hub-u-boot.dtsi @@ -5,3 +5,10 @@ */ #include "meson-gx-u-boot.dtsi" + +ðmac { + snps,reset-gpio = <&gpio GPIOZ_14 0>; + snps,reset-delays-us = <0 10000 1000000>; + snps,reset-active-low; +}; + diff --git a/arch/arm/dts/meson-gxbb-wetek-play2-u-boot.dtsi b/arch/arm/dts/meson-gxbb-wetek-play2-u-boot.dtsi index c35158d7e9..2a245bbe7f 100644 --- a/arch/arm/dts/meson-gxbb-wetek-play2-u-boot.dtsi +++ b/arch/arm/dts/meson-gxbb-wetek-play2-u-boot.dtsi @@ -5,3 +5,10 @@ */ #include "meson-gx-u-boot.dtsi" + +ðmac { + snps,reset-gpio = <&gpio GPIOZ_14 0>; + snps,reset-delays-us = <0 10000 1000000>; + snps,reset-active-low; +}; + -- 2.34.1