Searched hist:"4 d5c2d986757e4d6f56761af8ab689218a2bc432" (Results 1 – 2 of 2) sorted by relevance
/linux/Documentation/hwmon/ |
H A D | ina2xx.rst | diff 4d5c2d986757e4d6f56761af8ab689218a2bc432 Thu Aug 29 00:23:53 CEST 2024 Guenter Roeck <linux@roeck-us.net> hwmon: (ina2xx) Add support for current limits
While the chips supported by this driver do not directly support current limits, they do support setting shunt voltage limits. The shunt voltage divided by the shunt resistor value is the current. On top of that, calibration values are set such that in the shunt voltage register and the current register report the same values. That means we can report and configure current limits based on shunt voltage limits, and we can do so with much better accuracy than by setting shunt voltage limits.
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|
/linux/drivers/hwmon/ |
H A D | ina2xx.c | diff 4d5c2d986757e4d6f56761af8ab689218a2bc432 Thu Aug 29 00:23:53 CEST 2024 Guenter Roeck <linux@roeck-us.net> hwmon: (ina2xx) Add support for current limits
While the chips supported by this driver do not directly support current limits, they do support setting shunt voltage limits. The shunt voltage divided by the shunt resistor value is the current. On top of that, calibration values are set such that in the shunt voltage register and the current register report the same values. That means we can report and configure current limits based on shunt voltage limits, and we can do so with much better accuracy than by setting shunt voltage limits.
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|