Skip to content

Commit

Permalink
dt-bindings: iio: gyro: adxrs290: Add required interrupts property
Browse files Browse the repository at this point in the history
Append 'interrupts' as a required property and provide a suitable example
for using a GPIO interrupt line.

Signed-off-by: Nishant Malpani <nish.malpani25@gmail.com>
  • Loading branch information
layman-n-ish committed Aug 19, 2020
1 parent c5aa098 commit c1864e2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand All @@ -48,6 +54,8 @@ examples:
spi-max-frequency = <5000000>;
spi-cpol;
spi-cpha;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
};
};
...

0 comments on commit c1864e2

Please sign in to comment.