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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,136 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,877 次查看
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 项奖励
回复
3 回复数
1,878 次查看
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 项奖励
回复
1,877 次查看
jtobias
Contributor III

Hi Dong,

Thanks for the info.

Regards,

john

0 项奖励
回复
1,877 次查看
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 项奖励
回复