regulator: gpio: Add input_supply support in gpio_regulator_config
authorJerome Neanne <jneanne@baylibre.com>
Thu, 29 Sep 2022 13:25:25 +0000 (15:25 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 29 Sep 2022 14:20:14 +0000 (15:20 +0100)
commitadfdfcbdbd32b356323a3db6d3a683270051a7e6
tree5a9a2a98a86588ae3898c8a20d9bda1d574bca62
parent947934e389f716d505a656d04388b2ecbe43281d
regulator: gpio: Add input_supply support in gpio_regulator_config

This is simillar as fixed-regulator.
Used to extract regulator parent from the device tree.

Without that property used, the parent regulator can be shut down (if not an always on).
Thus leading to inappropriate behavior:
On am62-SP-SK this fix is required to avoid tps65219 ldo1 (SDMMC rail) to be shut down after boot completion.

Signed-off-by: Jerome Neanne <jneanne@baylibre.com>
Link: https://lore.kernel.org/r/20220929132526.29427-2-jneanne@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/gpio-regulator.c
include/linux/regulator/gpio-regulator.h