Hi Pavel,
Thanks for your answer. I corrected my dts file and there was a HW problem too.
Now, i have a new problem :
When booting my kernel prints :
"mmc4: mmc_rescan_try_freq: trying to init card at 400000 Hz" every few seconds (it's always 400000 Hz).
Just before the first time this message appear, there is : "mmc_spi spi3.0: SD/MMC host mmc4, no WP, no poweroff, cd polling"
I read on the web that could be a spi mode problem. How can I change it ?
my new dts file :
---------------------------------------------------------------------------------------------------
&ecspi4{
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi4>;
cs-gpios = <&gpio6 8 0>;
status = "okay";
sdcard: mmc-slot@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "mmc-spi-slot";
reg = <0>;
spi-max-frequency = <5000000>;
voltage-ranges = <3200 3400>;
disable-wp;
disable-cd;
};
};
pinctrl_spi4: spi4grp {
fsl,pins = <
MX6SX_PAD_SD2_CLK__ECSPI4_SCLK 0x17071
MX6SX_PAD_SD2_CMD__ECSPI4_MOSI 0x17071
MX6SX_PAD_SD2_DATA3__ECSPI4_MISO 0x17071
MX6SX_PAD_SD2_DATA0__GPIO6_IO_8 0x80000000
>;
};
---------------------------------------------------------------------------------------------------
Thanks a lot for your help,