Commit 85434c2a authored by Nishant Malpani's avatar Nishant Malpani Committed by Jonathan Cameron

dt-bindings: iio: gyro: adxrs290: Add interrupts support

Include 'interrupts' property and provide a suitable example for using
a GPIO interrupt line.
Signed-off-by: default avatarNishant Malpani <nish.malpani25@gmail.com>
Link: https://lore.kernel.org/r/20200910180450.29696-3-nish.malpani25@gmail.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 67255580
...@@ -28,6 +28,9 @@ properties: ...@@ -28,6 +28,9 @@ properties:
spi-cpha: true spi-cpha: true
interrupts:
maxItems: 1
required: required:
- compatible - compatible
- reg - reg
...@@ -39,6 +42,7 @@ additionalProperties: false ...@@ -39,6 +42,7 @@ additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h>
spi { spi {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -48,6 +52,8 @@ examples: ...@@ -48,6 +52,8 @@ examples:
spi-max-frequency = <5000000>; spi-max-frequency = <5000000>;
spi-cpol; spi-cpol;
spi-cpha; spi-cpha;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
}; };
}; };
... ...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment