public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support for Texas Instruments INA4230 power monitor
@ 2026-02-25  9:29 Alexey Charkov
  2026-02-25  9:29 ` [PATCH 1/2] dt-bindings: hwmon: Add DT schema for TI INA4230 Alexey Charkov
  2026-02-25  9:29 ` [PATCH 2/2] hwmon: Add support for TI INA4230 power monitor Alexey Charkov
  0 siblings, 2 replies; 9+ messages in thread
From: Alexey Charkov @ 2026-02-25  9:29 UTC (permalink / raw)
  To: Guenter Roeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-hwmon, devicetree, linux-kernel, Alexey Charkov

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>
---
Alexey Charkov (2):
      dt-bindings: hwmon: Add DT schema for TI INA4230
      hwmon: Add support for TI INA4230 power monitor

 .../devicetree/bindings/hwmon/ti,ina4230.yaml      | 128 +++
 MAINTAINERS                                        |   6 +
 drivers/hwmon/Kconfig                              |  11 +
 drivers/hwmon/Makefile                             |   1 +
 drivers/hwmon/ina4230.c                            | 997 +++++++++++++++++++++
 5 files changed, 1143 insertions(+)
---
base-commit: 3ef088b0c5772a6f75634e54aa34f5fc0a2c041c
change-id: 20260219-ina4230-74a02409153d

Best regards,
-- 
Alexey Charkov <alchark@flipper.net>


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

end of thread, other threads:[~2026-02-27 11:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-25  9:29 [PATCH 0/2] Add support for Texas Instruments INA4230 power monitor Alexey Charkov
2026-02-25  9:29 ` [PATCH 1/2] dt-bindings: hwmon: Add DT schema for TI INA4230 Alexey Charkov
2026-02-27  9:53   ` Krzysztof Kozlowski
2026-02-27 11:19     ` Alexey Charkov
2026-02-25  9:29 ` [PATCH 2/2] hwmon: Add support for TI INA4230 power monitor Alexey Charkov
2026-02-25 20:23   ` kernel test robot
2026-02-26  7:36     ` Alexey Charkov
2026-02-27  9:49   ` Krzysztof Kozlowski
2026-02-27 11:33     ` Alexey Charkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox