devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] (hwmon):(ina3221) Various improvement and add support for SQ52210
@ 2025-11-11  8:05 Wenliang Yan
  2025-11-11  8:05 ` [PATCH 1/8] dt-binding:ti,ina3221:Add SQ52210 Wenliang Yan
                   ` (7 more replies)
  0 siblings, 8 replies; 20+ messages in thread
From: Wenliang Yan @ 2025-11-11  8:05 UTC (permalink / raw)
  To: linux, Jean Delvare, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: christophe.jaillet, corbet, devicetree, linux-hwmon, linux-kernel,
	wenliang202407

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


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

end of thread, other threads:[~2025-11-14  7:42 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-11  8:05 [PATCH 0/8] (hwmon):(ina3221) Various improvement and add support for SQ52210 Wenliang Yan
2025-11-11  8:05 ` [PATCH 1/8] dt-binding:ti,ina3221:Add SQ52210 Wenliang Yan
2025-11-11  8:17   ` Krzysztof Kozlowski
2025-11-12  2:09     ` Wenliang Yan
2025-11-11  9:32   ` Rob Herring (Arm)
2025-11-12  2:08     ` Wenliang Yan
2025-11-13  2:03   ` Guenter Roeck
2025-11-14  6:44     ` Wenliang Yan
2025-11-11  8:05 ` [PATCH 2/8] hwmon:(ina3221)Add support for SQ52210 Wenliang Yan
2025-11-11  8:05 ` [PATCH 3/8] hwmon:(ina3221)Support alert-type Wenliang Yan
2025-11-11  8:05 ` [PATCH 4/8] hwmon:(ina3221)Pre-calculate current and power LSB Wenliang Yan
2025-11-11  8:05 ` [PATCH 5/8] hwmon:(ina3221)Introduce power attribute and other characteristics of other attribute Wenliang Yan
2025-11-11  8:05 ` [PATCH 6/8] hwmon:(ina3221)Modify read/write functions for 'in' attribute Wenliang Yan
2025-11-12  3:58   ` kernel test robot
2025-11-13 17:16   ` Guenter Roeck
2025-11-14  7:36     ` [PATCH 1/8] dt-binding:ti,ina3221:Add SQ52210 Wenliang Yan
2025-11-11  8:05 ` [PATCH 7/8] hwmon:(ina3221)Support read/write functions for 'power' attribute Wenliang Yan
2025-11-13 17:18   ` Guenter Roeck
2025-11-14  7:41     ` [PATCH 1/8] dt-binding:ti,ina3221:Add SQ52210 Wenliang Yan
2025-11-11  8:05 ` [PATCH 8/8] hwmon:(ina3221)Support read/write functions for current_lcrict 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;
as well as URLs for NNTP newsgroup(s).