AnsweredAssumed Answered

SD Card Interface on i.MX 6

Question asked by Shreejith Nekkarekadu on Dec 4, 2018
Latest reply on Jun 27, 2019 by Nikolaus Andreas


Currently am working on i.MX6DP based custom board where am trying to interface SD Card as mmc0 device on Android 8.0. My dtsi file configurations for USDHC1 are as below,

pinctrl_usdhc1: usdhc1grp {
               fsl,pins = <
                        MX6QDL_PAD_SD1_CMD__SD1_CMD              0x17059
                        MX6QDL_PAD_SD1_CLK__SD1_CLK                0x10059
                        MX6QDL_PAD_SD1_DAT0__SD1_DATA0          0x17059
                        MX6QDL_PAD_SD1_DAT1__SD1_DATA1          0x17059
                        MX6QDL_PAD_SD1_DAT2__SD1_DATA2          0x17059
                        MX6QDL_PAD_SD1_DAT3__SD1_DATA3          0x17059
                        MX6QDL_PAD_GPIO_1__SD1_CD_B                 0x1f059    /*CD*/



&usdhc1 {
               pinctrl-names = "default";
               pinctrl-0 = <&pinctrl_usdhc1>;
               bus-width = <4>;
               cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; /*GPIO_1*/
               status = "okay";


While kernel is booting up am able to see the below log,

      sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
      mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA

      mmc0: host does not support reading read-only switch, assuming write-enable
      mmc0: new high speed SDHC card at address 59b4
      mmcblk0: mmc0:59b4 USD 14.9 GiB
      mmcblk0: p1


But once the system comes up am unable to detect the SD Card in File Manager.

Please help me to solve the issue.