AnsweredAssumed Answered

SDcard over SPI on iMX6SX

Question asked by ambroiseaa on Sep 28, 2015
Latest reply on Sep 29, 2015 by ambroiseaa

Hi,

 

I'm working on an iMX6 solo X (ref.: MCIMX6X1CVO08AB, version without GPU) and I need a sdcard over SPI, but it doesn't work (All SDIO ports are occupied).

 

In my DTS file :

DTS file

&ecspi4{

 

    fsl,spi-num-chipselects = <1>;

 

    pinctrl-names = "default";

 

    pinctrl-0 = <&pinctrl_spi4>;

 

    status = "okay";

 

    cs-gpios = <&gpio6 10 0>;

 

   

 

    mmc-slot@0 {

 

        #address-cells = <1>;

 

        #size-cells = <1>;

 

        compatible = "fsl,mpc8323rdb-mmc-slot", "mmc-spi-slot";

 

        reg = <0>;

 

        spi-max-frequency = <1000000>;

 

    };   

 

};

 

 

 

 

pinctrl_hog: hoggrp {

 

            fsl,pins = <

 

            MX6SX_PAD_KEY_COL0__GPIO2_IO_10         0x1b0b0 /*RST FEC1/ENET1*/

 

            MX6SX_PAD_KEY_COL2__GPIO2_IO_12         0x1b0b0 /*RST FEC2/ENET2*/

 

            MX6SX_PAD_SD2_DATA2__GPIO6_IO_10        0x80000000 /*SDcard SS for ecspi4*/

 

            >;

 

        };

 

 

pinctrl_spi4: spi4grp {

 

            fsl,pins = <

 

                MX6SX_PAD_SD2_CLK__ECSPI4_SCLK        0x100b1

 

                MX6SX_PAD_SD2_CMD__ECSPI4_MOSI        0x100b1

 

                MX6SX_PAD_SD2_DATA3__ECSPI4_MISO    0x100b1

 

            >;

 

        };

 

 

I also activated SPI supports and MMC/SD/SDIO card support in Kernel. Am I missing something ?

Outcomes