Skip to content

Commit 52ffdbb

Browse files
Leo Yanggroeck
authored andcommitted
dt-bindings: hwmon: ti,ina2xx: Add INA233 device
Add TI INA233 Current and Power Monitor bindings. Signed-off-by: Leo Yang <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 08ebc9d commit 52ffdbb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ properties:
2727
- ti,ina226
2828
- ti,ina230
2929
- ti,ina231
30+
- ti,ina233
3031
- ti,ina237
3132
- ti,ina238
3233
- ti,ina260
@@ -75,12 +76,41 @@ properties:
7576
the alert polarity to active-high.
7677
$ref: /schemas/types.yaml#/definitions/flag
7778

79+
ti,maximum-expected-current-microamp:
80+
description: |
81+
This value indicates the maximum current in microamps that you can
82+
expect to measure with ina233 in your circuit.
83+
84+
This value will be used to calculate the Current_LSB and current/power
85+
coefficient for the pmbus and to calibrate the IC.
86+
minimum: 32768
87+
maximum: 4294967295
88+
default: 32768000
89+
7890
required:
7991
- compatible
8092
- reg
8193

8294
allOf:
8395
- $ref: hwmon-common.yaml#
96+
- if:
97+
properties:
98+
compatible:
99+
contains:
100+
enum:
101+
- silergy,sy24655
102+
- ti,ina209
103+
- ti,ina219
104+
- ti,ina220
105+
- ti,ina226
106+
- ti,ina230
107+
- ti,ina231
108+
- ti,ina237
109+
- ti,ina238
110+
- ti,ina260
111+
then:
112+
properties:
113+
ti,maximum-expected-current-microamp: false
84114

85115
unevaluatedProperties: false
86116

0 commit comments

Comments
 (0)