0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/accel/adi,adis16240.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: ADIS16240 Programmable Impact Sensor and Recorder driver
0008
0009 maintainers:
0010 - Alexandru Tachici <alexandru.tachici@analog.com>
0011
0012 description: |
0013 ADIS16240 Programmable Impact Sensor and Recorder driver that supports
0014 SPI interface.
0015 https://www.analog.com/en/products/adis16240.html
0016
0017 properties:
0018 compatible:
0019 enum:
0020 - adi,adis16240
0021
0022 reg:
0023 maxItems: 1
0024
0025 interrupts:
0026 maxItems: 1
0027
0028 spi-max-frequency: true
0029
0030 required:
0031 - compatible
0032 - reg
0033 - interrupts
0034
0035 additionalProperties: false
0036
0037 examples:
0038 - |
0039 #include <dt-bindings/gpio/gpio.h>
0040 #include <dt-bindings/interrupt-controller/irq.h>
0041 spi0 {
0042 #address-cells = <1>;
0043 #size-cells = <0>;
0044
0045 /* Example for a SPI device node */
0046 accelerometer@0 {
0047 compatible = "adi,adis16240";
0048 reg = <0>;
0049 spi-max-frequency = <2500000>;
0050 interrupt-parent = <&gpio0>;
0051 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
0052 };
0053 };