Skip to content

hwmon: (pmbus/lm25066) Configurable sense resistor, other cleanups

Zev Weiss linux-devicetree linux-doc linux-hwmon lkml 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8hwmon: (pmbus/lm25066) Add offset coefficientsdrivers/hwmon/pmbus/lm25066.c+23 -01 reply
2/8hwmon: (pmbus/lm25066) Adjust lm25066 PSC_CURRENT_IN_L mantissadrivers/hwmon/pmbus/lm25066.c+1 -11 reply
3/8hwmon: (pmbus/lm25066) Avoid forward declaration of lm25066_iddrivers/hwmon/pmbus/lm25066.c+10 -131 reply
4/8hwmon: (pmbus/lm25066) Let compiler determine outer dimension of lm25066_coeffdrivers/hwmon/pmbus/lm25066.c+1 -11 reply
5/8hwmon: (pmbus/lm25066) Mark lm25066_coeff array constdrivers/hwmon/pmbus/lm25066.c+2 -21 reply
6/8hwmon: (pmbus/lm25066) Add OF device ID tabledrivers/hwmon/pmbus/lm25066.c+24 -22 replies
7/8hwmon: (pmbus/lm25066) Support configurable sense resistor valuesDocumentation/hwmon/lm25066.rst drivers/hwmon/pmbus/lm25066.c+14 -01 reply
8/8dt-bindings: hwmon/pmbus: Add ti,lm25066 power-management ICDocumentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml+54 -02 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8R-b

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

Read the v1 thread

Cover letter [PATCH 0/8] hwmon: (pmbus/lm25066) Configurable sense resistor, other cleanups

Hello,

I'm working with a board that uses LM25066s with sense resistor values significantly different than the 1mOhm assumed by the coefficients provided in the datasheet; the power and current readings produced by the existing driver are thus fairly inaccurate.

This patch series started out as merely adding support for a shunt-resistor-micro-ohms DT property as found in the adm1275 driver, but along the way I noticed a number of other minor bits in the lm25066 driver that looked like they could use some fixes, so I've included those as well.

Patches 1 and 2 bring the m/b/R coefficients in line with what's in the relevant datasheets, patches 3 through 5 are fairly generic (minor) code cleanups, and patches 6 through 8 add the desired OF support for the driver.

Thanks,
Zev

Zev Weiss (8):
hwmon: (pmbus/lm25066) Add offset coefficients
hwmon: (pmbus/lm25066) Adjust lm25066 PSC_CURRENT_IN_L mantissa
hwmon: (pmbus/lm25066) Avoid forward declaration of lm25066_id
hwmon: (pmbus/lm25066) Let compiler determine outer dimension of

    lm25066_coeff

hwmon: (pmbus/lm25066) Mark lm25066_coeff array const
hwmon: (pmbus/lm25066) Add OF device ID table
hwmon: (pmbus/lm25066) Support configurable sense resistor values
dt-bindings: hwmon/pmbus: Add ti,lm25066 power-management IC

 .../bindings/hwmon/pmbus/ti,lm25066.yaml      | 54 +++++++++++
 Documentation/hwmon/lm25066.rst               |  2 +
 drivers/hwmon/pmbus/lm25066.c                 | 90 +++++++++++++++----
 3 files changed, 128 insertions(+), 18 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml
Signature · 1 line
2.33.0