2012-05-12 08:36:38 +00:00
|
|
|
Kernel driver ina2xx
|
|
|
|
====================
|
|
|
|
|
|
|
|
Supported chips:
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 08:36:38 +00:00
|
|
|
* Texas Instruments INA219
|
2019-04-17 09:46:27 +00:00
|
|
|
|
|
|
|
|
2012-05-12 08:36:38 +00:00
|
|
|
Prefix: 'ina219'
|
|
|
|
Addresses: I2C 0x40 - 0x4f
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 08:36:38 +00:00
|
|
|
Datasheet: Publicly available at the Texas Instruments website
|
2019-04-17 09:46:27 +00:00
|
|
|
|
|
|
|
http://www.ti.com/
|
2012-05-12 08:36:38 +00:00
|
|
|
|
2012-05-12 18:33:11 +00:00
|
|
|
* Texas Instruments INA220
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 18:33:11 +00:00
|
|
|
Prefix: 'ina220'
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 18:33:11 +00:00
|
|
|
Addresses: I2C 0x40 - 0x4f
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 18:33:11 +00:00
|
|
|
Datasheet: Publicly available at the Texas Instruments website
|
2019-04-17 09:46:27 +00:00
|
|
|
|
|
|
|
http://www.ti.com/
|
2012-05-12 18:33:11 +00:00
|
|
|
|
2012-05-12 08:36:38 +00:00
|
|
|
* Texas Instruments INA226
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 08:36:38 +00:00
|
|
|
Prefix: 'ina226'
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 08:36:38 +00:00
|
|
|
Addresses: I2C 0x40 - 0x4f
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 08:36:38 +00:00
|
|
|
Datasheet: Publicly available at the Texas Instruments website
|
2019-04-17 09:46:27 +00:00
|
|
|
|
|
|
|
http://www.ti.com/
|
2012-05-12 08:36:38 +00:00
|
|
|
|
2012-05-12 18:33:11 +00:00
|
|
|
* Texas Instruments INA230
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 18:33:11 +00:00
|
|
|
Prefix: 'ina230'
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 18:33:11 +00:00
|
|
|
Addresses: I2C 0x40 - 0x4f
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2012-05-12 18:33:11 +00:00
|
|
|
Datasheet: Publicly available at the Texas Instruments website
|
2019-04-17 09:46:27 +00:00
|
|
|
|
|
|
|
http://www.ti.com/
|
2012-05-12 18:33:11 +00:00
|
|
|
|
2015-01-15 01:34:58 +00:00
|
|
|
* Texas Instruments INA231
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2015-01-15 01:34:58 +00:00
|
|
|
Prefix: 'ina231'
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2015-01-15 01:34:58 +00:00
|
|
|
Addresses: I2C 0x40 - 0x4f
|
2019-04-17 09:46:27 +00:00
|
|
|
|
2015-01-15 01:34:58 +00:00
|
|
|
Datasheet: Publicly available at the Texas Instruments website
|
2019-04-17 09:46:27 +00:00
|
|
|
|
|
|
|
http://www.ti.com/
|
2015-01-15 01:34:58 +00:00
|
|
|
|
2018-08-14 07:09:37 +00:00
|
|
|
Author: Lothar Felten <lothar.felten@gmail.com>
|
2012-05-12 08:36:38 +00:00
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The INA219 is a high-side current shunt and power monitor with an I2C
|
|
|
|
interface. The INA219 monitors both shunt drop and supply voltage, with
|
|
|
|
programmable conversion times and filtering.
|
|
|
|
|
2012-05-12 18:33:11 +00:00
|
|
|
The INA220 is a high or low side current shunt and power monitor with an I2C
|
|
|
|
interface. The INA220 monitors both shunt drop and supply voltage.
|
|
|
|
|
2012-05-12 08:36:38 +00:00
|
|
|
The INA226 is a current shunt and power monitor with an I2C interface.
|
|
|
|
The INA226 monitors both a shunt voltage drop and bus supply voltage.
|
|
|
|
|
2015-01-15 01:34:58 +00:00
|
|
|
INA230 and INA231 are high or low side current shunt and power monitors
|
|
|
|
with an I2C interface. The chips monitor both a shunt voltage drop and
|
|
|
|
bus supply voltage.
|
2012-05-12 18:33:11 +00:00
|
|
|
|
2015-01-05 14:20:55 +00:00
|
|
|
The shunt value in micro-ohms can be set via platform data or device tree at
|
|
|
|
compile-time or via the shunt_resistor attribute in sysfs at run-time. Please
|
2018-05-08 18:14:57 +00:00
|
|
|
refer to the Documentation/devicetree/bindings/hwmon/ina2xx.txt for bindings
|
2013-06-19 06:50:20 +00:00
|
|
|
if the device tree is used.
|
2015-01-09 16:03:42 +00:00
|
|
|
|
|
|
|
Additionally ina226 supports update_interval attribute as described in
|
2019-04-17 09:46:29 +00:00
|
|
|
Documentation/hwmon/sysfs-interface.rst. Internally the interval is the sum of
|
2015-01-09 16:03:42 +00:00
|
|
|
bus and shunt voltage conversion times multiplied by the averaging rate. We
|
|
|
|
don't touch the conversion times and only modify the number of averages. The
|
|
|
|
lower limit of the update_interval is 2 ms, the upper limit is 2253 ms.
|
|
|
|
The actual programmed interval may vary from the desired value.
|
2018-11-19 20:31:16 +00:00
|
|
|
|
|
|
|
General sysfs entries
|
2019-04-17 09:46:27 +00:00
|
|
|
---------------------
|
2018-11-19 20:31:16 +00:00
|
|
|
|
2019-04-17 09:46:27 +00:00
|
|
|
======================= ===============================
|
2018-11-19 20:31:16 +00:00
|
|
|
in0_input Shunt voltage(mV) channel
|
|
|
|
in1_input Bus voltage(mV) channel
|
|
|
|
curr1_input Current(mA) measurement channel
|
|
|
|
power1_input Power(uW) measurement channel
|
|
|
|
shunt_resistor Shunt resistance(uOhm) channel
|
2019-04-17 09:46:27 +00:00
|
|
|
======================= ===============================
|
2018-11-19 20:31:16 +00:00
|
|
|
|
|
|
|
Sysfs entries for ina226, ina230 and ina231 only
|
2019-04-17 09:46:27 +00:00
|
|
|
------------------------------------------------
|
2018-11-19 20:31:16 +00:00
|
|
|
|
2019-04-17 09:46:27 +00:00
|
|
|
======================= ====================================================
|
2018-11-19 20:31:16 +00:00
|
|
|
update_interval data conversion time; affects number of samples used
|
|
|
|
to average results for shunt and bus voltages.
|
2019-04-17 09:46:27 +00:00
|
|
|
======================= ====================================================
|