Hi, I am using Jacinto 6, GLSDK 7.04.03.
If we replace eMMC to "Kingston 8GB EMMC08G-W325-B52" on DRA742-EVM 577G-02-21-00 board, should i modify eMMC driver?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Shawn,
Let us first focus on u-boot. The 1.8V vs 3.3V settings are in the below files:
u-boot/arch/arm/dts/dra7.dtsi
mmc2: mmc@480b4000 {
compatible = "ti,dra7-hsmmc", "ti,omap4-hsmmc";
reg = <0x480b4000 0x400>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
ti,hwmods = "mmc2";
ti,needs-special-reset;
dmas = <&sdma 47>, <&sdma 48>;
dma-names = "tx", "rx";
mmc-hs200-1_8v;
mmc-ddr-1_8v;
status = "disabled";
};
u-boot/drivers/mmc/mmc-uclass.c
if (fdtdec_get_bool(fdt, node, "mmc-ddr-1_8v"))
cfg->host_caps |= MMC_MODE_DDR_52MHz;
if (fdtdec_get_bool(fdt, node, "mmc-hs200-1_8v"))
cfg->host_caps |= MMC_MODE_HS200;
u-boot/drivers/mmc/omap_hsmmc.c
OMAP_HSMMC_SETUP_PINCTRL(MMC_MODE_HS200, hs200_1_8v);
OMAP_HSMMC_SETUP_PINCTRL(MMC_MODE_DDR_52MHz, ddr_1_8v);
So you should update dra7.dtsi. See DRA74x TRM, chapter 25 eMMC, for more info regarding 1.8V IOs vs 3.3V IOs
Regards,
Pavel
Hi Pavel,
in u-boot/arch/arm/dts/dra7.dtsi, i can't see "mmc-hs200-1_8v" & "mmc-ddr-1_8v". the content of my file is
mmc2: mmc@480b4000 {
compatible = "ti,dra7-hsmmc", "ti,omap4-hsmmc";
reg = <0x480b4000 0x400>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
ti,hwmods = "mmc2";
ti,needs-special-reset;
dmas = <&sdma_xbar 47>, <&sdma_xbar 48>;
dma-names = "tx", "rx";
status = "disabled";
};
and i can't find u-boot/drivers/mmc/mmc-uclass.c this file.
and in u-boot/drivers/mmc/omap_hsmmc.c, i also can't see
OMAP_HSMMC_SETUP_PINCTRL(MMC_MODE_HS200, hs200_1_8v);
OMAP_HSMMC_SETUP_PINCTRL(MMC_MODE_DDR_52MHz, ddr_1_8v);
these two function call.
But i still can access eMMC. So, maybe the 1.8V is the default voltage setting for eMMC, that's why i can use it without specify 1.8V setting for it, right?
Another question=>So i should only modify u-boot/arch/arm/dts/dra7.dtsi for 3.3V setting, right?
P.S. the attached are the related files of mine5618.files.7z
best regards
Shawn
Hi Pavel,
In u-boot/board/ti/dra7xx/evm.c, i only see one part related to 1.8v, as blow
case DRA752_ES2_0:
max_freq = cpu_to_fdt32(192000000);
/* dt-update: add mmc1 property*/
fdt_addprop_aliases(fdt, "mmc1", "sd-uhs-sdr104", NULL, 0);
fdt_addprop_aliases(fdt, "mmc1", "max-frequency", &max_freq, 4);
/* dt-update: add mmc2 property*/
fdt_addprop_aliases(fdt, "mmc2", "mmc-hs200-1_8v", NULL, 0);
fdt_addprop_aliases(fdt, "mmc2", "max-frequency", &max_freq, 4);
break;
So, you mean to change this string?
Besides, i can find dra7.dtsi in /SDK_DIR/board-support/linux/arch/arm/boot/dts/, should i modify this file too?
shawn lin said:So, you mean to change this string?
Yes. See how this string impact the mmc driver settings (1.8V vs 3.3V)
shawn lin said:Besides, i can find dra7.dtsi in /SDK_DIR/board-support/linux/arch/arm/boot/dts/, should i modify this file too?
No, I do not see anything related to 1.8V there. Focus on evm.c and omap_hsmmc.c
Regards,
Pavel
shawn lin said:So, you mean to change this string?
Yes
shawn lin said:Besides, i can find dra7.dtsi in /SDK_DIR/board-support/linux/arch/arm/boot/dts/, should i modify this file too?
No, I do not see anything related to 1.8V there.
Focus on evm.c and omap_hsmmc.c
Regards,
Pavel
Hi Pavel,
2 questions
1. What string should i use to replace "mmc-hs200-1_8v"? should i use "mmc-hs200-3_3v"?
2.In "u-boot/drivers/mmc/omap_hsmmc.c", i can't find any world related to 1_8v, which mean i should only modify "u-boot/board/ti/dra7xx/evm.c" this file, right?
Best regards,
Shawn
shawn lin said:1. What string should i use to replace "mmc-hs200-1_8v"? should i use "mmc-hs200-3_3v"?
No. If you are using ES 2.0 device, remove the below two lines:
fdt_addprop_aliases(fdt, "mmc2", "mmc-hs200-1_8v", NULL, 0);
fdt_addprop_aliases(fdt, "mmc2", "max-frequency", &max_freq, 4);
When 3.3V mode is used, eMMC do not support hs200 (192MHz) mode. In 3.3V mode, eMMC support up to HS (48MHz) mode.
shawn lin said:2.In "u-boot/drivers/mmc/omap_hsmmc.c", i can't find any world related to 1_8v, which mean i should only modify "u-boot/board/ti/dra7xx/evm.c" this file, right?
Yes, modify evm.c only.