Skip to content
Commit 6e5c06ad authored by Kun Yi's avatar Kun Yi Committed by Guenter Roeck
Browse files

hwmon: (adm1275) Allow setting shunt reg value



The ADM series of hotswap controllers support extending
the current measurement range by using a sensing resistor
value other than the typical 1 mOhm. For example, using a 0.5 mOhm
sensing resistor doubles the maximal current can be measured.

Current driver assumes a shunt resistor value of 1 mOhm in calculation,
meaning for other resistor values, hwmon will report scaled
current/power measurements. This patch parses device tree parameter
"shunt-resistor-micro-ohms", if there is one.

Signed-off-by: default avatarKun Yi <kunyi@google.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent f567035a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment