dt-bindings: hwmon: ti,ina2xx: Update details for various chips
Subsystems (2)
Guenter Roeck
maintainerPATCH 1/1 dt-bindings: hwmon: ti,ina2xx: Update details for various chips
ti,maximum-expected-current-microamp, ti,shunt-gain, and shunt-resistor properties are not supported on all chips described in this bindings file. Update the bindings accordingly.
Cc Chris Packham <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
--- .../devicetree/bindings/hwmon/ti,ina2xx.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+)
Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml +29 -0
@@ -115,10 +115,39 @@ allOf: - ti,ina237 - ti,ina238 - ti,ina260 + - ti,ina780 then: properties: ti,maximum-expected-current-microamp: false + - if: + properties: + compatible: + contains: + enum: + - silergy,sy24655 + - ti,ina209 + - ti,ina219 + - ti,ina220 + - ti,ina226 + - ti,ina230 + - ti,ina231 + - ti,ina260 + - ti,ina780 + then: + properties: + ti,shunt-gain: false + + - if: + properties: + compatible: + contains: + enum: + - ti,ina780 + then: + properties: + shunt-resistor: false + unevaluatedProperties: false examples:
Signature · 1 line
2.45.2
Quoted 6 lines · Guenter Roeck
ti,maximum-expected-current-microamp, ti,shunt-gain, and shunt-resistor properties are not supported on all chips described in this bindings file. Update the bindings accordingly.
Cc Chris Packham <[email protected]>Signed-off-by Guenter Roeck <[email protected]>
Acked-by Conor Dooley <[email protected]>