]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0025e1007bf7f50a218c5bd000ef945c28ef7a60
treea5f5357b66258d47a31aa53946c0c5e45308f10a
parent36f314e0b9730aad9d3e84ac21b427b951a00994
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