15b883564SRodrigo Carvalho# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25b883564SRodrigo Carvalho%YAML 1.2 35b883564SRodrigo Carvalho--- 45b883564SRodrigo Carvalho$id: http://devicetree.org/schemas/iio/accel/adi,adis16240.yaml# 55b883564SRodrigo Carvalho$schema: http://devicetree.org/meta-schemas/core.yaml# 65b883564SRodrigo Carvalho 75b883564SRodrigo Carvalhotitle: ADIS16240 Programmable Impact Sensor and Recorder driver 85b883564SRodrigo Carvalho 95b883564SRodrigo Carvalhomaintainers: 105b883564SRodrigo Carvalho - Alexandru Ardelean <alexandru.ardelean@analog.com> 115b883564SRodrigo Carvalho 125b883564SRodrigo Carvalhodescription: | 135b883564SRodrigo Carvalho ADIS16240 Programmable Impact Sensor and Recorder driver that supports 145b883564SRodrigo Carvalho SPI interface. 155b883564SRodrigo Carvalho https://www.analog.com/en/products/adis16240.html 165b883564SRodrigo Carvalho 175b883564SRodrigo Carvalhoproperties: 185b883564SRodrigo Carvalho compatible: 195b883564SRodrigo Carvalho enum: 205b883564SRodrigo Carvalho - adi,adis16240 215b883564SRodrigo Carvalho 225b883564SRodrigo Carvalho reg: 235b883564SRodrigo Carvalho maxItems: 1 245b883564SRodrigo Carvalho 255b883564SRodrigo Carvalho interrupts: 265b883564SRodrigo Carvalho maxItems: 1 275b883564SRodrigo Carvalho 284828556dSRob Herring spi-max-frequency: true 294828556dSRob Herring 305b883564SRodrigo Carvalhorequired: 315b883564SRodrigo Carvalho - compatible 325b883564SRodrigo Carvalho - reg 335b883564SRodrigo Carvalho - interrupts 345b883564SRodrigo Carvalho 354828556dSRob HerringadditionalProperties: false 366fdc6e23SRob Herring 375b883564SRodrigo Carvalhoexamples: 385b883564SRodrigo Carvalho - | 395b883564SRodrigo Carvalho #include <dt-bindings/gpio/gpio.h> 405b883564SRodrigo Carvalho #include <dt-bindings/interrupt-controller/irq.h> 415b883564SRodrigo Carvalho spi0 { 425b883564SRodrigo Carvalho #address-cells = <1>; 435b883564SRodrigo Carvalho #size-cells = <0>; 445b883564SRodrigo Carvalho 455b883564SRodrigo Carvalho /* Example for a SPI device node */ 465b883564SRodrigo Carvalho accelerometer@0 { 475b883564SRodrigo Carvalho compatible = "adi,adis16240"; 485b883564SRodrigo Carvalho reg = <0>; 495b883564SRodrigo Carvalho spi-max-frequency = <2500000>; 505b883564SRodrigo Carvalho interrupt-parent = <&gpio0>; 515b883564SRodrigo Carvalho interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 525b883564SRodrigo Carvalho }; 535b883564SRodrigo Carvalho }; 54