[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200825124711.11455-3-nish.malpani25@gmail.com>
Date: Tue, 25 Aug 2020 18:17:10 +0530
From: Nishant Malpani <nish.malpani25@...il.com>
To: jic23@...nel.org, robh+dt@...nel.org
Cc: dragos.bogdan@...log.com, darius.berghe@...log.com,
linux-kernel@...r.kernel.org, linux-iio@...r.kernel.org,
devicetree@...r.kernel.org,
Nishant Malpani <nish.malpani25@...il.com>
Subject: [PATCH 2/3] dt-bindings: iio: gyro: adxrs290: Add required interrupts property
Append 'interrupts' as a required property and provide a suitable example
for using a GPIO interrupt line.
Signed-off-by: Nishant Malpani <nish.malpani25@...il.com>
---
.../devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml
index 61adb2c2454b..cae593dd1ba7 100644
--- a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml
+++ b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml
@@ -28,17 +28,23 @@ properties:
spi-cpha: true
+ interrupts:
+ maxItems: 1
+
required:
- compatible
- reg
- spi-max-frequency
- spi-cpol
- spi-cpha
+ - interrupts
additionalProperties: false
examples:
- |
+ #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
@@ -48,6 +54,8 @@ examples:
spi-max-frequency = <5000000>;
spi-cpol;
spi-cpha;
+ interrupt-parent = <&gpio>;
+ interrupts = <25 IRQ_TYPE_EDGE_RISING>;
};
};
...
--
2.20.1
Powered by blists - more mailing lists