]> git.baikalelectronics.ru Git - uboot.git/commit
phy: add support for phy-supply
authorEugen Hristev <eugen.hristev@collabora.com>
Mon, 15 May 2023 09:59:47 +0000 (12:59 +0300)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 17 May 2023 09:36:18 +0000 (17:36 +0800)
commitf507bd87238b8781c2446d0d45b6e3a63a36999b
treeaaa4e4fe51fcd22f46c8497f7d3c207bc3f9f4bd
parentd323ecd31222d13c56470c1e11141b59e3604898
phy: add support for phy-supply

Some phys require a phy-supply property that is a phandle to a regulator
that needs to be enabled for phy operations.
Implement basic supply lookup, enable and disabling, if DM_REGULATOR is
available.

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
[jonas@kwiboo.se:
use regulator_set_enable_if_allowed and disable if power_on ops fails]
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
drivers/phy/phy-uclass.c