0001-ARM-dts-stm32-fix-stm32mp157c-odyssey-card-detect.patch 1.5 KB

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