Part Number: PROCESSOR-SDK-AM335X
Hi TI team:
My custom board am335x, emmc in linux kernel, print no support for card's volts. I can read and write emmc in uboot, But in linux there is nothing with fdisk -l. I have configured CONFIG_OMAP_HSMMC.My linux kernel version is 4.4. I use spiflash for uboot and i just want to access emmc in linux. My emmc is 8bit width. And in am33xx.dtsi, even I changed omap4-hsmmc to am33xx-hsmmc,I got the same result.
I take am335x-bone-common.dtsi as a refference, my dts is as follows. I use mmc1,
&mmc1 {
vmmc-supply = <&vmmcsd_fixed>;
pinctrl-names = "default";
pinctrl-0 = <&emmc_pins>;
bus-width = <8>;
status = "okay";
};
emmc_pins: pinmux_emmc_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_csn0.mmc1_clk */
AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_csn1.mmc1_cmd */
AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad0.mmc1_dat0 */
AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad1.mmc1_dat1 */
AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad2.mmc1_dat2 */
AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad3.mmc1_dat3 */
AM33XX_IOPAD(0x938, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ad4.mmc1_dat4 */
AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ad5.mmc1_dat5 */
AM33XX_IOPAD(0x930, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ad6.mmc1_dat6 */
AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ad7.mmc1_dat7 */
>;
};
I have checked the pins and make sure that it is no mistake.
The kernel print is as follows:
[ 3.255113] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
[ 3.264045] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 3.280042] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 3.287504] omap_hsmmc 48060000.mmc: @@@@@@@@@@@@ocr:16744576, ocr_avail:0
[ 3.294572] omap_hsmmc 48060000.mmc: no support for card's volts
[ 3.300705] mmc0: error -22 whilst initialising MMC card
I found that the ocr_avail is 0, so the error happens.
My emmc is MTFC4GACAJCN-4MIT, and it is 5.0, I google that am335x can support emmc 5.0.
Attachment is kernel print log and mmc pin definition.
Any help is appricaitedam335x.rar