blob: cfd31d94c8727251179a0c2afcc4f9b2a4580156 [file] [log] [blame]
Felten, Lotharf7c2fe32012-05-12 04:36:38 -04001Kernel driver ina2xx
2====================
3
4Supported chips:
5 * Texas Instruments INA219
6 Prefix: 'ina219'
7 Addresses: I2C 0x40 - 0x4f
8 Datasheet: Publicly available at the Texas Instruments website
9 http://www.ti.com/
10
Guenter Roeckdc92cd02012-05-12 11:33:11 -070011 * Texas Instruments INA220
12 Prefix: 'ina220'
13 Addresses: I2C 0x40 - 0x4f
14 Datasheet: Publicly available at the Texas Instruments website
15 http://www.ti.com/
16
Felten, Lotharf7c2fe32012-05-12 04:36:38 -040017 * Texas Instruments INA226
18 Prefix: 'ina226'
19 Addresses: I2C 0x40 - 0x4f
20 Datasheet: Publicly available at the Texas Instruments website
21 http://www.ti.com/
22
Guenter Roeckdc92cd02012-05-12 11:33:11 -070023 * Texas Instruments INA230
24 Prefix: 'ina230'
25 Addresses: I2C 0x40 - 0x4f
26 Datasheet: Publicly available at the Texas Instruments website
27 http://www.ti.com/
28
Kevin Hilmanadd513b2015-01-14 17:34:58 -080029 * Texas Instruments INA231
30 Prefix: 'ina231'
31 Addresses: I2C 0x40 - 0x4f
32 Datasheet: Publicly available at the Texas Instruments website
33 http://www.ti.com/
34
Felten, Lotharf7c2fe32012-05-12 04:36:38 -040035Author: Lothar Felten <l-felten@ti.com>
36
37Description
38-----------
39
40The INA219 is a high-side current shunt and power monitor with an I2C
41interface. The INA219 monitors both shunt drop and supply voltage, with
42programmable conversion times and filtering.
43
Guenter Roeckdc92cd02012-05-12 11:33:11 -070044The INA220 is a high or low side current shunt and power monitor with an I2C
45interface. The INA220 monitors both shunt drop and supply voltage.
46
Felten, Lotharf7c2fe32012-05-12 04:36:38 -040047The INA226 is a current shunt and power monitor with an I2C interface.
48The INA226 monitors both a shunt voltage drop and bus supply voltage.
49
Kevin Hilmanadd513b2015-01-14 17:34:58 -080050INA230 and INA231 are high or low side current shunt and power monitors
51with an I2C interface. The chips monitor both a shunt voltage drop and
52bus supply voltage.
Guenter Roeckdc92cd02012-05-12 11:33:11 -070053
Bartosz Golaszewski8a5fc792015-01-05 15:20:55 +010054The shunt value in micro-ohms can be set via platform data or device tree at
55compile-time or via the shunt_resistor attribute in sysfs at run-time. Please
56refer to the Documentation/devicetree/bindings/i2c/ina2xx.txt for bindings
Tang Yuantian31e7ad72013-06-19 14:50:20 +080057if the device tree is used.
Bartosz Golaszewski72a87a42015-01-09 17:03:42 +010058
59Additionally ina226 supports update_interval attribute as described in
60Documentation/hwmon/sysfs-interface. Internally the interval is the sum of
61bus and shunt voltage conversion times multiplied by the averaging rate. We
62don't touch the conversion times and only modify the number of averages. The
63lower limit of the update_interval is 2 ms, the upper limit is 2253 ms.
64The actual programmed interval may vary from the desired value.