Part Number: AM5728
Tool/software: TI-RTOS
Hi,
I encountered a problem about mmc1. When I called the FATFS_open(0U, NULL, &fsHandle) to open the FatFs mmc1 module, it returned error with -1. I tried to call FATFS_open(2U, NULL, &fsHandle) using the same application to operate the mmc3 module, and it success. I also modified the dts file to enable the mmc0, and operate the mmc1 on linux, it worked normally. So I want to know where I make mistake, and what I can do to open mmc1 module.
The mmc1 part of dts file:
&mmc1 { status = "disabled"; pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50", "sdr104"; pinctrl-0 = <&mmc1_pins_default>; pinctrl-1 = <&mmc1_pins_hs>; pinctrl-2 = <&mmc1_pins_sdr12>; pinctrl-3 = <&mmc1_pins_sdr25>; pinctrl-4 = <&mmc1_pins_sdr50>; pinctrl-5 = <&mmc1_pins_ddr50 &mmc1_iodelay_ddr_rev20_conf>; pinctrl-6 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev20_conf>; vmmc-supply = <&vdd_3v3>; vmmc_aux-supply = <&ldo1_reg>; ti,late-attach; ti,no-idle-on-init; ti,no-reset-on-init; keep-power-in-suspend; compatible = "ti,dra7-hsmmc", "ti,omap4-hsmmc"; reg = <0x4809c000 0x400>; interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; ti,hwmods = "mmc1"; ti,dual-volt; ti,needs-special-reset; ti,needs-special-hs-handling; dmas = <&sdma_xbar 61>, <&sdma_xbar 62>; dma-names = "tx", "rx"; pbias-supply = <&pbias_mmc_reg>; max-frequency = <192000000>; /delete-property/sd-uhs-sdr104; /delete-property/sd-uhs-sdr50; /delete-property/sd-uhs-ddr50; /delete-property/sd-uhs-sdr25; /delete-property/sd-uhs-sdr12; #address-cell = <1>; #size-cell = <0>; }; /delete-node/&mmc1;
The version of hardware and software:
Sitara AM5728 M4, MMC1 module;
ti-processor-sdk-rtos-am57xx-evm-05.03.00.07;
pdk_am57xx_1_0_14