TX2 NX and on-carrier mmc-socket

I’m adapting TX2 NX (Lanai) on a custom carrier-board with Jetpack version 32.5.1.

Problem: I cannot get the card mounted when booting with the card in place (=not hot-plugging it in when system is running)
When hot-plugging, it gets detected and mounted.

Question: where (which file and entry) should I add the reference for the mmc-card’s control gpio, in Lanai’s device-tree sources?

The carrier-board mmc-socket (sdhci@3440000) is verified to be working:

  • It fully works with minor device-tree modifications on Xavier NX
  • I can get the card detected and mounted when hot-plugging it also when using Lanai

I have added the corresponding cd-gpios entry to the device-tree and updated the pinmux with the correct pin functions.
I got it fully working with Xavier NX by adding gpio entry to regulator@106 block.
The similar modification (simply adding correct gpio entry to spmic_sd3) did not do the trick on Lanai.

The pins are:
CD: gpio 11 (configured as GPIO EE.02 in pinmux)
Control: gpio 7 (configured as GPIO U.00 in pinmux)

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

hello juho.roine,

could you please compare the kernel logs between hot-plugging and mounted when booting.
you shall have the same kernel API being called for the fail use-case.
thanks