0001 .. SPDX-License-Identifier: GPL-2.0-only
0002
0003 Kernel driver ina238
0004 ====================
0005
0006 Supported chips:
0007
0008 * Texas Instruments INA238
0009
0010 Prefix: 'ina238'
0011
0012 Addresses: I2C 0x40 - 0x4f
0013
0014 Datasheet:
0015 https://www.ti.com/lit/gpn/ina238
0016
0017 Author: Nathan Rossi <nathan.rossi@digi.com>
0018
0019 Description
0020 -----------
0021
0022 The INA238 is a current shunt, power and temperature monitor with an I2C
0023 interface. It includes a number of programmable functions including alerts,
0024 conversion rate, sample averaging and selectable shunt voltage accuracy.
0025
0026 The shunt value in micro-ohms can be set via platform data or device tree at
0027 compile-time or via the shunt_resistor attribute in sysfs at run-time. Please
0028 refer to the Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml for bindings
0029 if the device tree is used.
0030
0031 Sysfs entries
0032 -------------
0033
0034 ======================= =======================================================
0035 in0_input Shunt voltage (mV)
0036 in0_min Minimum shunt voltage threshold (mV)
0037 in0_min_alarm Minimum shunt voltage alarm
0038 in0_max Maximum shunt voltage threshold (mV)
0039 in0_max_alarm Maximum shunt voltage alarm
0040
0041 in1_input Bus voltage (mV)
0042 in1_min Minimum bus voltage threshold (mV)
0043 in1_min_alarm Minimum shunt voltage alarm
0044 in1_max Maximum bus voltage threshold (mV)
0045 in1_max_alarm Maximum shunt voltage alarm
0046
0047 power1_input Power measurement (uW)
0048 power1_max Maximum power threshold (uW)
0049 power1_max_alarm Maximum power alarm
0050
0051 curr1_input Current measurement (mA)
0052
0053 temp1_input Die temperature measurement (mC)
0054 temp1_max Maximum die temperature threshold (mC)
0055 temp1_max_alarm Maximum die temperature alarm
0056 ======================= =======================================================