arm64: dts: renesas: rzg2lc-smarc-som: Enable eMMC on SMARC platform
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 17 Jan 2022 07:51:29 +0000 (07:51 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 2 Feb 2022 08:26:18 +0000 (09:26 +0100)
commit7ca0ce6478c6803c9f86e7366f5634de9c096207
treea5f5357b66258d47a31aa53946c0c5e45308f10a
parentf91c4c74796acca0a5a3bde747948a844eb2c30b
arm64: dts: renesas: rzg2lc-smarc-som: Enable eMMC on SMARC platform

RZ/G2LC 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 OFF for selecting eMMC
Set SW1[2] to position ON for selecting microSD

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

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20220117075130.6198-1-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/rzg2lc-smarc-som.dtsi