1#
2# Copyright 2021 The Chromium OS Authors
3# Copyright 2021 Grinn
4#
5# SPDX-License-Identifier: Apache-2.0
6#
7
8description: |
9    TI INA230, INA231 and INA236 Bidirectional Current and Power Monitor.
10    The <zephyr/dt-bindings/sensor/ina230.h> file should be included in the
11    DeviceTree and it provides macro that can be used for initializing the
12    configuration register.
13
14compatible: "ti,ina230"
15
16include: ti,ina23x-common.yaml
17
18properties:
19  config:
20    type: int
21    deprecated: true
22    default: 0x0000
23    description: |
24      Value of the configuration register
25      e.g shunt voltage and bus voltage ADC conversion
26      times, ADC and averaging, and ADC operating mode.
27
28  alert-config:
29    type: int
30    description: Diag alert register, default matches the power-on reset value
31
32  adc-mode:
33    type: string
34    description: |
35      ADC channel conversion configuration.
36      Default is the power-on reset value.
37    default: "Bus and shunt voltage continuous"
38    enum:
39      - "Shutdown single shot"
40      - "Shunt Voltage single shot"
41      - "Bus Voltage single shot"
42      - "Bus and Shunt Voltage single shot"
43      - "Shutdown continuous"
44      - "Shunt voltage continuous"
45      - "Bus voltage continuous"
46      - "Bus and shunt voltage continuous"
47
48  vbus-conversion-time-us:
49    type: int
50    description: |
51      Vbus conversion time in microseconds.
52      Default is the power-on reset value.
53    default: 1100
54    enum: [140, 204, 332, 588, 1100, 2116, 4156, 8244]
55
56  vshunt-conversion-time-us:
57    type: int
58    description: |
59      Vshunt conversion time in microseconds.
60      Default is the power-on reset value.
61    default: 1100
62    enum: [140, 204, 332, 588, 1100, 2116, 4156, 8244]
63
64  avg-count:
65    type: int
66    description: |
67      Number of samples to average (applies to all inputs).
68      Default is the power-on reset value.
69    default: 1
70    enum: [1, 4, 16, 64, 128, 256, 512, 1024]
71
72  mask:
73    type: int
74    default: 0
75    # default all alert sources to disabled
76    description: Mask register, default matches the power-on reset value
77
78  alert-limit:
79    type: int
80    default: 0
81    # default alert limit is 0V
82    description: Alert register, default matches the power-on reset value
83