File Index
Files and directories
Sign in
FILE

adi,adxl380.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/iio/accel/adi,adxl380.yaml 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,adxl380.yaml#
 5$schema: http://devicetree.org/meta-schemas/core.yaml#
 6
 7title: Analog Devices ADXL380/382 3-Axis Digital Accelerometer
 8
 9maintainers:
10  - Ramona Gradinariu <ramona.gradinariu@analog.com>
11  - Antoniu Miclaus <antoniu.miclaus@analog.com>
12
13description: |
14  The ADXL380/ADXL382 and ADXL318/ADXL319 are low noise density,
15  low power, 3-axis accelerometers with selectable measurement ranges.
16  The ADXL380 and ADXL318 support the ±4 g, ±8 g, and ±16 g ranges,
17  while the ADXL382 and ADXL319 support ±15 g, ±30 g, and ±60 g ranges.
18
19  https://www.analog.com/en/products/adxl318.html
20  https://www.analog.com/en/products/adxl380.html
21
22properties:
23  compatible:
24    enum:
25      - adi,adxl318
26      - adi,adxl319
27      - adi,adxl380
28      - adi,adxl382
29
30  reg:
31    maxItems: 1
32
33  interrupts:
34    minItems: 1
35    maxItems: 2
36
37  interrupt-names:
38    minItems: 1
39    items:
40      - enum: [INT0, INT1]
41      - const: INT1
42
43  vddio-supply: true
44
45  vsupply-supply: true
46
47required:
48  - compatible
49  - reg
50  - interrupts
51  - interrupt-names
52  - vddio-supply
53  - vsupply-supply
54
55allOf:
56  - $ref: /schemas/spi/spi-peripheral-props.yaml#
57
58unevaluatedProperties: false
59
60examples:
61  - |
62    #include <dt-bindings/interrupt-controller/irq.h>
63
64    i2c {
65      #address-cells = <1>;
66      #size-cells = <0>;
67
68      accelerometer@54 {
69        compatible = "adi,adxl380";
70        reg = <0x54>;
71        vddio-supply = <&vddio>;
72        vsupply-supply = <&vsupply>;
73        interrupt-parent = <&gpio>;
74        interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
75        interrupt-names = "INT0";
76      };
77    };
78  - |
79    #include <dt-bindings/interrupt-controller/irq.h>
80
81    spi {
82      #address-cells = <1>;
83      #size-cells = <0>;
84
85      accelerometer@0 {
86        compatible = "adi,adxl380";
87        reg = <0>;
88        spi-max-frequency = <8000000>;
89        vddio-supply = <&vddio>;
90        vsupply-supply = <&vsupply>;
91        interrupt-parent = <&gpio>;
92        interrupts = <25 IRQ_TYPE_LEVEL_HIGH>;
93        interrupt-names = "INT0";
94      };
95    };
~/ Read-only file preview.