ARM: dts: sun8i: a83t: bananapi-m3: describe SATA disk regulator
authorAndre Przywara <andre.przywara@arm.com>
Fri, 20 Jan 2023 01:26:16 +0000 (01:26 +0000)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Fri, 27 Jan 2023 21:34:32 +0000 (22:34 +0100)
commitbeabd511e657d0b95fca1d02950083a77572debe
tree53b4905cc1d84f9f4e5a4579f3237799aba9ea86
parent2177d4ae971f79b4a9a3c411f2fb8ae6113d1430
ARM: dts: sun8i: a83t: bananapi-m3: describe SATA disk regulator

The Bananapi-M3 has a SATA connector, driven by a USB-to-SATA bridge
soldered on the board. The power for the SATA device is provided by a
GPIO controlled regulator. Since the SATA device is behind USB, it has
no DT node, so we never described this regulator. Instead U-Boot was
turning this on in a rather hackish way, which we now want to get rid of.
On top of that it seems fragile to leave this GPIO undescribed, as
userland could claim it and turn the disk off.

Add a fixed regulator, controlled by the PD25 GPIO, and mark it as
always-on. This would mimic the current situation, but in a safer way,
and would allow U-Boot to drop the CONFIG_SATAPWR enable hack.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20230120012616.30960-1-andre.przywara@arm.com
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts