Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: n900: fix mmc1 card detect gpio polarity

Wrong polarity of card detect GPIO pin leads to the system not
booting from external mmc, if the back cover of N900 is closed.
When the cover is open the system boots fine.

This wasn't noticed before, because of a bug, which was fixed
by commit e63201f19 (mmc: omap_hsmmc: Delete platform data GPIO
CD and WP).

Kernels up to 4.19 ignored the card detect GPIO from DT.

Fixes: e63201f19438 ("mmc: omap_hsmmc: Delete platform data GPIO CD and WP")
Signed-off-by: Arthur Demchenkov <spinal.by@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Arthur Demchenkov and committed by
Tony Lindgren
ac9c908e 5b90df44

+1 -1
+1 -1
arch/arm/boot/dts/omap3-n900.dts
··· 814 814 /* For debugging, it is often good idea to remove this GPIO. 815 815 It means you can remove back cover (to reboot by removing 816 816 battery) and still use the MMC card. */ 817 - cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */ 817 + cd-gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* 160 */ 818 818 }; 819 819 820 820 /* most boards use vaux3, only some old versions use vmmc2 instead */