[PATCH 1/3] ARM: renesas: condor: switch eMMC bus to 1V8

From: Hai Pham hai.pham.ud@renesas.com
The eMMC card has two supplies, VCC and VCCQ. The VCC supplies the NAND array and the VCCQ supplies the bus. On Condor, the VCC is connected to 3.3V rail, while the VCCQ is connected to 1.8V rail. Adjust the pinmux to match the bus, which is always operating in 1.8V mode.
Based on Linux commit 69efe4bbeda50745 ("arm64: dts: renesas: condor: Switch eMMC bus to 1V8") from Wolfram Sang
Signed-off-by: Hai Pham hai.pham.ud@renesas.com --- arch/arm/dts/r8a77980-condor.dts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/arm/dts/r8a77980-condor.dts b/arch/arm/dts/r8a77980-condor.dts index 3dde028e22..f0a0a51d73 100644 --- a/arch/arm/dts/r8a77980-condor.dts +++ b/arch/arm/dts/r8a77980-condor.dts @@ -212,7 +212,7 @@
&mmc0 { pinctrl-0 = <&mmc_pins>; - pinctrl-1 = <&mmc_pins_uhs>; + pinctrl-1 = <&mmc_pins>; pinctrl-names = "default", "state_uhs";
vmmc-supply = <&d3_3v>; @@ -253,12 +253,6 @@ };
mmc_pins: mmc { - groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; - function = "mmc"; - power-source = <3300>; - }; - - mmc_pins_uhs: mmc_uhs { groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; function = "mmc"; power-source = <1800>;

From: Andrey Dolnikov andrey.dolnikov@cogentembedded.com
This enables MMC support, which is available on Condor board, by default.
Signed-off-by: Andrey Dolnikov andrey.dolnikov@cogentembedded.com Signed-off-by: Valentine Barshak valentine.barshak@cogentembedded.com Signed-off-by: Hai Pham hai.pham.ud@renesas.com --- configs/r8a77980_condor_defconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/configs/r8a77980_condor_defconfig b/configs/r8a77980_condor_defconfig index 7be8bc204a..856d0c8e6b 100644 --- a/configs/r8a77980_condor_defconfig +++ b/configs/r8a77980_condor_defconfig @@ -27,6 +27,7 @@ CONFIG_CMD_BOOTZ=y CONFIG_CMD_DFU=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y +CONFIG_CMD_MMC=y CONFIG_CMD_SPI=y CONFIG_CMD_USB=y CONFIG_CMD_DHCP=y @@ -54,7 +55,11 @@ CONFIG_DFU_SF=y CONFIG_RCAR_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_RCAR_I2C=y -# CONFIG_MMC is not set +CONFIG_DM_MMC=y +CONFIG_MMC_IO_VOLTAGE=y +CONFIG_MMC_UHS_SUPPORT=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_RENESAS_SDHI=y CONFIG_MTD=y CONFIG_DM_SPI_FLASH=y CONFIG_SPI_FLASH_SPANSION=y

From: Valentine Barshak valentine.barshak@cogentembedded.com
This adds "renesas,rpc-r8a77980" to the compatible device list.
Signed-off-by: Valentine Barshak valentine.barshak@cogentembedded.com --- drivers/spi/renesas_rpc_spi.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/spi/renesas_rpc_spi.c b/drivers/spi/renesas_rpc_spi.c index 26b6aa85c9..9cd9a410b7 100644 --- a/drivers/spi/renesas_rpc_spi.c +++ b/drivers/spi/renesas_rpc_spi.c @@ -454,6 +454,7 @@ static const struct udevice_id rpc_spi_ids[] = { { .compatible = "renesas,rpc-r8a7796" }, { .compatible = "renesas,rpc-r8a77965" }, { .compatible = "renesas,rpc-r8a77970" }, + { .compatible = "renesas,rpc-r8a77980" }, { .compatible = "renesas,rpc-r8a77995" }, { .compatible = "renesas,rcar-gen3-rpc" }, { }
participants (1)
-
Marek Vasut