]> 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)
commit3c829c1b30e8e383125c30e3f7aa7da1b47d20a9
treea5f5357b66258d47a31aa53946c0c5e45308f10a
parentd3d5a008f810bae14e8d2d2ff665827f14d28dd8
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