ti,ina7xx (on i2c bus)

Vendor: Texas Instruments

Note

An implementation of a driver matching this compatible is available in drivers/sensor/ti/ina7xx/ina7xx.c.

Description

Texas Instruments Bidirectional Current/Power Sensor

Properties

Properties not inherited from the base binding file.

Name

Type

Details

inatype

int

select type of INA7xx device.
1 = INA700
2 = INA745/746
3 = INA780/781

This property is required.

Legal values: 0, 1, 2

convdly

int

Sets the Delay for initial ADC conversion in steps of 2 ms.
The default is the power-on reset value.
0h = 0 ms (default)
1h = 2 ms
FFh = 510 ms

mode

int

MODE for continuous or triggered measurement mode.
The default is the power-on reset value.
0h = Shutdown
1h = Triggered bus voltage, single shot
4h = Triggered temperature, single shot
5h = Triggered temperature and bus voltage, single shot
6h = Triggered temperature and current, single shot
7h = Triggered temperature, current and bus voltage, single shot
8h = Shutdown
9h = Continuous bus voltage only
Ch = Continuous temperature only
Dh = Continuous bus voltage and temperature
Eh = Continuous temperature and current
Fh = Continuous temperature, current, and bus voltage (default)

Default value: 15

Legal values: 0, 1, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15

vbusct

int

Sets the conversion time of the bus voltage measurement.
The default is the power-on reset value.
0h = 50 µs
1h = 84 µs
2h = 150 µs
3h = 280 µs
4h = 540 µs
5h = 1052 µs (default)
6h = 2074 µs
7h = 4120 µs

Default value: 5

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

vsenct

int

Sets the conversion time of the shunt resistor voltage. Works in
conjunction with the temperature conversion time. Total conversion
time for a current measurement is the sum of VSENCT and TCT
selections.
The default is the power-on reset value.
0h = 50 µs
1h = 84 µs
2h = 150 µs
3h = 280 µs
4h = 540 µs
5h = 1052 µs (default)
6h = 2074 µs
7h = 4120 µs

Default value: 5

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

tct

int

Sets the conversion time of the temperature measurement. Works
in conjunction with the shunt voltage conversion time for current
measurements. Total conversion time for a current measurement is
the sum of VSENCT and TCT selections.
The default is the power-on reset value.
0h = 50 µs
1h = 84 µs
2h = 150 µs
3h = 280 µs
4h = 540 µs (default)
5h = 1052 µs
6h = 2074 µs
7h = 4120 µs

Default value: 5

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

avg

int

Selects ADC sample averaging count. The averaging setting applies
to all active inputs.
When >0h, the output registers are updated after the averaging has
completed.
The default is the power-on reset value.
0h = 1 (default)
1h = 4
2h = 16
3h = 64
4h = 128
5h = 256
6h = 512
7h = 1024

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

friendly-name

string

Human readable string describing the sensor. It can be used to
distinguish multiple instances of the same model (e.g., lid accelerometer
vs. base accelerometer in a laptop) to a host operating system.

This property is defined in the Generic Sensor Property Usages of the HID
Usage Tables specification
(https://usb.org/sites/default/files/hut1_3_0.pdf, section 22.5).

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.