Hi all
In our custom board, we are trying to boot am5748 MLO and u-boot.img from SPI flash then the kernel and file system from emmc which is connected to mmc3 port. My question is can we connect emmc to mm3 port if so how to enable from u-boot.
I tried to enable it in u-boot by adding a DT node for mm3 as below
In dra7.dtsi
mmc3: mmc@480ad000 {
compatible = "ti,dra7-hsmmc", "ti,omap4-hsmmc";
reg = <0x480ad000 0x400>;
interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
ti,hwmods = "mmc3";
ti,dual-volt;
ti,needs-special-reset;
dmas = <&sdma_xbar 77>, <&sdma_xbar 78>;
dma-names = "tx", "rx";
status = "disabled";
/* Errata i887 limits max-frequency of MMC3 to 64 MHz*/
pbias-supply = <&pbias_mmc_reg>;
max-frequency = <64000000>;
sd-uhs-sdr12;
sd-uhs-sdr25;
sd-uhs-sdr50;
};
In am57xx-idk-common.dtsi
&mmc3 {
status = "okay";
vmmc-supply = <&v3_3d>;
bus-width = <8>;
ti,non-removable;
max-frequency = <64000000>;
};
In am574x-idk.dts
&mmc3 {
pinctrl-names = "default";
pinctrl-0 = <&mmc3_pins_default>;
};
In board.c I am calling mmc init function omap_mmc_init(2,0,0,-1,-1);
In the console I am getting the error as below
U-Boot SPL 2018.01 (Feb 14 2019 - 17:33:22)
DRA762-GP ES1.0 ABZ package
Trying to boot from MMC1
no pinctrl state for default mode
Card did not respond to voltage select!
*** Warning - MMC init failed, using default environment
reading u-boot.img
reading u-boot.img
reading u-boot.img
reading u-boot.img
U-Boot 2018.01 (Feb 14 2019 - 17:33:22 +0530)
CPU : DRA762-GP ES1.0 ABZ package
Model: TI AM5748 IDK
BOARD: AM5748DRAM: 1 GiB
MMC: omap_hsmmc_init_setup: timedout waiting for cc2!
mmc@480ad000 - probe failed: -110
OMAP SD/MMC: 0, OMAP SD/MMC: 1, OMAP SD/MMC: 2
Card did not respond to voltage select!
*** Warning - MMC init failed, using default environment
Why I am getting this error and provide me the solution
Thank you
Deepak.H.M