mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] hwmon: Add TSC1641 I2C power monitor driver
@ 2025-11-04  0:33 Igor Reznichenko
  2025-11-04  0:33 ` [PATCH v3 1/2] dt-bindings: hwmon: ST TSC1641 power monitor Igor Reznichenko
  2025-11-04  0:33 ` [PATCH v3 2/2] hwmon: Add TSC1641 I2C power monitor driver Igor Reznichenko
  0 siblings, 2 replies; 7+ messages in thread
From: Igor Reznichenko @ 2025-11-04  0:33 UTC (permalink / raw)
  To: linux, robh, krzk+dt, conor+dt, corbet
  Cc: david.hunter.linux, devicetree, linux-doc, linux-hwmon,
	linux-kernel, skhan

This patch series adds support for the ST Microelectronics TSC1641
I2C power monitor. The TSC1641 provides bus voltage, current, power,
and temperature measurements via the hwmon subsystem. The driver 
supports optional ALERT pin polarity configuration and exposes the
shunt resistor value and update interval via sysfs.

Tested on Raspberry Pi 3B+ with a TSC1641 evaluation board.

v2: https://lore.kernel.org/linux-hwmon/20251026065057.627276-1-igor@reznichenko.net/

Changes in v3:
- Updated devicetree binding to include optional interrupt property
- Added shunt value clamping
- Changed limit attributes from lcrit/crit to min/max
- Improved limit handling to preserve register content,
  (current limits might not round-trip exactly around extremums due
  to inevitable rounding)
- SATF flag handled properly
- Misc. small fixes

Igor Reznichenko (2):
  dt-bindings: hwmon: ST TSC1641 power monitor
  hwmon: Add TSC1641 I2C power monitor driver

 .../devicetree/bindings/hwmon/st,tsc1641.yaml |  67 ++
 Documentation/hwmon/index.rst                 |   1 +
 Documentation/hwmon/tsc1641.rst               |  87 ++
 drivers/hwmon/Kconfig                         |  12 +
 drivers/hwmon/Makefile                        |   1 +
 drivers/hwmon/tsc1641.c                       | 748 ++++++++++++++++++
 6 files changed, 916 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/st,tsc1641.yaml
 create mode 100644 Documentation/hwmon/tsc1641.rst
 create mode 100644 drivers/hwmon/tsc1641.c

-- 
2.43.0


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

end of thread, other threads:[~2025-11-05  6:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04  0:33 [PATCH v3 0/2] hwmon: Add TSC1641 I2C power monitor driver Igor Reznichenko
2025-11-04  0:33 ` [PATCH v3 1/2] dt-bindings: hwmon: ST TSC1641 power monitor Igor Reznichenko
2025-11-04  9:51   ` Krzysztof Kozlowski
2025-11-04 16:30     ` Igor Reznichenko
2025-11-05  6:56       ` Krzysztof Kozlowski
2025-11-04  0:33 ` [PATCH v3 2/2] hwmon: Add TSC1641 I2C power monitor driver Igor Reznichenko
2025-11-04  2:27   ` Guenter Roeck

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®