From: Rob Herring <robh@kernel.org>
To: Guenter Roeck <linux@roeck-us.net>, Alexey Charkov <alchark@flipper.net>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Subject: Re: [PATCH v5 0/2] Add support for Texas Instruments INA4230 power monitor
Date: Tue, 31 Mar 2026 10:52:46 -0500 [thread overview]
Message-ID: <20260331155246.GA1299761-robh@kernel.org> (raw)
In-Reply-To: <67a5d1c1-a9c5-47fb-a0ec-5b69a991b01e@roeck-us.net>
On Mon, Mar 30, 2026 at 09:07:32AM -0700, Guenter Roeck wrote:
> On 3/30/26 08:14, Alexey Charkov wrote:
> > TI INA4230 is a 4-channel power monitor with I2C interface, similar in
> > operation to INA3221 (3-channel) and INA219 (single-channel) but with
> > a different register layout, different alerting mechanism and slightly
> > different support for directly reading calculated current/power/energy
> > values (pre-multiplied by the device itself and needing only to be scaled
> > by the driver depending on its selected LSB unit values).
> >
> > In this initial implementation, the driver supports reading voltage,
> > current, power and energy values, but does not yet support alerts, which
> > can be added separately if needed. Also the overflows during hardware
> > calculations are not yet handled, nor is the support for the device's
> > internal 32-bit energy counter reset.
> >
> > An example device tree using this binding and driver is available at [1]
> > (not currently upstreamed, as the device in question is in engineering
> > phase and not yet publicly available)
> >
> > [1] https://github.com/flipperdevices/flipper-linux-kernel/blob/flipper-devel/arch/arm64/boot/dts/rockchip/rk3576-flipper-one-rev-f0b0c1.dts
> >
> > Signed-off-by: Alexey Charkov <alchark@flipper.net>
> > ---
> > Changes in v5:
> > - Reworded per-channel subnodes description in the binding for clarity (Sashiko)
> > - NB: Sashiko's suggestion to allow interrupts in the binding sounds premature,
> > as the alerts mechanism is not implemented yet and there are no known users
> > to test it. If anyone has hardware with the alert pins wired to an interrupt
> > line - please shout and we can test/extend it together
>
> The bindings are supposed to be complete, even if not implemented, so I am not sure
> if the DT maintainers will agree here. We'll see.
Given ti,alert-polarity-active-high is added seems like the interrupt
should be too. And the interrupt can specify the polarity, so is that
property really needed? There's alway the possibility that you have some
inverter on the board too and the interrupt polarity is not enough, but
solve that problem when it actually exists.
Rob
next prev parent reply other threads:[~2026-03-31 15:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-30 15:14 [PATCH v5 0/2] Add support for Texas Instruments INA4230 power monitor Alexey Charkov
2026-03-30 15:14 ` [PATCH v5 1/2] dt-bindings: hwmon: Add TI INA4230 4-channel I2C " Alexey Charkov
2026-03-30 15:14 ` [PATCH v5 2/2] hwmon: Add support for TI INA4230 " Alexey Charkov
2026-03-30 18:39 ` Guenter Roeck
2026-03-30 16:07 ` [PATCH v5 0/2] Add support for Texas Instruments " Guenter Roeck
2026-03-31 15:52 ` Rob Herring [this message]
2026-03-31 16:10 ` Guenter Roeck
2026-03-31 16:46 ` Alexey Charkov
2026-04-01 14:03 ` Rob Herring
2026-04-01 14:50 ` 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=20260331155246.GA1299761-robh@kernel.org \
--to=robh@kernel.org \
--cc=alchark@flipper.net \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/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