GNU Linux-libre 6.8.9-gnu
[releases.git] / Documentation / devicetree / bindings / iio / accel / adi,adxl367.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/accel/adi,adxl367.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Analog Devices ADXL367 3-Axis Digital Accelerometer
8
9 maintainers:
10   - Cosmin Tanislav <cosmin.tanislav@analog.com>
11
12 description: |
13   The ADXL367 is an ultralow power, 3-axis MEMS accelerometer.
14
15   The ADXL367 does not alias input signals by to achieve ultralow power
16   consumption, it samples the full bandwidth of the sensor at all
17   data rates. Measurement ranges of +-2g, +-4g, and +-8g are available,
18   with a resolution of 0.25mg/LSB on the +-2 g range.
19
20   In addition to its ultralow power consumption, the ADXL367
21   has many features to enable true system level power reduction.
22   It includes a deep multimode output FIFO, a built-in micropower
23   temperature sensor, and an internal ADC for synchronous conversion
24   of an additional analog input.
25     https://www.analog.com/en/products/adxl367.html
26
27 properties:
28   compatible:
29     enum:
30       - adi,adxl367
31
32   reg:
33     maxItems: 1
34
35   interrupts:
36     maxItems: 1
37
38   vdd-supply: true
39   vddio-supply: true
40
41 required:
42   - compatible
43   - reg
44   - interrupts
45
46 allOf:
47   - $ref: /schemas/spi/spi-peripheral-props.yaml#
48
49 unevaluatedProperties: false
50
51 examples:
52   - |
53     #include <dt-bindings/interrupt-controller/irq.h>
54
55     i2c {
56       #address-cells = <1>;
57       #size-cells = <0>;
58
59       accelerometer@53 {
60         compatible = "adi,adxl367";
61         reg = <0x53>;
62         interrupt-parent = <&gpio>;
63         interrupts = <25 IRQ_TYPE_EDGE_RISING>;
64       };
65     };
66   - |
67     #include <dt-bindings/interrupt-controller/irq.h>
68
69     spi {
70       #address-cells = <1>;
71       #size-cells = <0>;
72
73       accelerometer@0 {
74         compatible = "adi,adxl367";
75         reg = <0>;
76         spi-max-frequency = <1000000>;
77         interrupt-parent = <&gpio>;
78         interrupts = <25 IRQ_TYPE_EDGE_RISING>;
79       };
80     };