1*4882a593SmuzhiyunFrom 0171b07373cc8c2815ca5fa79a7308fdefa54ca4 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Grzegorz Szymaszek <gszymaszek@short.pl>
3*4882a593SmuzhiyunDate: Sat, 10 Apr 2021 21:35:21 +0200
4*4882a593SmuzhiyunSubject: [PATCH] ARM: dts: stm32: fix stm32mp157c-odyssey card detect pin
5*4882a593SmuzhiyunMIME-Version: 1.0
6*4882a593SmuzhiyunContent-Type: text/plain; charset=UTF-8
7*4882a593SmuzhiyunContent-Transfer-Encoding: 8bit
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunThe microSD card detect pin is physically connected to the MPU pin PI3.
10*4882a593SmuzhiyunThe Device Tree configuration of the card detect pin was wrong—it was
11*4882a593Smuzhiyunset to pin PB7 instead. If such configuration was used, the kernel would
12*4882a593Smuzhiyunhang on “Waiting for root device” when booting from a microSD card.
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunSigned-off-by: Grzegorz Szymaszek <gszymaszek@short.pl>
15*4882a593SmuzhiyunSigned-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
16*4882a593SmuzhiyunBackported from: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/stm32mp157c-odyssey.dts?id=0171b07373cc8c2815ca5fa79a7308fdefa54ca4
17*4882a593Smuzhiyun---
18*4882a593Smuzhiyun arch/arm/boot/dts/stm32mp157c-odyssey.dts | 2 +-
19*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-)
20*4882a593Smuzhiyun
21*4882a593Smuzhiyundiff --git a/arch/arm/boot/dts/stm32mp157c-odyssey.dts b/arch/arm/boot/dts/stm32mp157c-odyssey.dts
22*4882a593Smuzhiyunindex a7ffec8f1516..be1dd5e9e744 100644
23*4882a593Smuzhiyun--- a/arch/arm/boot/dts/stm32mp157c-odyssey.dts
24*4882a593Smuzhiyun+++ b/arch/arm/boot/dts/stm32mp157c-odyssey.dts
25*4882a593Smuzhiyun@@ -64,7 +64,7 @@ &sdmmc1 {
26*4882a593Smuzhiyun 	pinctrl-0 = <&sdmmc1_b4_pins_a>;
27*4882a593Smuzhiyun 	pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
28*4882a593Smuzhiyun 	pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
29*4882a593Smuzhiyun-	cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
30*4882a593Smuzhiyun+	cd-gpios = <&gpioi 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
31*4882a593Smuzhiyun 	disable-wp;
32*4882a593Smuzhiyun 	st,neg-edge;
33*4882a593Smuzhiyun 	bus-width = <4>;
34*4882a593Smuzhiyun--
35*4882a593Smuzhiyun2.30.2
36*4882a593Smuzhiyun
37