mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v6 0/8] hwmon: (ina3221) Various improvement and add support for SQ52210
@ 2026-02-25  9:03 Wenliang Yan
  2026-02-25  9:03 ` [PATCH v6 1/8] dt-bindings: hwmon: ti,ina3221: Add SQ52210 Wenliang Yan
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Wenliang Yan @ 2026-02-25  9:03 UTC (permalink / raw)
  To: linux, Jean Delvare, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Wenliang Yan, Jonathan Corbet, linux-hwmon, devicetree, linux-kernel

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@163.com/
v4: https://lore.kernel.org/linux-hwmon/20260114081741.111340-1-wenliang202407@163.com/
v3: https://lore.kernel.org/linux-hwmon/20251120081921.39412-1-wenliang202407@163.com/
v2: https://lore.kernel.org/linux-hwmon/20251118125148.95603-1-wenliang202407@163.com/
v1: https://lore.kernel.org/linux-hwmon/20251111080546.32421-1-wenliang202407@163.com/


*** 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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-02-25 16:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-25  9:03 [PATCH v6 0/8] hwmon: (ina3221) Various improvement and add support for SQ52210 Wenliang Yan
2026-02-25  9:03 ` [PATCH v6 1/8] dt-bindings: hwmon: ti,ina3221: Add SQ52210 Wenliang Yan
2026-02-25  9:03 ` [PATCH v6 2/8] hwmon: (ina3221) Add support for SQ52210 Wenliang Yan
2026-02-25  9:03 ` [PATCH v6 3/8] hwmon: (ina3221) Pre-calculate current and power LSB Wenliang Yan
2026-02-25  9:03 ` [PATCH v6 4/8] hwmon: (ina3221) Support alert configuration Wenliang Yan
2026-02-25  9:03 ` [PATCH v6 5/8] hwmon: (ina3221) Introduce power attribute and alert characteristics Wenliang Yan
2026-02-25  9:03 ` [PATCH v6 6/8] hwmon: (ina3221) Modify the 'ina3221_read_value' function Wenliang Yan
2026-02-25 16:10   ` kernel test robot
2026-02-25  9:03 ` [PATCH v6 7/8] hwmon: (ina3221) Support alert_limit_write function and write/read functions for 'power' attribute Wenliang Yan
2026-02-25  9:03 ` [PATCH v6 8/8] hwmon: (ina3221) Modify write/read functions for 'in' and 'curr' attribute Wenliang Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®