devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: hwmon: ti,ina2xx: Update details for various chips
@ 2025-09-01 15:59 Guenter Roeck
  2025-09-01 19:03 ` Conor Dooley
  0 siblings, 1 reply; 2+ messages in thread
From: Guenter Roeck @ 2025-09-01 15:59 UTC (permalink / raw)
  To: devicetree
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-hwmon,
	Guenter Roeck, Chris Packham

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 <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 .../devicetree/bindings/hwmon/ti,ina2xx.yaml  | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
index 980ecba6d811..8b491be9c49d 100644
--- a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
@@ -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:
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dt-bindings: hwmon: ti,ina2xx: Update details for various chips
  2025-09-01 15:59 [PATCH] dt-bindings: hwmon: ti,ina2xx: Update details for various chips Guenter Roeck
@ 2025-09-01 19:03 ` Conor Dooley
  0 siblings, 0 replies; 2+ messages in thread
From: Conor Dooley @ 2025-09-01 19:03 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: devicetree, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-hwmon, Chris Packham

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

On Mon, Sep 01, 2025 at 08:59:02AM -0700, Guenter Roeck wrote:
> 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 <chris.packham@alliedtelesis.co.nz>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-01 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-01 15:59 [PATCH] dt-bindings: hwmon: ti,ina2xx: Update details for various chips Guenter Roeck
2025-09-01 19:03 ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).