]> git.dujemihanovic.xyz Git - u-boot.git/commit
power: regulator: Trigger probe of regulators which are always-on or boot-on
authorMarek Vasut <marex@denx.de>
Thu, 26 Sep 2024 23:14:12 +0000 (01:14 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 1 Oct 2024 01:19:07 +0000 (19:19 -0600)
commit51c4679d2f848e91b4a0cf867a426ffe5bb094b2
treeadd5b1076dd7b98b5923eee39d0f4c1385cc3ebc
parent3a0b829efc35227b1079a444f00e0729502197ad
power: regulator: Trigger probe of regulators which are always-on or boot-on

In case a regulator DT node contains regulator-always-on or regulator-boot-on
property, make sure the regulator gets correctly configured by U-Boot on start
up. Unconditionally probe such regulator drivers. This is a preparatory patch
for introduction of .regulator_post_probe() which would trigger the regulator
configuration.

Parsing of regulator-always-on and regulator-boot-on DT property has been
moved to regulator_post_bind() as the information is required early, the
rest of the DT parsing has been kept in regulator_pre_probe() to avoid
slowing down the boot process.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/power/regulator/regulator-uclass.c
test/dm/panel.c
test/dm/regulator.c