1# Copyright (c) 2023 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4description: Texas Instruments INA3221 Triple-Channel Current/Power Monitor
5
6compatible: "ti,ina3221"
7
8include: [sensor-device.yaml, i2c-device.yaml]
9
10properties:
11  conv-time-shunt:
12    type: int
13    default: 4
14    description: |
15      Shunt-voltage conversion time.
16      The default of 1.1 ms is the power-on reset value of the device.
17      0 = 140 μs
18      1 = 204 μs
19      2 = 332 μs
20      3 = 588 μs
21      4 = 1.1 ms (default)
22      5 = 2.116 ms
23      6 = 4.156 ms
24      7 = 8.244 ms
25    enum:
26      - 0
27      - 1
28      - 2
29      - 3
30      - 4
31      - 5
32      - 6
33      - 7
34  conv-time-bus:
35    type: int
36    default: 4
37    description: |
38      Bus-voltage conversion time.
39      The default of 1.1 ms is the power-on reset value of the device.
40      0 = 140 μs
41      1 = 204 μs
42      2 = 332 μs
43      3 = 588 μs
44      4 = 1.1 ms (default)
45      5 = 2.116 ms
46      6 = 4.156 ms
47      7 = 8.244 ms
48    enum:
49      - 0
50      - 1
51      - 2
52      - 3
53      - 4
54      - 5
55      - 6
56      - 7
57  avg-mode:
58    type: int
59    default: 0
60    description: |
61      Averaging mode (number of samples that are collected and averaged together).
62      The default of one sample (no averaging) is the power-on reset value of the device.
63      0 = 1 (default)
64      1 = 4
65      2 = 16
66      3 = 64
67      4 = 128
68      5 = 256
69      6 = 512
70      7 = 1024
71    enum:
72      - 0
73      - 1
74      - 2
75      - 3
76      - 4
77      - 5
78      - 6
79      - 7
80  enable-channel:
81    type: array
82    default: [1, 1, 1]
83    description: |
84      List of flags to enable or disable each of the three channels.
85  shunt-resistors:
86    type: array
87    description: |
88      List of shunt resistor values for all three channels in mOhms.
89