Skip to contentSkip to conversation

dt-bindings: hwmon: ti,ina2xx: Update details for various chips

PATCH In review Guenter Roeck 2 participants 2 messages Sep 1, 2025

Subsystems (2)
lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH 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.

---
 .../devicetree/bindings/hwmon/ti,ina2xx.yaml  | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml +29 -0
index 980ecba6d811..8b491be9c49d 100644
@@ -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