Skip to content

For off on delay support#1527

Open
raryan-qcom wants to merge 2 commits into
qualcomm-linux:tech/pmic/miscfrom
raryan-qcom:for-off-on-delay-support
Open

For off on delay support#1527
raryan-qcom wants to merge 2 commits into
qualcomm-linux:tech/pmic/miscfrom
raryan-qcom:for-off-on-delay-support

Conversation

@raryan-qcom

Copy link
Copy Markdown

This series adds support for the standard regulator-off-on-delay-us
property to the Qualcomm RPMh regulator driver and updates the
corresponding Device Tree bindings.

Motivation:
On the Lenovo Yoga Slim 7x (Snapdragon X Elite), the camera regulators
(LDO1, LDO3, LDO7) have large bulk capacitors and rely on passive discharge.
When these regulators are disabled, the voltage decays very slowly. If
re-enabled too quickly, the sensor experiences a brownout and fails to
initialize.

Verification:
I verified that the core drivers/regulator/of_regulator.c does not
currently parse regulator-off-on-delay-us in of_get_regulation_constraints().
Therefore, the driver must parse this property explicitly and populate
rdesc->off_on_delay so the regulator core can enforce the constraint.

…elay-us

Add the standard 'regulator-off-on-delay-us' property to the list of
allowed properties for RPMh regulators.

This property is required for platforms where specific rails (like camera
LDOs) rely on passive discharge and need a mandatory off-time constraint
enforced by the regulator core.

Link: https://lore.kernel.org/all/20260127190211.14312-2-bjsaikiran@gmail.com/
Signed-off-by: Saikiran <bjsaikiran@gmail.com>
…y-us

The core regulator framework supports enforcing a physical off-time via
standard properties, but the `qcom-rpmh-regulator` driver currently ignores
them.

The issue is platform-specific: The Lenovo Yoga Slim 7x (Snapdragon X Elite)
has large bulk capacitors on the camera rails (LDO1, LDO3, LDO7). When these
regulators are disabled, the voltage decays very slowly (passive discharge).

If the rail is re-enabled before this discharge completes, the sensor
experiences a brownout and fails to initialize.

Add support for parsing the 'regulator-off-on-delay-us' property from
the device tree to enforce this physical constraint.

Link: https://lore.kernel.org/all/20260127190211.14312-3-bjsaikiran@gmail.com/
Signed-off-by: Saikiran <bjsaikiran@gmail.com>
@qcomlnxci
qcomlnxci requested review from a team, QUIC-kamalw, jprakash-qc and kotarake and removed request for a team July 17, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants