[PATCH v3 0/2] hwmon: (pmbus) Add Analog Devices MAX16545/MAX16550 and Volterra VT7505 driver
"Pradhan, Sanman" <[email protected]>
| Newsgroups | org.kernel.vger.linux-hwmon,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Sanman Pradhan <[email protected]> This series adds a PMBus driver for the Analog Devices MAX16545 and MAX16550, and the Volterra VT7505 controllers. The driver reports input and output voltage, input and output current, input power, and temperature over PMBus. All sensors use the direct data format. Peak input voltage, output voltage, output current, input power and temperature readings are exposed and can be reset. The MAX16545 uses the same programming model as the VT7505 and is described with a fallback compatible. The current and power scaling depend on the external current-report resistor on the ILOAD pin, which can be specified with the "adi,rload-ohms" device tree property. On the MAX16550 and VT7505, the severe overcurrent-protection deglitch time can optionally be programmed with the "adi,ocp-severe-filter-us" property; on the MAX16545 that delay is fixed, so the property is rejected for that part. The driver was tested on Juniper PTX hardware. Changes in v3: - dt-bindings: clarify that adi,rload-ohms is the ILOAD telemetry resistor, not a current-path shunt; note that the severe-OCP filter retains the existing hardware setting when omitted, and add it to the example; move additionalProperties after the allOf block. - driver: use per-device match data instead of an enum (no zero-valued match data), derive the temperature coefficients and severe-OCP filter support from it, add an explicit adi,max16545 match entry, and replace the SPDX-FileCopyrightText tag with a plain copyright line. Changes in v2: - dt-bindings: represent the severe-OCP deglitch filter in microseconds (renamed to adi,ocp-severe-filter-us, values 0/1/2/10). - driver: map the microsecond value to the MFR_CONFIG[15:14] field. Georgi Vlaev (1): hwmon: (pmbus/vt7505) Add driver for Analog Devices MAX16545/MAX16550 and Volterra VT7505 Sanman Pradhan (1): dt-bindings: hwmon: pmbus: Add Analog Devices MAX16545/MAX16550 and Volterra VT7505 .../bindings/hwmon/pmbus/adi,vt7505.yaml | 84 ++++++ Documentation/hwmon/index.rst | 1 + Documentation/hwmon/vt7505.rst | 89 ++++++ MAINTAINERS | 8 + drivers/hwmon/pmbus/Kconfig | 9 + drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/vt7505.c | 284 ++++++++++++++++++ 7 files changed, 476 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/adi,vt7505.yaml create mode 100644 Documentation/hwmon/vt7505.rst create mode 100644 drivers/hwmon/pmbus/vt7505.c base-commit: fa8ff8bde9207509f90adacc157b208ee732adad -- 2.34.1