1*f1022193SAntoniu Miclaus# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*f1022193SAntoniu Miclaus%YAML 1.2 3*f1022193SAntoniu Miclaus--- 4*f1022193SAntoniu Miclaus$id: http://devicetree.org/schemas/iio/accel/adi,adxl380.yaml# 5*f1022193SAntoniu Miclaus$schema: http://devicetree.org/meta-schemas/core.yaml# 6*f1022193SAntoniu Miclaus 7*f1022193SAntoniu Miclaustitle: Analog Devices ADXL380/382 3-Axis Digital Accelerometer 8*f1022193SAntoniu Miclaus 9*f1022193SAntoniu Miclausmaintainers: 10*f1022193SAntoniu Miclaus - Ramona Gradinariu <ramona.gradinariu@analog.com> 11*f1022193SAntoniu Miclaus - Antoniu Miclaus <antoniu.miclaus@analog.com> 12*f1022193SAntoniu Miclaus 13*f1022193SAntoniu Miclausdescription: | 14*f1022193SAntoniu Miclaus The ADXL380/ADXL382 is a low noise density, low power, 3-axis 15*f1022193SAntoniu Miclaus accelerometer with selectable measurement ranges. The ADXL380 16*f1022193SAntoniu Miclaus supports the ±4 g, ±8 g, and ±16 g ranges, and the ADXL382 supports 17*f1022193SAntoniu Miclaus ±15 g, ±30 g, and ±60 g ranges. 18*f1022193SAntoniu Miclaus 19*f1022193SAntoniu Miclaus https://www.analog.com/en/products/adxl380.html 20*f1022193SAntoniu Miclaus 21*f1022193SAntoniu Miclausproperties: 22*f1022193SAntoniu Miclaus compatible: 23*f1022193SAntoniu Miclaus enum: 24*f1022193SAntoniu Miclaus - adi,adxl380 25*f1022193SAntoniu Miclaus - adi,adxl382 26*f1022193SAntoniu Miclaus 27*f1022193SAntoniu Miclaus reg: 28*f1022193SAntoniu Miclaus maxItems: 1 29*f1022193SAntoniu Miclaus 30*f1022193SAntoniu Miclaus interrupts: 31*f1022193SAntoniu Miclaus minItems: 1 32*f1022193SAntoniu Miclaus maxItems: 2 33*f1022193SAntoniu Miclaus 34*f1022193SAntoniu Miclaus interrupt-names: 35*f1022193SAntoniu Miclaus minItems: 1 36*f1022193SAntoniu Miclaus items: 37*f1022193SAntoniu Miclaus - enum: [INT0, INT1] 38*f1022193SAntoniu Miclaus - const: INT1 39*f1022193SAntoniu Miclaus 40*f1022193SAntoniu Miclaus vddio-supply: true 41*f1022193SAntoniu Miclaus 42*f1022193SAntoniu Miclaus vsupply-supply: true 43*f1022193SAntoniu Miclaus 44*f1022193SAntoniu Miclausrequired: 45*f1022193SAntoniu Miclaus - compatible 46*f1022193SAntoniu Miclaus - reg 47*f1022193SAntoniu Miclaus - interrupts 48*f1022193SAntoniu Miclaus - interrupt-names 49*f1022193SAntoniu Miclaus - vddio-supply 50*f1022193SAntoniu Miclaus - vsupply-supply 51*f1022193SAntoniu Miclaus 52*f1022193SAntoniu MiclausallOf: 53*f1022193SAntoniu Miclaus - $ref: /schemas/spi/spi-peripheral-props.yaml# 54*f1022193SAntoniu Miclaus 55*f1022193SAntoniu MiclausunevaluatedProperties: false 56*f1022193SAntoniu Miclaus 57*f1022193SAntoniu Miclausexamples: 58*f1022193SAntoniu Miclaus - | 59*f1022193SAntoniu Miclaus #include <dt-bindings/interrupt-controller/irq.h> 60*f1022193SAntoniu Miclaus 61*f1022193SAntoniu Miclaus i2c { 62*f1022193SAntoniu Miclaus #address-cells = <1>; 63*f1022193SAntoniu Miclaus #size-cells = <0>; 64*f1022193SAntoniu Miclaus 65*f1022193SAntoniu Miclaus accelerometer@54 { 66*f1022193SAntoniu Miclaus compatible = "adi,adxl380"; 67*f1022193SAntoniu Miclaus reg = <0x54>; 68*f1022193SAntoniu Miclaus vddio-supply = <&vddio>; 69*f1022193SAntoniu Miclaus vsupply-supply = <&vsupply>; 70*f1022193SAntoniu Miclaus interrupt-parent = <&gpio>; 71*f1022193SAntoniu Miclaus interrupts = <25 IRQ_TYPE_LEVEL_HIGH>; 72*f1022193SAntoniu Miclaus interrupt-names = "INT0"; 73*f1022193SAntoniu Miclaus }; 74*f1022193SAntoniu Miclaus }; 75*f1022193SAntoniu Miclaus - | 76*f1022193SAntoniu Miclaus #include <dt-bindings/interrupt-controller/irq.h> 77*f1022193SAntoniu Miclaus 78*f1022193SAntoniu Miclaus spi { 79*f1022193SAntoniu Miclaus #address-cells = <1>; 80*f1022193SAntoniu Miclaus #size-cells = <0>; 81*f1022193SAntoniu Miclaus 82*f1022193SAntoniu Miclaus accelerometer@0 { 83*f1022193SAntoniu Miclaus compatible = "adi,adxl380"; 84*f1022193SAntoniu Miclaus reg = <0>; 85*f1022193SAntoniu Miclaus spi-max-frequency = <8000000>; 86*f1022193SAntoniu Miclaus vddio-supply = <&vddio>; 87*f1022193SAntoniu Miclaus vsupply-supply = <&vsupply>; 88*f1022193SAntoniu Miclaus interrupt-parent = <&gpio>; 89*f1022193SAntoniu Miclaus interrupts = <25 IRQ_TYPE_LEVEL_HIGH>; 90*f1022193SAntoniu Miclaus interrupt-names = "INT0"; 91*f1022193SAntoniu Miclaus }; 92*f1022193SAntoniu Miclaus }; 93