Kernel driver ina209

Supported chips:

Author:

Description

The TI / Burr-Brown INA209 monitors voltage, current, and power on the high sideof a D.C. power supply. It can perform measurements and calculations in thebackground to supply readings at any time. It includes a programmablecalibration multiplier to scale the displayed current and power values.

Sysfs entries

The INA209 chip is highly configurable both via hardwiring and viathe I2C bus. See the datasheet for details.

This tries to expose most monitoring features of the hardware viasysfs. It does not support every feature of this chip.

in0_inputshunt voltage (mV)
in0_input_highestshunt voltage historical maximum reading (mV)
in0_input_lowestshunt voltage historical minimum reading (mV)
in0_reset_historyreset shunt voltage history
in0_maxshunt voltage max alarm limit (mV)
in0_minshunt voltage min alarm limit (mV)
in0_crit_maxshunt voltage crit max alarm limit (mV)
in0_crit_minshunt voltage crit min alarm limit (mV)
in0_max_alarmshunt voltage max alarm limit exceeded
in0_min_alarmshunt voltage min alarm limit exceeded
in0_crit_max_alarmshunt voltage crit max alarm limit exceeded
in0_crit_min_alarmshunt voltage crit min alarm limit exceeded
in1_inputbus voltage (mV)
in1_input_highestbus voltage historical maximum reading (mV)
in1_input_lowestbus voltage historical minimum reading (mV)
in1_reset_historyreset bus voltage history
in1_maxbus voltage max alarm limit (mV)
in1_minbus voltage min alarm limit (mV)
in1_crit_maxbus voltage crit max alarm limit (mV)
in1_crit_minbus voltage crit min alarm limit (mV)
in1_max_alarmbus voltage max alarm limit exceeded
in1_min_alarmbus voltage min alarm limit exceeded
in1_crit_max_alarmbus voltage crit max alarm limit exceeded
in1_crit_min_alarmbus voltage crit min alarm limit exceeded
power1_inputpower measurement (uW)
power1_input_highestpower historical maximum reading (uW)
power1_reset_historyreset power history
power1_maxpower max alarm limit (uW)
power1_critpower crit alarm limit (uW)
power1_max_alarmpower max alarm limit exceeded
power1_crit_alarmpower crit alarm limit exceeded
curr1_inputcurrent measurement (mA)
update_intervaldata conversion time; affects number of samples usedto average results for shunt and bus voltages.

General Remarks

The power and current registers in this chip require that the calibrationregister is programmed correctly before they are used. Normally this is expectedto be done in the BIOS. In the absence of BIOS programming, the shunt resistorvoltage can be provided using platform data. The driver uses platform data fromthe ina2xx driver for this purpose. If calibration register data is not providedvia platform data, the driver checks if the calibration register has beenprogrammed (ie has a value not equal to zero). If so, this value is retained.Otherwise, a default value reflecting a shunt resistor value of 10 mOhm isprogrammed into the calibration register.

Output Pins

Output pin programming is a board feature which depends on the BIOS. It isoutside the scope of a hardware monitoring driver to enable or disable outputpins.