Skip to content

Add support for MAX20830C and MAX20840C step-down DC-DC switching regulator

Alexis Czezar Torreno linux-devicetree linux-doc linux-hwmon lkml sashiko-reviews 5 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected] change-id 20260630-dev-max20830c-9d38d8b0a765

Versions newest first

  1. v5 Latest4 patches 6 repliesApplied
  2. v44 patches 11 repliesSuperseded
  3. v34 patches 9 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v25 patches13 repliesSuperseded
v16 patches21 repliesSuperseded

Changes in v5 from the cover letter

- Patch 2/4: added comment about not supporting limit registers
- Patch 4/4:
- removed max20830c/40c entries in i2c_device_id
- created an array to help scale adding of new variants
- edited Kconfig to note new compatibles
- Link to v4: https://lore.kernel.org/r/[email protected]

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/4dt-bindings: hwmon: (pmbus/max20830): add VOUT feedback resistor properties and complete examplesDocumentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml+22 -01 reply
2/4hwmon: (pmbus/max20830): add VOUT feedback resistor scaling supportdrivers/hwmon/pmbus/max20830.c+64 -12 replies
3/4dt-bindings: hwmon: (pmbus/max20830): add max20830c and max20840c supportDocumentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml+7 -11 reply
4/4hwmon: (pmbus/max20830): add support for max20830c and max20840cDocumentation/hwmon/max20830.rst drivers/hwmon/pmbus/Kconfig drivers/hwmon/pmbus/max20830.c+47 -202 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/4R-b
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/4] Add support for MAX20830C and MAX20840C step-down DC-DC switching regulator

This series adds a few features before adding support to MAX20830C and MAX20840C.

Patches 1 and 2 adds new resistor feedback properties that is needed to properly scale VOUT

Patches 3 and 4 adds support for devices MAX20830C and MAX20840C.

MAX20830C and MAX20840 are step-down DC-DC switching regulator with PMBus interface. MAX20830C is a different packaging for MAX20830, and MAX20840C supports 40A regulation compared to MAX20830 that is only 30A.

---
Changes in v5:
- Patch 2/4: added comment about not supporting limit registers
- Patch 4/4:
- removed max20830c/40c entries in i2c_device_id
- created an array to help scale adding of new variants
- edited Kconfig to note new compatibles
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Patch 1/4:
- Added missing #include for gpio
- Removed review tag, patch edited to complete examples
- Patch 2/4:
- casted feedback resistors to u64 to avoid possible overflow
during scaling
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Dropped patch that add EN-GPIO property in DTS
- discussed to be skippable until an actual use-case arise
- Patch 1/4:
- Carried over the completed examples from previously dropped patch
- Kept the review tag as the carried info from the dropped patched
was also reviewed.
- Patch 2/4:
- added clamping to read_vout during scaling
- improved comments regarding future regulator support
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Patch 1/5: completing example
- Dropped patch adding GPIO enable in driver (no use case)
- Patch 3/5: added notes on READ_VOUT and related VOUT commands
- Patch 4/5: removed comment on fallback
- Patch 5/5: simplified device ID check handling
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Alexis Czezar Torreno (4):
dt-bindings: hwmon: (pmbus/max20830): add VOUT feedback resistor properties and complete examples
hwmon: (pmbus/max20830): add VOUT feedback resistor scaling support
dt-bindings: hwmon: (pmbus/max20830): add max20830c and max20840c support
hwmon: (pmbus/max20830): add support for max20830c and max20840c

 .../bindings/hwmon/pmbus/adi,max20830.yaml         |  30 +++++-
 Documentation/hwmon/max20830.rst                   |  27 +++++-
 drivers/hwmon/pmbus/Kconfig                        |   4 +-
 drivers/hwmon/pmbus/max20830.c                     | 101 ++++++++++++++++++---
 4 files changed, 140 insertions(+), 22 deletions(-)

---
base-commit: 1a42625604046790ea8ec61c2a749bbf76b28943
change-id: 20260630-dev-max20830c-9d38d8b0a765

Best regards,

Signature · 1 line
Alexis Czezar Torreno <[email protected]>