From: Luna Hart via B4 Relay <devnull+lhart.opensource.witekio.com@kernel.org>
To: Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>
Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
"Flaviu Nistor" <flaviu.nistor@gmail.com>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Luna Hart" <lhart.opensource@witekio.com>
Subject: [PATCH v2 0/2] hwmon: Add support for TI TPS389006/TPS389008
Date: Tue, 17 Nov 2026 15:45:34 -0800 [thread overview]
Message-ID: <20261117-lhart-dev-tps38900x-v2-0-e5730523d3ee@witekio.com> (raw)
This series adds a devicetree binding and a hwmon driver for the TI
TPS389006 and TPS389008 I2C voltage supervisors and monitors, with 6 and
8 channels.
The driver reports the voltage measured by the ADC of each channel, and
can enable or disable the monitoring of a channel. The devicetree can
select the voltage range (1x or 4x) of each channel. Otherwise, the
power on state for the scale is used (likely OTP values).
This v2 patch set addresses v1 review comments, and handles parts with
an OTP configuration. There is no single register to indicate if a
channel or chip uses custom OTP values. Thus we assume any OTP
programmable register to have a deliberately set value. We have taken
care to preserve the init state of channels based on the value of
their monitor enable register. Triggering a fault by modifying channel
settings with monitoring enabled may have additional consequences
depending on the hardware layout.
Tested on a TI J784S4 based board with a TPS389006, on a 7.3 based
kernel.
Signed-off-by: Luna Hart <lhart.opensource@witekio.com>
---
Changes in v2:
- Drop the TPS389004, no datasheet or part listing could be found for it
- dt-bindings: rename the file to ti,tps389006.yaml and vmon@N to channel@N
- dt-bindings: child nodes no longer select the channels, unconnected
inputs are marked with status = "disabled"
- dt-bindings: replace ti,4x-scaling with ti,vrange-multiplier = <1|4>,
absent keeps the range programmed in the chip
- dt-bindings: document NIRQ and the MON1-MON8 numbering, drop redundant
descriptions
- dt-bindings: no fallback compatible, the parts differ in channel count
- hwmon: fix the VRANGE_MULT address, it is in bank 1 (0x11f)
- hwmon: never change the range of a channel that is monitoring at probe,
and respect the configuration write protection
- hwmon: return -ENODATA while the ACT pin is low
- hwmon: fail probe when no match data is found (GENMASK(-1, 0))
- hwmon: cleanups: use the regmap cache instead of a local copy, drop
<linux/mod_devicetable.h>, "{ }" terminators, /* */ comments,
devm_kzalloc_obj(), channel counts in Kconfig, sorted Kconfig/Makefile
- Link to v1: https://lore.kernel.org/r/20260929-lhart-dev-tps38900x-v1-0-7045c5894152@witekio.com
---
Luna Hart (2):
dt-bindings: hwmon: Add TI TPS389006/TPS389008
hwmon: (tps38900x) Add driver for TI TPS389006/TPS389008
.../devicetree/bindings/hwmon/ti,tps389006.yaml | 114 +++++++
Documentation/hwmon/index.rst | 1 +
Documentation/hwmon/tps38900x.rst | 80 +++++
MAINTAINERS | 8 +
drivers/hwmon/Kconfig | 12 +
drivers/hwmon/Makefile | 1 +
drivers/hwmon/tps38900x.c | 361 +++++++++++++++++++++
7 files changed, 577 insertions(+)
---
base-commit: 28c252b708a9d223192cbf848d320cf6d0f7ed3a
change-id: 20260929-lhart-dev-tps38900x-f932bcdb4057
Best regards,
--
Luna Hart <lhart.opensource@witekio.com>
next reply other threads:[~2026-11-17 23:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 23:45 Luna Hart via B4 Relay [this message]
2026-11-17 23:45 ` [PATCH v2 1/2] dt-bindings: hwmon: Add " Luna Hart via B4 Relay
2026-11-18 18:03 ` Conor Dooley
2026-11-17 23:45 ` [PATCH v2 2/2] hwmon: (tps38900x) Add driver for " Luna Hart via B4 Relay
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=20261117-lhart-dev-tps38900x-v2-0-e5730523d3ee@witekio.com \
--to=devnull+lhart.opensource.witekio.com@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=flaviu.nistor@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=lhart.opensource@witekio.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=rdunlap@infradead.org \
--cc=robh@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=u.kleine-koenig@baylibre.com \
/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®