diff mbox series

imx6qdl-sabresd: Pass mmc alias

Message ID 20221210213119.1148051-1-festevam@gmail.com
State Accepted
Commit d939c5e0f576551fb1a300e5aba6d3fabfbfbb6b
Delegated to: Stefano Babic
Headers show
Series imx6qdl-sabresd: Pass mmc alias | expand

Commit Message

Fabio Estevam Dec. 10, 2022, 9:31 p.m. UTC
From: Fabio Estevam <festevam@denx.de>

Originally, the mmc aliases node was present in imx6qdl-sabresd.dtsi.

After the sync with Linux in commit d0399a46e7cd ("imx6dl/imx6qdl:
synchronise device trees with linux"), the aliases node is gone as
the upstream version does not have it.

This causes a regression in which the SD card cannot be found anymore.

Fix it by passing the alias node in the u-boot.dtsi file to
restore the original behaviour where the SD card (esdhc3) was
mapped to mmc1.

Fixes: d0399a46e7cd ("imx6dl/imx6qdl: synchronise device trees with linux")
Reported-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 arch/arm/dts/imx6qdl-sabresd-u-boot.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Stefano Babic Jan. 31, 2023, 9:50 a.m. UTC | #1
> From: Fabio Estevam <festevam@denx.de>
> Originally, the mmc aliases node was present in imx6qdl-sabresd.dtsi.
> After the sync with Linux in commit d0399a46e7cd ("imx6dl/imx6qdl:
> synchronise device trees with linux"), the aliases node is gone as
> the upstream version does not have it.
> This causes a regression in which the SD card cannot be found anymore.
> Fix it by passing the alias node in the u-boot.dtsi file to
> restore the original behaviour where the SD card (esdhc3) was
> mapped to mmc1.
> Fixes: d0399a46e7cd ("imx6dl/imx6qdl: synchronise device trees with linux")
> Reported-by: Carlos Rafael Giani <dv@pseudoterminal.org>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/arch/arm/dts/imx6qdl-sabresd-u-boot.dtsi b/arch/arm/dts/imx6qdl-sabresd-u-boot.dtsi
index 45f02b19c7ee..cbb856fba3f3 100644
--- a/arch/arm/dts/imx6qdl-sabresd-u-boot.dtsi
+++ b/arch/arm/dts/imx6qdl-sabresd-u-boot.dtsi
@@ -5,6 +5,12 @@ 
 
 #include "imx6qdl-u-boot.dtsi"
 
+/ {
+	aliases {
+		mmc1 = &usdhc3;
+	};
+};
+
 &usdhc3 {
 	u-boot,dm-spl;
 };