SD card detection with multiplexed CD/DAT3

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SD card detection with multiplexed CD/DAT3

Jump to solution
8,298 Views
andreygelman
Contributor III

Is it possible to detect an SD card insertion / removal with a micro-SD socket with multiplexed CD / DAT3 line, in Linux on i.MX6 ?

Thanks !

Labels (3)
1 Solution
3,841 Views
max_tsai
NXP Employee
NXP Employee

hi,

CD/DAT3 card detection mechanism is workable on i.MX6, but there is no well-implementation of SDHC bus driver.

You can set uSDHCx_INT_STATUS_EN:CINSSEN, uSDHCx_INT_SIGNAL_EN:CINSIEN, and uSDHCx_PROT_CTRL:D3CD to enable CD/DAT3 card detection mechanism. Before that, you need to configure SD_DAT3 pad with pull-down.

But it's preferred to use mechanism switch(GPIO) for card detection, DAT3 is CS pin for SPI mode. A pull-down on this pin and CMD0 may set this card into the SPI mode.

Regards,

Max

View solution in original post

1 Reply
3,842 Views
max_tsai
NXP Employee
NXP Employee

hi,

CD/DAT3 card detection mechanism is workable on i.MX6, but there is no well-implementation of SDHC bus driver.

You can set uSDHCx_INT_STATUS_EN:CINSSEN, uSDHCx_INT_SIGNAL_EN:CINSIEN, and uSDHCx_PROT_CTRL:D3CD to enable CD/DAT3 card detection mechanism. Before that, you need to configure SD_DAT3 pad with pull-down.

But it's preferred to use mechanism switch(GPIO) for card detection, DAT3 is CS pin for SPI mode. A pull-down on this pin and CMD0 may set this card into the SPI mode.

Regards,

Max