mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: i.MX8MM: fix phy-reset gpio
@ 2022-06-16 14:02 Marco Felsch
  2022-06-16 14:02 ` [PATCH 2/2] ARM: i.MX8MM: increase off-on delay on the SD Vcc regulator Marco Felsch
  2022-06-17  7:18 ` [PATCH 1/2] ARM: i.MX8MM: fix phy-reset gpio Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Marco Felsch @ 2022-06-16 14:02 UTC (permalink / raw)
  To: barebox

Drop the Barebox local property since the upstream/linux device-tree is
handling it now within the phy and we get an error:

   ERROR: gpiolib: _gpio_request: gpio-118 (ethernet-phy@0) status -16
   ERROR: miibus0: failed to request reset gpio for: ethernet-phy@0

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm/dts/imx8mm-evk.dts | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/dts/imx8mm-evk.dts b/arch/arm/dts/imx8mm-evk.dts
index 304f150307..854e9db869 100644
--- a/arch/arm/dts/imx8mm-evk.dts
+++ b/arch/arm/dts/imx8mm-evk.dts
@@ -24,10 +24,6 @@
 	};
 };
 
-&fec1 {
-	phy-reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
-};
-
 &usdhc2 {
 	#address-cells = <1>;
 	#size-cells = <1>;
-- 
2.30.2




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

* [PATCH 2/2] ARM: i.MX8MM: increase off-on delay on the SD Vcc regulator
  2022-06-16 14:02 [PATCH 1/2] ARM: i.MX8MM: fix phy-reset gpio Marco Felsch
@ 2022-06-16 14:02 ` Marco Felsch
  2022-06-17  7:18 ` [PATCH 1/2] ARM: i.MX8MM: fix phy-reset gpio Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Marco Felsch @ 2022-06-16 14:02 UTC (permalink / raw)
  To: barebox

This commit is ported from u-boot commit 247bbeb74c ("ARM: dts: imx8m:
increase off-on delay on the SD Vcc regulator"). Currently barebox
supports only SDR25/HS mode but it gets important as soon as barebox
supports faster modes.

8<---------------------------------------------------------------------
    ARM: dts: imx8m: increase off-on delay on the SD Vcc regulator

    Some SD Card controller and power circuitry has increased capacitance,
    which keeps the internal logic remains powered after regulator is switch
    off. This is generally the case when card is switched to SD104 mode,
    where a power cycle should be performed. In case if the card internal
    logic remains powered, it causes a subsequent failure of mode
    transition, effectively leading to failed enumeration.

    Introduce a delay of 20 msec in order to provide a possibility for
    internal card circuitry to drain voltages and perform a power cycle
    correctly.

    Similar fix is done in commit c49d0ac38a76 ("ARM: dts: rmobile: Increase
    off-on delay on the SD Vcc regulator") targeted Renesas SOCs.

    Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
    Cc: Stefano Babic <sbabic@denx.de>
8<---------------------------------------------------------------------

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm/dts/imx8mm-evk.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/imx8mm-evk.dts b/arch/arm/dts/imx8mm-evk.dts
index 854e9db869..6c06ad7e47 100644
--- a/arch/arm/dts/imx8mm-evk.dts
+++ b/arch/arm/dts/imx8mm-evk.dts
@@ -24,6 +24,10 @@
 	};
 };
 
+&reg_usdhc2_vmmc {
+	off-on-delay-us = <20000>;
+};
+
 &usdhc2 {
 	#address-cells = <1>;
 	#size-cells = <1>;
-- 
2.30.2




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

* Re: [PATCH 1/2] ARM: i.MX8MM: fix phy-reset gpio
  2022-06-16 14:02 [PATCH 1/2] ARM: i.MX8MM: fix phy-reset gpio Marco Felsch
  2022-06-16 14:02 ` [PATCH 2/2] ARM: i.MX8MM: increase off-on delay on the SD Vcc regulator Marco Felsch
@ 2022-06-17  7:18 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2022-06-17  7:18 UTC (permalink / raw)
  To: Marco Felsch; +Cc: barebox

On Thu, Jun 16, 2022 at 04:02:45PM +0200, Marco Felsch wrote:
> Drop the Barebox local property since the upstream/linux device-tree is
> handling it now within the phy and we get an error:
> 
>    ERROR: gpiolib: _gpio_request: gpio-118 (ethernet-phy@0) status -16
>    ERROR: miibus0: failed to request reset gpio for: ethernet-phy@0
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> ---
>  arch/arm/dts/imx8mm-evk.dts | 4 ----
>  1 file changed, 4 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/dts/imx8mm-evk.dts b/arch/arm/dts/imx8mm-evk.dts
> index 304f150307..854e9db869 100644
> --- a/arch/arm/dts/imx8mm-evk.dts
> +++ b/arch/arm/dts/imx8mm-evk.dts
> @@ -24,10 +24,6 @@
>  	};
>  };
>  
> -&fec1 {
> -	phy-reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
> -};
> -
>  &usdhc2 {
>  	#address-cells = <1>;
>  	#size-cells = <1>;
> -- 
> 2.30.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



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

end of thread, other threads:[~2022-06-17  7:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 14:02 [PATCH 1/2] ARM: i.MX8MM: fix phy-reset gpio Marco Felsch
2022-06-16 14:02 ` [PATCH 2/2] ARM: i.MX8MM: increase off-on delay on the SD Vcc regulator Marco Felsch
2022-06-17  7:18 ` [PATCH 1/2] ARM: i.MX8MM: fix phy-reset gpio Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox