diff options
author | Zev Weiss <zev@bewilderbeest.net> | 2021-09-28 11:22:41 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2021-10-12 16:22:41 +0200 |
commit | 94ee5fcc240fe9ffdd1c3206a48d5bdf425ea478 (patch) | |
tree | 547e55f847342927737e0f6bc6f01ada14760355 /Documentation/hwmon/lm25066.rst | |
parent | hwmon: (pmbus/lm25066) Add OF device ID table (diff) | |
download | linux-94ee5fcc240fe9ffdd1c3206a48d5bdf425ea478.tar.xz linux-94ee5fcc240fe9ffdd1c3206a48d5bdf425ea478.zip |
hwmon: (pmbus/lm25066) Support configurable sense resistor values
The appropriate mantissa values for the lm25066 family's direct-format
current and power readings are a function of the sense resistor
employed between the SENSE and VIN pins of the chip. Instead of
assuming that resistance is always the same 1mOhm as used in the
datasheet, allow it to be configured via a device-tree property
("shunt-resistor-micro-ohms").
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Link: https://lore.kernel.org/r/20210928092242.30036-8-zev@bewilderbeest.net
[groeck: Fixed checkpatch warnings]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon/lm25066.rst')
-rw-r--r-- | Documentation/hwmon/lm25066.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/hwmon/lm25066.rst b/Documentation/hwmon/lm25066.rst index 9f1d7e4d3ca1..a2098eb24090 100644 --- a/Documentation/hwmon/lm25066.rst +++ b/Documentation/hwmon/lm25066.rst @@ -79,6 +79,8 @@ This driver does not auto-detect devices. You will have to instantiate the devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for details. +The shunt (sense) resistor value can be configured by a device tree property; +see Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml for details. Platform data support --------------------- |