Andrew F. Davis | 7cb6dcf | 2016-06-10 10:32:33 -0500 | [diff] [blame] | 1 | Kernel driver ina3221 |
| 2 | ===================== |
| 3 | |
| 4 | Supported chips: |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame^] | 5 | |
Andrew F. Davis | 7cb6dcf | 2016-06-10 10:32:33 -0500 | [diff] [blame] | 6 | * Texas Instruments INA3221 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame^] | 7 | |
Andrew F. Davis | 7cb6dcf | 2016-06-10 10:32:33 -0500 | [diff] [blame] | 8 | Prefix: 'ina3221' |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame^] | 9 | |
Andrew F. Davis | 7cb6dcf | 2016-06-10 10:32:33 -0500 | [diff] [blame] | 10 | Addresses: I2C 0x40 - 0x43 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame^] | 11 | |
Andrew F. Davis | 7cb6dcf | 2016-06-10 10:32:33 -0500 | [diff] [blame] | 12 | Datasheet: Publicly available at the Texas Instruments website |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame^] | 13 | |
| 14 | http://www.ti.com/ |
Andrew F. Davis | 7cb6dcf | 2016-06-10 10:32:33 -0500 | [diff] [blame] | 15 | |
| 16 | Author: Andrew F. Davis <afd@ti.com> |
| 17 | |
| 18 | Description |
| 19 | ----------- |
| 20 | |
| 21 | The Texas Instruments INA3221 monitors voltage, current, and power on the high |
| 22 | side of up to three D.C. power supplies. The INA3221 monitors both shunt drop |
| 23 | and supply voltage, with programmable conversion times and averaging, current |
| 24 | and power are calculated host-side from these. |
| 25 | |
| 26 | Sysfs entries |
| 27 | ------------- |
| 28 | |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame^] | 29 | ======================= ======================================================= |
Nicolin Chen | a9e9dd9 | 2018-10-01 18:05:23 -0700 | [diff] [blame] | 30 | in[123]_label Voltage channel labels |
| 31 | in[123]_enable Voltage channel enable controls |
Andrew F. Davis | 7cb6dcf | 2016-06-10 10:32:33 -0500 | [diff] [blame] | 32 | in[123]_input Bus voltage(mV) channels |
| 33 | curr[123]_input Current(mA) measurement channels |
| 34 | shunt[123]_resistor Shunt resistance(uOhm) channels |
| 35 | curr[123]_crit Critical alert current(mA) setting, activates the |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame^] | 36 | corresponding alarm when the respective current |
| 37 | is above this value |
Andrew F. Davis | 7cb6dcf | 2016-06-10 10:32:33 -0500 | [diff] [blame] | 38 | curr[123]_crit_alarm Critical alert current limit exceeded |
| 39 | curr[123]_max Warning alert current(mA) setting, activates the |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame^] | 40 | corresponding alarm when the respective current |
| 41 | average is above this value. |
Andrew F. Davis | 7cb6dcf | 2016-06-10 10:32:33 -0500 | [diff] [blame] | 42 | curr[123]_max_alarm Warning alert current limit exceeded |
| 43 | in[456]_input Shunt voltage(uV) for channels 1, 2, and 3 respectively |
Nicolin Chen | 5c090ab | 2019-04-16 12:41:31 -0700 | [diff] [blame] | 44 | samples Number of samples using in the averaging mode. |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame^] | 45 | |
| 46 | Supports the list of number of samples: |
| 47 | |
Nicolin Chen | 5c090ab | 2019-04-16 12:41:31 -0700 | [diff] [blame] | 48 | 1, 4, 16, 64, 128, 256, 512, 1024 |
Mauro Carvalho Chehab | b04f2f7 | 2019-04-17 06:46:28 -0300 | [diff] [blame^] | 49 | ======================= ======================================================= |