[PATCH v6 0/8] hwmon: (ina3221) Various improvement and add support for SQ52210
From: Wenliang Yan
Date: Wed Feb 25 2026 - 04:04:28 EST
Make modifications according to the guidance provided in the reply.
1.Modify the variable naming in ina3221_config to provide clearer
definitions. has_current_reg and has_power_reg indicate whether
there are built-in current and power registers. has_alerts_add
indicates whether there are additional alert settings(PATCH 3,PATCH4).
2.Modify the newly added parameter descriptions in ina3221.rst and
add the corresponding parameter units(PATCH 5).
3.Adjust the content of PATCH 6, moving the modifications of
the alert_limit_write function to PATCH 7, and clarify the
function's purpose.
4.Modify the format conversion of the LIMIT register in the
read_value function.The read_value function reads the shifted
actual register value. Since the LIMIT register can store different
types of values, use comments to explain the difference between
power values and other values(PATCH 6).
5.Adjust the return value of the power attribute to
the default 'uW'(PATCH 7).
6.Rewrite the read/write functions for in and curr, correct the
unit conversion for current and voltage, and modify the conversion
function for the new alert source (SUL) with current values(PATCH 8).
---
v5: https://lore.kernel.org/linux-hwmon/20260119121446.17469-1-wenliang202407@xxxxxxx/
v4: https://lore.kernel.org/linux-hwmon/20260114081741.111340-1-wenliang202407@xxxxxxx/
v3: https://lore.kernel.org/linux-hwmon/20251120081921.39412-1-wenliang202407@xxxxxxx/
v2: https://lore.kernel.org/linux-hwmon/20251118125148.95603-1-wenliang202407@xxxxxxx/
v1: https://lore.kernel.org/linux-hwmon/20251111080546.32421-1-wenliang202407@xxxxxxx/
*** BLURB HERE ***
Wenliang Yan (8):
dt-bindings: hwmon: ti,ina3221: Add SQ52210
hwmon: (ina3221) Add support for SQ52210
hwmon: (ina3221) Pre-calculate current and power LSB
hwmon: (ina3221) Support alert configuration
hwmon: (ina3221) Introduce power attribute and alert characteristics
hwmon: (ina3221) Modify the 'ina3221_read_value' function
hwmon: (ina3221) Support alert_limit_write function and write/read
functions for 'power' attribute
hwmon: (ina3221) Modify write/read functions for 'in' and 'curr'
attribute
.../devicetree/bindings/hwmon/ti,ina3221.yaml | 15 +-
Documentation/hwmon/ina3221.rst | 24 +
drivers/hwmon/ina3221.c | 550 +++++++++++++++++-
3 files changed, 573 insertions(+), 16 deletions(-)
--
2.17.1