Inverting MicroSD card detect logic

Hi,

Unfortunately the logic on a new carrier board microSD card-detect input to the TX2 (GPIO_EDP2) is inverted. This means that GPIO_EDP2 is floating (and pulled up by the TX2) when an SD card is inserted and grounded when ejected. The result of this is that the TX2 will start supplying power to the microSD card slot, when the card is NOT inserted.

Is there any means to invert this logic in software or is this functionality embedded deep within the system?

Many thanks,
Josh

Hi,

There is a property “cd-inverted”, please add it in your device tree under corresponding sdmmc controller.

Many thanks Wayne, worked perfectly.