[PATCH v2 0/2] Allow caching of buck registers when no GPIO input control is configured
From: André Svensson
Date: Fri Mar 20 2026 - 03:34:58 EST
This series introduces a boolean DT property, dlg,no-gpio-control, for
the DA91xx regulators. Use this property to indicate that GPIO control
is not configured with the functions DVC/RELOAD/EN, allowing buck
registers to be cached.
The DA9121 driver checks dlg,no-gpio-control and updates regmap_config's
volatile_table if the property is present. Buck registers are removed
from the volatile_table if the property is present, enabling caching of
the registers, which removes I2C reads when performing an I2C write to
the buck registers.
---
Changes in v2:
- Update commit messages to clarify why dlg,no-gpio-control is needed.
- Add error check for mutually exclusive properties.
- Link to v1: https://lore.kernel.org/r/20260309-no-gpio-control-v1-0-06d2365917c6@xxxxxxxx
---
André Svensson (2):
regulator: dt-bindings: dlg,da9121: Add dlg,no-gpio-control
regulator: da9121: Allow caching BUCK registers
.../devicetree/bindings/regulator/dlg,da9121.yaml | 49 ++++++++++++++++++++++
drivers/regulator/da9121-regulator.c | 43 +++++++++++++++----
2 files changed, 85 insertions(+), 7 deletions(-)
---
base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b
change-id: 20260309-no-gpio-control-9cc02b1e8994
Best regards,
--
André Svensson <andre.svensson@xxxxxxxx>