[PATCH v3 0/4] Configure SYR82X regulator modes via device tree

Victor Krawiec posted 4 patches 1 day, 11 hours ago
.../bindings/regulator/fcs,fan53555.yaml      |  8 +++++
.../boot/dts/rockchip/rk3399-hugsun-x99.dts   |  3 +-
.../boot/dts/rockchip/rk3399-rock-4c-plus.dts |  3 +-
drivers/regulator/fan53555.c                  | 29 ++++++++++++++++++-
.../regulator/fcs,fan53555-regulator.h        | 20 +++++++++++++
5 files changed, 60 insertions(+), 3 deletions(-)
create mode 100644 include/dt-bindings/regulator/fcs,fan53555-regulator.h
[PATCH v3 0/4] Configure SYR82X regulator modes via device tree
Posted by Victor Krawiec 1 day, 11 hours ago
SYR82X is a regulator that supports two modes of operation:
- Auto-PFM: Allow automatic PFM during light load (default mode)
- Forced PWM

Some boards require to configure forced PWM mode from device tree to keep
the supply ripple within acceptable limits under light load conditions.

SYR82X is a clone of FAN53555 regulator and its configuration is handled by
the fcs,fan53555 driver. All clones of FAN53555 regulator share the same
two mode of operation (Auto-PFM / Forced PWM).

However the implementation in the driver is currently restricted to SYR82X
as it is the only tested hardware. 
---
V1 -> V2:
  - Add missing dt binding property description
  - Naming changes since all clones handled by the fan53555 driver share
    the same two modes
      - dt binding header name changed from silergy,syr82x.h to 
        fcs,fan53555-regulator.h - dt binding header constants changed from
        SYR82X_* to FAN53555_* 
      - fan53555_silergy_map_mode() changed to fan53555_map_mode()
  - More detailed commit descriptions

V2 -> V3:
  - Remove garbage in commit description of first commit and duplicated
    SoB line
 
Victor Krawiec (4):
  regulator: dt-bindings: Add fan53555 allowed modes
  arm64: dts: rk3399-rock-4c-plus: Use device tree bindings constants
    for SYR828 regulator initial mode
  arm64: dts: rockchip: rk3399-hugsun-x99: Update SYR828 regulator
    initial mode to use device tree bindings constants
  regulator: fan53555: Add support for mode operations on Silergy
    devices

 .../bindings/regulator/fcs,fan53555.yaml      |  8 +++++
 .../boot/dts/rockchip/rk3399-hugsun-x99.dts   |  3 +-
 .../boot/dts/rockchip/rk3399-rock-4c-plus.dts |  3 +-
 drivers/regulator/fan53555.c                  | 29 ++++++++++++++++++-
 .../regulator/fcs,fan53555-regulator.h        | 20 +++++++++++++
 5 files changed, 60 insertions(+), 3 deletions(-)
 create mode 100644 include/dt-bindings/regulator/fcs,fan53555-regulator.h


base-commit: 62b9452f5fc4d007f1ea31cfdbb53a96d91e3c66
-- 
2.43.0