[PATCH v4 0/2] Add support for MAX20830 PMBUS

Alexis Czezar Torreno posted 2 patches 1 month, 1 week ago
.../bindings/hwmon/pmbus/adi,max20830.yaml         |  66 +++++++++++++
Documentation/hwmon/index.rst                      |   1 +
Documentation/hwmon/max20830.rst                   |  49 +++++++++
MAINTAINERS                                        |   9 ++
drivers/hwmon/pmbus/Kconfig                        |   9 ++
drivers/hwmon/pmbus/Makefile                       |   1 +
drivers/hwmon/pmbus/max20830.c                     | 110 +++++++++++++++++++++
7 files changed, 245 insertions(+)
[PATCH v4 0/2] Add support for MAX20830 PMBUS
Posted by Alexis Czezar Torreno 1 month, 1 week ago
This series adds support for the Analog Devices MAX20830 step-down
switching regulator with PMBus interface.

The MAX20830 provides 2.7V to 16V input, 0.4V to 5.8V output, and up
to 30A output current. It supports monitoring of input/output voltage,
output current, and temperature via PMBus.

Datasheet: https://www.analog.com/en/products/max20830.html

Signed-off-by: Alexis Czezar Torreno <alexisczezar.torreno@analog.com>
---
Changes in v4:
- driver:
  - added i2c functionality check for i2c_smbus_read_block_data() then
    in case of no device support, falls back to i2c_smbus_read_i2c_block_data()
  - minor code edit to support the difference of the 2 functions
- Link to v3: https://lore.kernel.org/r/20260417-dev_max20830-v3-0-0cb8d56067aa@analog.com

Changes in v3:
- bindings:
  - Added pwr-good-gpios property
- driver:
  - Zero initialized IC_DEVICE_ID buffer
  - added ret < len for validation of actual read bytes
  - added comments clarifying block length format and null terminator placement
- Link to v2: https://lore.kernel.org/r/20260416-dev_max20830-v2-0-2c7d676dc0bd@analog.com

Changes in v2:
- bindings:
  - did not add interrupt, smbalert pin does not exist in device.
  - added allof with ref to regulator.yaml
  - changed additionalprop to unevaluatedprop
  - device node name in example changed to regulator
- driver: 
  - max20830.rst: Added missing in2_alarm
  - max20830.c: 
    - added missing quotes in MODULE_IMPORT_NS
    - added comment on why i2c_smbus_read_i2c_block_data is used
    - first byte of buffer used as length instead of the return value
    - "unsupported device" log now does not print first byte of buffer
- Link to v1: https://lore.kernel.org/r/20260414-dev_max20830-v1-0-210d3f82c571@analog.com

---
Alexis Czezar Torreno (2):
      dt-bindings: hwmon: pmbus: add max20830
      hwmon: (pmbus/max20830) add driver for max20830

 .../bindings/hwmon/pmbus/adi,max20830.yaml         |  66 +++++++++++++
 Documentation/hwmon/index.rst                      |   1 +
 Documentation/hwmon/max20830.rst                   |  49 +++++++++
 MAINTAINERS                                        |   9 ++
 drivers/hwmon/pmbus/Kconfig                        |   9 ++
 drivers/hwmon/pmbus/Makefile                       |   1 +
 drivers/hwmon/pmbus/max20830.c                     | 110 +++++++++++++++++++++
 7 files changed, 245 insertions(+)
---
base-commit: fb447217c59a13b2fff22d94de2498c185cd9032
change-id: 20260414-dev_max20830-9460b92cf6aa

Best regards,
-- 
Alexis Czezar Torreno <alexisczezar.torreno@analog.com>