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

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.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 67255580
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -28,6 +28,9 @@ properties:

  spi-cpha: true

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg
@@ -39,6 +42,7 @@ additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    spi {
        #address-cells = <1>;
        #size-cells = <0>;
@@ -48,6 +52,8 @@ examples:
                   spi-max-frequency = <5000000>;
                   spi-cpol;
                   spi-cpha;
                   interrupt-parent = <&gpio>;
                   interrupts = <25 IRQ_TYPE_EDGE_RISING>;
        };
    };
...