Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/accel/adi,adxl372.yaml
29539 views
1
# SPDX-License-Identifier: GPL-2.0
2
%YAML 1.2
3
---
4
$id: http://devicetree.org/schemas/iio/accel/adi,adxl372.yaml#
5
$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7
title: Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer
8
9
maintainers:
10
- Marcelo Schmitt <marcelo.schmitt@analog.com>
11
- Nuno Sá <nuno.sa@analog.com>
12
13
description: |
14
Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer that supports
15
both I2C & SPI interfaces
16
https://www.analog.com/en/products/adxl372.html
17
18
properties:
19
compatible:
20
enum:
21
- adi,adxl372
22
23
reg:
24
maxItems: 1
25
26
interrupts:
27
maxItems: 1
28
29
required:
30
- compatible
31
- reg
32
- interrupts
33
34
allOf:
35
- $ref: /schemas/spi/spi-peripheral-props.yaml#
36
37
unevaluatedProperties: false
38
39
examples:
40
- |
41
#include <dt-bindings/interrupt-controller/irq.h>
42
i2c {
43
#address-cells = <1>;
44
#size-cells = <0>;
45
46
/* Example for a I2C device node */
47
accelerometer@53 {
48
compatible = "adi,adxl372";
49
reg = <0x53>;
50
interrupt-parent = <&gpio>;
51
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
52
};
53
};
54
- |
55
#include <dt-bindings/interrupt-controller/irq.h>
56
spi {
57
#address-cells = <1>;
58
#size-cells = <0>;
59
60
accelerometer@0 {
61
compatible = "adi,adxl372";
62
reg = <0>;
63
spi-max-frequency = <1000000>;
64
interrupt-parent = <&gpio>;
65
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
66
};
67
};
68
69