From: Igor Reznichenko <igor@reznichenko.net>
To: linux@roeck-us.net, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, corbet@lwn.net
Cc: david.hunter.linux@gmail.com, devicetree@vger.kernel.org,
linux-doc@vger.kernel.org, linux-hwmon@vger.kernel.org,
linux-kernel@vger.kernel.org, skhan@linuxfoundation.org
Subject: [PATCH v3 0/2] hwmon: Add TSC1641 I2C power monitor driver
Date: Mon, 3 Nov 2025 16:33:18 -0800 [thread overview]
Message-ID: <20251104003320.1120514-1-igor@reznichenko.net> (raw)
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
next reply other threads:[~2025-11-04 0:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-04 0:33 Igor Reznichenko [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251104003320.1120514-1-igor@reznichenko.net \
--to=igor@reznichenko.net \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=david.hunter.linux@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh@kernel.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®