arm64: renesas: r8a779g3: Disable MicroSD UHS modes on Retronix R-Car V4H Sparrow...
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 6 Aug 2025 00:56:15 +0000 (02:56 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 17 Aug 2025 12:41:23 +0000 (14:41 +0200)
commite394ef09bc7389089b410e81fb660ad6ce18223a
treec1dfea3800ce4a6ecd871ed28b3773160eb0eb51
parent93297f1f9bb5e21149fc344aaddf7cf2b7e1fb8f
arm64: renesas: r8a779g3: Disable MicroSD UHS modes on Retronix R-Car V4H Sparrow Hawk EVTA1

The Retronix R-Car V4H Sparrow Hawk old revision EVTA1 does not have MicroSD
voltage switch populated on the board, therefore the board supports only 3V3
and non-UHS MicroSD cards. While the EVTB1 board is populated with Winbond
W77Q51NW SPI NOR, the EVTA1 board is populated with Spansion S25FS512S SPI
NOR, those those SPI NOR IDs to discern the two board revisions and apply
the MicroSD related DT changes.

The MicroSD related DT changes modify the regulator node, which is now a
regulator-fixed and supplies only 3V3, and remove sd-uhs-sdr50 and
sd-uhs-sdr104 properties from the MicroSD slot controller node.

The MicroSD related DT changes cannot be applied as DTO, because the base
DT contains nodes which have to be removed in case of EVTA1, but have to
be present in case of EVTB1 and newer revisions of the board. Because the
EVTA1 is an old revision of the board that is not generally available, it
is better to special case it and keep the base DT compatible with EVTB1
and newer revisions of the board which are actually available.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
board/renesas/sparrowhawk/sparrowhawk.c