]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dt-bindings: iio: pressure: bmp085: Add interrupts for BMP3xx and BMP5xx devices
authorVasileios Amoiridis <vassilisamir@gmail.com>
Thu, 17 Oct 2024 23:30:20 +0000 (01:30 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Oct 2024 18:19:24 +0000 (19:19 +0100)
Add interrupt options for BMP3xx and BMP5xx devices as well.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/20241017233022.238250-3-vassilisamir@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/pressure/bmp085.yaml

index 6fda887ee9d42e79cbc35c8571eca2e9d6715df8..cb201cecfa1a3e1d813ba242006543ae94c72e7d 100644 (file)
@@ -47,15 +47,33 @@ properties:
     maxItems: 1
 
   interrupts:
-    description:
-      interrupt mapping for IRQ (BMP085 only)
     maxItems: 1
 
+  drive-open-drain:
+    description:
+      set if the interrupt pin should be configured as open drain.
+      If not set, defaults to push-pull configuration.
+    type: boolean
+
 required:
   - compatible
   - vddd-supply
   - vdda-supply
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          not:
+            contains:
+              enum:
+                - bosch,bmp085
+                - bosch,bmp380
+                - bosch,bmp580
+    then:
+      properties:
+        interrupts: false
+
 additionalProperties: false
 
 examples: