]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ARM: dts: renesas: armadillo800eva: Enable SDHI1
authorbui duc phuc <phucduc.bui@gmail.com>
Tue, 24 Feb 2026 07:45:32 +0000 (14:45 +0700)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 13 Mar 2026 09:57:50 +0000 (10:57 +0100)
commit057c0944e09ff3392d2add958c3d2bd5b6586f1d
treefa1513bce168ccf79be60e9d32f2a7d91b65fa13
parentb2eaf45e12fafffbdfc20dbe7cb160a4d2c8f9be
ARM: dts: renesas: armadillo800eva: Enable SDHI1

The Armadillo-800EVA board provides an SD card slot and an AWL13 SDIO
interface connected to the SDHI1 controller.  Routing between these two
interfaces is controlled by a mechanical DIP switch and a set of
multiplexers.

To support this, add:
  - A fixed 3.3V regulator for SDHI1 power, controlled by PORT16 (G2),
  - SDHI1 pinmux groups for data, control, and card detection,
  - A gpio-hog for PORT6 (J5) to control the SDHI1/AWLAN multiplexer.

PORT176 (N21) is already configured as output-high in this DTS (via
lcd0-mux-hog), routing the SDSLOT2_ENABLE signal to PORT6.  Since the
hardware includes an external 10k pull-up resistor (R94) on this line,
PORT6 is configured as an input to allow the physical DIP switch to
determine the routing without SoC interference.

Both configurations have been verified:
  - SD card (CON8): detected as mmcblk1, high-speed SDHC,
  - SDIO (CON14): detected as mmc1, high-speed SDIO.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260224074532.60046-1-phucduc.bui@gmail.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts