diff options
author | Andrej Picej <andrej.picej@norik.com> | 2021-11-19 10:54:27 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-25 08:29:57 +0100 |
commit | b72062565937f8e9a98101a2dc1879c44a96ba25 (patch) | |
tree | f73a28d2ea615a27e477576da6508e64b7067d01 /arch/arm | |
parent | c7beb9e75ea14413cf83b84d83072b92cec9dc3b (diff) | |
download | barebox-b72062565937f8e9a98101a2dc1879c44a96ba25.tar.gz barebox-b72062565937f8e9a98101a2dc1879c44a96ba25.tar.xz |
regulator: allow use of dummy regulator
The idea of devicetree property which allows use of dummy regulator is
not new but has not been implemented until now.
This implementation uses barebox specific devicetree property
"barebox,allow-dummy-supply" to allow switching to a dummy power
regulator in cases where proper regulator driver is not available. This
property can be set for regulator or for PMIC regulators nodes, which
then allow use of dummy regulator for all its child nodes. Basically
just catch the regulators ensure_probed error, if
"barebox,allow-dummy-supply" property is set and return dummy regulator.
Signed-off-by: Andrej Picej <andrej.picej@norik.com>
Link: https://lore.barebox.org/20211119095429.1905473-5-andrej.picej@norik.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions