diff mbox series

[3/4] ARM: dts: imx53-qsb: Describe the esdhc1 card detect pin

Message ID 20210214014954.151566-3-festevam@gmail.com
State Accepted
Commit 21755161b26693e3bfffa1e01b3f3ef19331022a
Delegated to: Stefano Babic
Headers show
Series [1/4] imx53-qsb: Import devicetree files from Linux | expand

Commit Message

Fabio Estevam Feb. 14, 2021, 1:49 a.m. UTC
The micro SD card slot uses GPIO3_13 as card detect pin, so describe
it in the devicetree.

This was noticed when converting imx53-qsb board to driver model
in U-Boot as the micro SD card was not getting detected.

After this change it is possible to load the dtb and zImage
from the SD card and boot Linux.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
This patch has been sent to the kernel list:
http://lists.infradead.org/pipermail/linux-arm-kernel/2021-February/639236.html

 arch/arm/dts/imx53-qsb-common.dtsi | 2 ++
 1 file changed, 2 insertions(+)

Comments

Stefano Babic March 1, 2021, 11:56 a.m. UTC | #1
> The micro SD card slot uses GPIO3_13 as card detect pin, so describe
> it in the devicetree.
> This was noticed when converting imx53-qsb board to driver model
> in U-Boot as the micro SD card was not getting detected.
> After this change it is possible to load the dtb and zImage
> from the SD card and boot Linux.
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/arch/arm/dts/imx53-qsb-common.dtsi b/arch/arm/dts/imx53-qsb-common.dtsi
index 9b4efcd82636..fe4244044a0f 100644
--- a/arch/arm/dts/imx53-qsb-common.dtsi
+++ b/arch/arm/dts/imx53-qsb-common.dtsi
@@ -142,6 +142,7 @@ 
 &esdhc1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_esdhc1>;
+	cd-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
 	status = "okay";
 };
 
@@ -209,6 +210,7 @@ 
 				MX53_PAD_SD1_DATA3__ESDHC1_DAT3		0x1d5
 				MX53_PAD_SD1_CMD__ESDHC1_CMD		0x1d5
 				MX53_PAD_SD1_CLK__ESDHC1_CLK		0x1d5
+				MX53_PAD_EIM_DA13__GPIO3_13		0xe4
 			>;
 		};