Add support for SQ52210 to the ina3221 driver. The datasheet depends on
https://us1.silergy.com/cloud/index/uniqid/6912826d13b9c.html or
https://www.silergy.com/cloud/index/uniqid/6912826d13b9c.html
The password is 7IUCLe.
- SQ52210 is forward compatible with INA3221 and add alert register to
implement four additional alert function.
- Add support for SQ52210, add current registers, power registers, and
registers related to alerts.
- Add support for alert-type.
- The LSB for current and power can be pre-calculated for data read/write
operations. The current LSB is determined by the calibration value and
shunt resistor value, with the calibration value fixed within the driver.
The power LSB can be derived from the current LSB.
- SQ52210 adds current, power, and alert-limit sensors, with read/write
functions modified to accommodate these new changes.
- SQ52210 adds power attribute to report power data, and implements
read/write functions for this purpose.
- Modify the read/write functions for current attributes.
SQ52210 can directly use its internal current registers to compare
with alert values for implementing curr_lcrit functionality.
Wenliang Yan (8):
dt-binding:ti,ina3221:Add SQ52210
hwmon:(ina3221)Add support for SQ52210
hwmon:(ina3221)Support alert-type
hwmon:(ina3221)Pre-calculate current and power LSB
hwmon:(ina3221)Introduce power attribute and other characteristics of
other attribute
hwmon:(ina3221)Modify read/write functions for 'in' attribute
hwmon:(ina3221)Support read/write functions for 'power' attribute
hwmon:(ina3221)Support read/write functions for current_lcrict
attribute
.../devicetree/bindings/hwmon/ti,ina3221.yaml | 16 +-
Documentation/hwmon/ina3221.rst | 24 +
drivers/hwmon/ina3221.c | 516 +++++++++++++++++-
3 files changed, 541 insertions(+), 15 deletions(-)
--
2.17.1