Commit b64b6cb1 authored by Leo Yang's avatar Leo Yang Committed by Guenter Roeck
Browse files

hwmon: Add driver for TI INA233 Current and Power Monitor



Driver for Texas Instruments INA233 Current and Power Monitor
With I2C-, SMBus-, and PMBus-Compatible Interface

Signed-off-by: default avatarLeo Yang <leo.yang.sy0@gmail.com>
Link: https://lore.kernel.org/r/20250116085939.1235598-3-leo.yang.sy0@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 52ffdbbd
Loading
Loading
Loading
Loading
+75 −0
Original line number Diff line number Diff line
.. SPDX-License-Identifier: GPL-2.0

Kernel driver ina233
====================

Supported chips:

  * TI INA233

    Prefix: 'ina233'

  * Datasheet

    Publicly available at the TI website : https://www.ti.com/lit/ds/symlink/ina233.pdf

Author: Leo Yang <leo.yang.sy0@gmail.com>

Usage Notes
-----------

The shunt resistor value can be configured by a device tree property;
see Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml for details.


Description
-----------

This driver supports hardware monitoring for TI INA233.

The driver is a client driver to the core PMBus driver. Please see
Documentation/hwmon/pmbus.rst for details on PMBus client drivers.

The driver provides the following attributes for input voltage:

**in1_input**

**in1_label**

**in1_max**

**in1_max_alarm**

**in1_min**

**in1_min_alarm**

The driver provides the following attributes for shunt voltage:

**in2_input**

**in2_label**

The driver provides the following attributes for output voltage:

**in3_input**

**in3_label**

**in3_alarm**

The driver provides the following attributes for output current:

**curr1_input**

**curr1_label**

**curr1_max**

**curr1_max_alarm**

The driver provides the following attributes for input power:

**power1_input**

**power1_label**
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ Hardware Monitoring Kernel Drivers
   ibmpowernv
   ina209
   ina2xx
   ina233
   ina238
   ina3221
   inspur-ipsps1
+7 −0
Original line number Diff line number Diff line
@@ -11331,6 +11331,13 @@ L: linux-fbdev@vger.kernel.org
S:	Orphan
F:	drivers/video/fbdev/imsttfb.c
INA233 HARDWARE MONITOR DRIVERS
M:	Leo Yang <leo.yang.sy0@gmail.com>
L:	linux-hwmon@vger.kernel.org
S:	Maintained
F:	Documentation/hwmon/ina233.rst
F:	drivers/hwmon/pmbus/ina233.c
INDEX OF FURTHER KERNEL DOCUMENTATION
M:	Carlos Bilbao <carlos.bilbao@kernel.org>
S:	Maintained
+9 −0
Original line number Diff line number Diff line
@@ -133,6 +133,15 @@ config SENSORS_DPS920AB
	  This driver can also be built as a module. If so, the module will
	  be called dps920ab.

config SENSORS_INA233
	tristate "Texas Instruments INA233 and compatibles"
	help
	  If you say yes here you get hardware monitoring support for Texas
	  Instruments INA233.

	  This driver can also be built as a module. If so, the module will
	  be called ina233.

config SENSORS_INSPUR_IPSPS
	tristate "INSPUR Power System Power Supply"
	help
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ obj-$(CONFIG_SENSORS_DELTA_AHE50DC_FAN) += delta-ahe50dc-fan.o
obj-$(CONFIG_SENSORS_FSP_3Y)	+= fsp-3y.o
obj-$(CONFIG_SENSORS_IBM_CFFPS)	+= ibm-cffps.o
obj-$(CONFIG_SENSORS_DPS920AB)	+= dps920ab.o
obj-$(CONFIG_SENSORS_INA233)	+= ina233.o
obj-$(CONFIG_SENSORS_INSPUR_IPSPS) += inspur-ipsps.o
obj-$(CONFIG_SENSORS_IR35221)	+= ir35221.o
obj-$(CONFIG_SENSORS_IR36021)	+= ir36021.o
Loading