diff options
| author | Linus Walleij <linusw@kernel.org> | 2026-09-01 22:02:15 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-10 19:52:57 +0100 |
| commit | ef3f3dc934305c1c4920addd361697add82381d8 (patch) | |
| tree | 7ed580b7d1dddbd05407857dd126f16da6f4bf20 /tools/perf/scripts/python | |
| parent | f9400f0f49ef2a84c32187adde5db0d186cfb7a6 (diff) | |
regulator: ab8500: Preserve OTP-enabled buck regulators
The SMPS enable fields are initialized from OTP and may leave a rail
enabled for discrete consumers which cannot be described in the device
tree. Such a rail currently looks unused to the regulator core and is
disabled when constraints are completed.
Read the enable field while registering each switchable buck
regulator. If it is nonzero, mark the regulator boot-on and always-on
dynamically so the unused-regulator sweep leaves it alone. Keep the
enable operation idempotent so applying the always-on constraint
preserves an OTP-selected hardware-control or low-power mode instead of
forcing high-power mode. Synchronize the cached mode with the preserved
field so an OTP-selected low-power state is also reported correctly.
Regulators which are disabled by OTP retain normal switchable
behavior.
Assisted-by: LLM
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260901-ux500-dts-snowball-regulator-v2-10-fe88b01829bf@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
