[PATCH v4 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 v4: - dt-bindings: add an upper bound (maximum) to adi,rload-ohms. - driver: reject an out-of-range adi,rload-ohms in probe so the current and power coefficients cannot overflow s32. - Credit the co-developers with Co-developed-by and drop their Signed-off-by; order the co-developers before the primary author. Changes in v3: - dt-bindings: clarify that adi,rload-ohms is the ILOAD telemetry resistor, not a current-path shunt; note the 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; add an explicit adi,max16545 match entry; use a standard copyright line. Changes in v2: - Represent the severe-OCP deglitch filter in microseconds (adi,ocp-severe-filter-us, values 0/1/2/10). 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 | 85 ++++++ 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 | 287 ++++++++++++++++++ 7 files changed, 480 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