Home
last modified time | relevance | path

Searched hist:"94 ee5fcc240fe9ffdd1c3206a48d5bdf425ea478" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/Documentation/hwmon/
H A Dlm25066.rstdiff 94ee5fcc240fe9ffdd1c3206a48d5bdf425ea478 Tue Sep 28 04:22:41 CDT 2021 Zev Weiss <zev@bewilderbeest.net> 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>
/openbmc/linux/drivers/hwmon/pmbus/
H A Dlm25066.cdiff 94ee5fcc240fe9ffdd1c3206a48d5bdf425ea478 Tue Sep 28 04:22:41 CDT 2021 Zev Weiss <zev@bewilderbeest.net> 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>