Forcing to configure my sdio device in high speed mode instead of SDR50

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

Forcing to configure my sdio device in high speed mode instead of SDR50

Jump to solution
1,118 Views
jtobias
Contributor III

Hi,

My wireless device is running SDR50 on iMX6SL. For some reason, I need to test the device in high speed mode.

I would like to know how to force the sdhci-esdhc-imx.c to configure the device in high speed mode

instead of SDR50?.


Regards,

john

Labels (1)
0 Kudos
1 Solution
859 Views
DongAisheng
NXP Employee
NXP Employee

Hi John,

If you're using FSL release L3.10 kernel or latest upstream kernel,

there're two ways to disble USH mode for the card.

1. you can simply disable USH mode by adding no-1-8-v property under the device node.

e.g.

&usdhc1 {

        pinctrl-names = "default", "state_100mhz", "state_200mhz";

        pinctrl-0 = <&pinctrl_usdhc1_1>;

        pinctrl-1 = <&pinctrl_usdhc1_1_100mhz>;

        pinctrl-2 = <&pinctrl_usdhc1_1_200mhz>;

        bus-width = <8>;

        cd-gpios = <&gpio4 7 0>;

        wp-gpios = <&gpio4 6 0>;

        no-1-8-v;

        keep-power-in-suspend;

        enable-sdio-wakeup;

        status = "okay";

};

2. Do not define uhs pinctrl state, then driver will also automatically fall back to non-uhs mode

for the card.

e.g.

&usdhc1 {

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_usdhc1_1>;

        bus-width = <8>;

        cd-gpios = <&gpio4 7 0>;

        wp-gpios = <&gpio4 6 0>;

        keep-power-in-suspend;

        enable-sdio-wakeup;

        status = "okay";

};

Regards

Dong Aisheng

View solution in original post

0 Kudos
3 Replies
860 Views
DongAisheng
NXP Employee
NXP Employee

Hi John,

If you're using FSL release L3.10 kernel or latest upstream kernel,

there're two ways to disble USH mode for the card.

1. you can simply disable USH mode by adding no-1-8-v property under the device node.

e.g.

&usdhc1 {

        pinctrl-names = "default", "state_100mhz", "state_200mhz";

        pinctrl-0 = <&pinctrl_usdhc1_1>;

        pinctrl-1 = <&pinctrl_usdhc1_1_100mhz>;

        pinctrl-2 = <&pinctrl_usdhc1_1_200mhz>;

        bus-width = <8>;

        cd-gpios = <&gpio4 7 0>;

        wp-gpios = <&gpio4 6 0>;

        no-1-8-v;

        keep-power-in-suspend;

        enable-sdio-wakeup;

        status = "okay";

};

2. Do not define uhs pinctrl state, then driver will also automatically fall back to non-uhs mode

for the card.

e.g.

&usdhc1 {

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_usdhc1_1>;

        bus-width = <8>;

        cd-gpios = <&gpio4 7 0>;

        wp-gpios = <&gpio4 6 0>;

        keep-power-in-suspend;

        enable-sdio-wakeup;

        status = "okay";

};

Regards

Dong Aisheng

0 Kudos
859 Views
jtobias
Contributor III

Hi Dong,

Thanks for the info.

Regards,

john

0 Kudos
859 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi John,

If you have solved your problem, please help  click the Correct Answer button. Thank you very much~~

Have a nice day.

Best Regards

Dan

0 Kudos