Other Parts Discussed in Thread: WL1837, BEAGLEBOARD-X15
Hi sir,
we are using AM5728 reference design of custom board.
device are connected as below
MMC1 ----->SD Card
MMC2 ----->EMMC Device
MMC3 ----->WL1837 Wifi module.
I enable only two devices(mmc1,mmc2) in device tree using below method but it's now show any thing for emmc in beagle board x15 it's showing.
U-Boot Device tree:(am572x-beagle-x15-common.dts)
&mmc1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins_default>;
bus-width = <4>;
cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
no-1-8-v;
};
&mmc2 {
status = "okay";
vmmc-supply = <&vdd_3v3>;
pinctrl-names = "default", "hs";
pinctrl-0 = <&mmc2_pins_default>;
pinctrl-1 = <&mmc3_pins_hs>;
bus-width = <8>;
ti,non-removable;
cap-mmc-dual-data-rate;
no-1-8-v;
max-frequency = <48000000>;
};
Output:
U-Boot 2019.01-g463d755-dirty (Feb 21 2023 - 20:53:22 +0530)
CPU : DRA752-GP ES2.0
Model: TI AM5728 BeagleBoard-X15
Board: CARAVEL-ENCODER AM572x EVM Camera ModDRAM: 1 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... OK
omap_hsmmc_send_cmd : DMA timeout: No status update
invalid mmc device
Net:
Warning: ethernet@48484000 MAC addresses don't match:
Address in ROM is 68:e7:4a:8b:8c:48
Address in environment is 6c:30:2a:47:4b:42
eth0: ethernet@48484000
Hit any key to stop autoboot: 0
=> mmc info
Device: OMAP SD/MMC
Manufacturer ID: 3
OEM: 5344
Name: SD32G
Bus Speed: 48000000
Mode : SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
=> mmc list
OMAP SD/MMC: 0 (SD)
OMAP SD/MMC: 1
=> mmc dev 0
switch to partitions #0, OK
mmc0 is current device
=> mmc dev 1
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
=> mmc dev 1
omap_hsmmc_send_cmd : DMA timeout: No status update
=>
I enable only three devices(mmc1,mmc2,mmc3) in device tree using below method but it's now show any thing for wl1837 in am5728 evm it's showing.
U-Boot Device tree:(am572x-beagle-x15-common.dts)
&mmc1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins_default>;
bus-width = <4>;
cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
no-1-8-v;
};
&mmc2 {
status = "okay";
vmmc-supply = <&vdd_3v3>;
pinctrl-names = "default", "hs";
pinctrl-0 = <&mmc2_pins_default>;
pinctrl-1 = <&mmc3_pins_hs>;
bus-width = <8>;
ti,non-removable;
cap-mmc-dual-data-rate;
no-1-8-v;
max-frequency = <48000000>;
};
&mmc3 {
status = "okay";
vmmc-supply = <&vdd_3v3>;
bus-width = <4>;
pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50";
pinctrl-0 = <&mmc3_pins_default>;
pinctrl-1 = <&mmc3_pins_hs>;
pinctrl-2 = <&mmc3_pins_sdr12>;
pinctrl-3 = <&mmc3_pins_sdr25>;
pinctrl-4 = <&mmc3_pins_sdr50>;
cap-power-off-card;
keep-power-in-suspend;
ti,non-removable;
no-1-8-v;
/* #address-cells = <1>;
#size-cells = <0>;
wlcore: wlcore@0 {
compatible = "ti,wl1837";
reg = <0>;
interrupt-parent = <&gpio5>;
interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
};*/
};
Output:
U-Boot 2019.01-g463d755-dirty (Feb 21 2023 - 20:56:43 +0530)
CPU : DRA752-GP ES2.0
Model: TI AM5728 BeagleBoard-X15
Board: CARAVEL-ENCODER AM572x EVM Camera ModDRAM: 1 GiB
MMC: omap_hsmmc_init_setup: timedout waiting for cc2!
mmc@480ad000 - probe failed: -110
OMAP SD/MMC: 0, OMAP SD/MMC: 1omap_hsmmc_init_setup: timedout waiting for cc2!
Loading Environment from FAT... OK
omap_hsmmc_send_cmd : DMA timeout: No status update
invalid mmc device
Net:
Warning: ethernet@48484000 MAC addresses don't match:
Address in ROM is 68:e7:4a:8b:8c:48
Address in environment is 6c:30:2a:47:4b:42
eth0: ethernet@48484000
Hit any key to stop autoboot: 0
=> mmc info
Device: OMAP SD/MMC
Manufacturer ID: 3
OEM: 5344
Name: SD32G
Bus Speed: 48000000
Mode : SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
=> mmc list
OMAP SD/MMC: 0 (SD)
OMAP SD/MMC: 1omap_hsmmc_init_setup: timedout waiting for cc2!
=> mmc dev 0
switch to partitions #0, OK
mmc0 is current device
=> mmc dev 1
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
=> mmc dev 2
no mmc device at slot 2
=>
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/560946/am335x-emmc-boot
as per the above changes done omap_hsmmc.c file but same issue.
Any changes required in the code side, Could you give me some suggestions.
Thanking you,
Regards,
Ramachandra