75 lines · plain
1Kernel driver ina32212=====================3 4Supported chips:5 6 * Texas Instruments INA32217 8 Prefix: 'ina3221'9 10 Addresses: I2C 0x40 - 0x4311 12 Datasheet: Publicly available at the Texas Instruments website13 14 https://www.ti.com/15 16Author: Andrew F. Davis <afd@ti.com>17 18Description19-----------20 21The Texas Instruments INA3221 monitors voltage, current, and power on the high22side of up to three D.C. power supplies. The INA3221 monitors both shunt drop23and supply voltage, with programmable conversion times and averaging, current24and power are calculated host-side from these.25 26Sysfs entries27-------------28 29======================= =======================================================30in[123]_label Voltage channel labels31in[123]_enable Voltage channel enable controls32in[123]_input Bus voltage(mV) channels33curr[123]_input Current(mA) measurement channels34shunt[123]_resistor Shunt resistance(uOhm) channels35curr[123]_crit Critical alert current(mA) setting, activates the36 corresponding alarm when the respective current37 is above this value38curr[123]_crit_alarm Critical alert current limit exceeded39curr[123]_max Warning alert current(mA) setting, activates the40 corresponding alarm when the respective current41 average is above this value.42curr[123]_max_alarm Warning alert current limit exceeded43in[456]_input Shunt voltage(uV) for channels 1, 2, and 3 respectively44in7_input Sum of shunt voltage(uV) channels45in7_label Channel label for sum of shunt voltage46curr4_input Sum of current(mA) measurement channels,47 (only available when all channels use the same resistor48 value for their shunt resistors)49curr4_crit Critical alert current(mA) setting for sum of current50 measurements, activates the corresponding alarm51 when the respective current is above this value52 (only effective when all channels use the same resistor53 value for their shunt resistors)54curr4_crit_alarm Critical alert current limit exceeded for sum of55 current measurements.56samples Number of samples using in the averaging mode.57 58 Supports the list of number of samples:59 60 1, 4, 16, 64, 128, 256, 512, 102461 62update_interval Data conversion time in millisecond, following:63 64 update_interval = C x S x (BC + SC)65 66 * C: number of enabled channels67 * S: number of samples68 * BC: bus-voltage conversion time in millisecond69 * SC: shunt-voltage conversion time in millisecond70 71 Affects both Bus- and Shunt-voltage conversion time.72 Note that setting update_interval to 0ms sets both BC73 and SC to 140 us (minimum conversion time).74======================= =======================================================75