arm64: dts: renesas: rzg2l-smarc-som: Enable eMMC on SMARC platform
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 10 Oct 2021 14:25:19 +0000 (15:25 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 11 Oct 2021 08:55:48 +0000 (10:55 +0200)
commita60a311cb8d0cddaaeb1eee22bfd76138e6b5ad6
tree2b4b7f9a9874810171fb984949d7f718fc21b935
parenta83ad872f4ba6b9fbf81b9f70d6ff6d61d74bf7e
arm64: dts: renesas: rzg2l-smarc-som: Enable eMMC on SMARC platform

RZ/G2L SoM has both 64 GB eMMC and microSD connected to SDHI0.

Both these interfaces are mutually exclusive and the SD0 device
selection is based on the XOR between GPIO_SD0_DEV_SEL and SW1[2]
switch position.

This patch sets GPIO_SD0_DEV_SEL to high in DT. Use the below switch
setting logic for device selection between eMMC and microSD slot
connected to SDHI0.

Set SW1[2] to position 2/OFF for selecting eMMC
Set SW1[2] to position 3/ON for selecting microSD

This patch enables eMMC on RZ/G2L SMARC platform by default.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20211010142520.21976-2-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/rzg2l-smarc-som.dtsi