Skip to content

drivers: sdhc: mcux_sdif: optional GPIO card-detect via cd-gpios#106446

Open
fbnors wants to merge 1 commit intozephyrproject-rtos:mainfrom
fbnors:nxp-lpc-sdif-cd-gpio
Open

drivers: sdhc: mcux_sdif: optional GPIO card-detect via cd-gpios#106446
fbnors wants to merge 1 commit intozephyrproject-rtos:mainfrom
fbnors:nxp-lpc-sdif-cd-gpio

Conversation

@fbnors
Copy link
Copy Markdown
Contributor

@fbnors fbnors commented Mar 27, 2026

When present, configure the pin as input and use GPIO for card presence instead of SDIF_DetectCardInsert(). Useful if the board uses a pin other than SD0_CARD_DET_N for card detection.

On the LPC55S28 we needed it to work around an issue where configuring PIO1_13 as SD0_CARD_DET_N stalled Flexcomm6 I2C transfers. The same pin works when muxed as GPIO.

When present, configure the pin as input and use GPIO for card presence
instead of SDIF_DetectCardInsert(). Useful if the board uses a pin other
than SD0_CARD_DET_N for card detection.

On the LPC55S28 we needed it to work around an issue where configuring
PIO1_13 as SD0_CARD_DET_N stalled Flexcomm6 I2C transfers. The same pin
works when muxed as GPIO.

Signed-off-by: Fabian Otto <fabian.otto@rohde-schwarz.com>
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Devicetree Binding PR modifies or adds a Device Tree binding area: Disk Access platform: NXP NXP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants