1#
2# Copyright 2021 The Chromium OS Authors
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7
8description: |
9    TI INA230 and INA231 Bidirectional Current and Power Monitor.
10    The <include/dt-bindings/sensor/ina23x.h> file should be included
11    in the DeviceTree and it provides Macros that can be used for
12    initializing the Configuration register.
13
14compatible: "ti,ina23x"
15
16include: i2c-device.yaml
17
18properties:
19    config:
20      type: int
21      required: true
22      description: Configuration register
23
24    current_lsb:
25      type: int
26      required: true
27      description: |
28        Value of Current LSB in milliamps. When set to 1mA,
29        Current is read in A, Bus Voltage in V, Shunt
30        Voltage in V, and Power in mW. Any other value
31        results in Current, Voltage, and Power registers
32        being read in counts.
33
34    rshunt:
35      type: int
36      required: true
37      description: Shunt resistor value in milliohms
38
39    mask:
40      type: int
41      required: false
42      default: 0
43      # default all alert sources to disabled
44      description: Mask register, default matches the power-on reset value
45
46    alert_limit:
47      type: int
48      required: false
49      default: 0
50      # default alert limit is 0V
51      description: Alert register, default matches the power-on reset value
52
53    irq-gpios:
54      type: phandle-array
55      required: false
56      description: IRQ Alert pin
57