用AM3352的板子,内核4.19,emmc1 不能使能8线
我看了很多贴子的log似乎都用的4线 驱动omap_hsmmc.c
&mmc2 {
vmmc-supply = <&vmmcsd_fixed>;
pinctrl-names = "default";
pinctrl-0 = <&emmc_pins>;
bus-width = <8>;
status = "okay";
ti,non-removable;
};
信息:
root:~# cat /sys/kernel/debug/mmc1/ios
clock: 52000000 Hz
vdd: 20 (3.2 ~ 3.3 V)
bus mode: 2 (push-pull)
chip select: 0 (don't care)
power mode: 2 (on)
bus width: 2 (4 bits)
timing spec: 1 (mmc high-speed)
log:
[ 1.662924] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 100 kHz
[ 1.672359] omap_hsmmc 481d8000.mmc: omap_hsmmc_set_bus_width ios->timing=1 ios->bus_width=0
[ 1.680990] omap_hsmmc 481d8000.mmc: Set clock to 400000Hz
[ 1.686838] omap_hsmmc 481d8000.mmc: omap_hsmmc_set_bus_width ios->timing=1 ios->bus_width=0
[ 1.695431] omap_hsmmc 481d8000.mmc: Set clock to 52000000Hz
[ 1.701433] omap_hsmmc 481d8000.mmc: omap_hsmmc_set_bus_width ios->timing=1 ios->bus_width=3
[ 1.710020] omap_hsmmc 481d8000.mmc: Set clock to 52000000Hz
[ 1.716069] mmc1: switch to bus width 8 faiLED
[ 1.720589] omap_hsmmc 481d8000.mmc: omap_hsmmc_set_bus_width ios->timing=1 ios->bus_width=2
[ 1.729175] omap_hsmmc 481d8000.mmc: Set clock to 52000000Hz
[ 1.735710] mmc1: new high speed MMC card at address 0001
[ 1.742154] mmcblk1: mmc1:0001 004G60 3.69 GiB
[ 1.747295] mmcblk1boot0: mmc1:0001 004G60 partition 1 2.00 MiB
[ 1.753768] mmcblk1boot1: mmc1:0001 004G60 partition 2 2.00 MiB
[ 1.759963] mmcblk1rpmb: mmc1:0001 004G60 partition 3 512 KiB, chardev (244:0)