card_high_speed = <0x1>;
card_line = <0x4>;
/*
pinctrl-0 = <&sdc0_pins_a>;
*/
};
修改后
&card0_boot_para { /* Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value /
/ reg = <0x0 0x2 0x0 0x0>; [> Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value <] */
device_type = “card0_boot_para”;
card_ctrl = <0x0>;
card_high_speed = <0x1>;
card_line = <0x4>;
pinctrl-0 = <&sdc0_pins_a>; //取消这段代码的注释
};
2.3、修改tina-d1-h/device/config/chips/d1s/configs/nezha/linux-5.4/board.dts
修改前:
&sdc0 {
bus-width = <4>;
cd-gpios = <&pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
/non-removable;/
/broken-cd;/
/cd-inverted;/
/data3-detect;/
/card-pwr-gpios = <&pio PH 14 1 1 2 0xffffffff>;/
cd-used-24M;
cap-sd-highspeed;
/sd-uhs-sdr50;/
/sd-uhs-ddr50;/
/sd-uhs-sdr104;/
no-sdio;
no-mmc;
sunxi-power-save-mode;
/sunxi-dis-signal-vol-sw;/
max-frequency = <150000000>;
c