GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / iio / accel / memsensing,msa311.yaml
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2
3 %YAML 1.2
4 ---
5 $id: "http://devicetree.org/schemas/iio/accel/memsensing,msa311.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7
8 title: MEMSensing digital 3-Axis accelerometer
9
10 maintainers:
11   - Dmitry Rokosov <ddrokosov@sberdevices.ru>
12
13 description: |
14   MSA311 is a tri-axial, low-g accelerometer with I2C digital output for
15   sensitivity consumer applications. It has dynamical user selectable full
16   scales range of +-2g/+-4g/+-8g/+-16g and allows acceleration measurements
17   with output data rates from 1Hz to 1000Hz.
18   Datasheet can be found at following URL
19   https://cdn-shop.adafruit.com/product-files/5309/MSA311-V1.1-ENG.pdf
20
21 properties:
22   compatible:
23     const: memsensing,msa311
24
25   reg:
26     maxItems: 1
27
28   interrupts:
29     maxItems: 1
30
31   vdd-supply: true
32
33 required:
34   - compatible
35   - reg
36
37 additionalProperties: 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         accelerometer@62 {
47             compatible = "memsensing,msa311";
48             reg = <0x62>;
49             interrupt-parent = <&gpio_intc>;
50             interrupts = <29 IRQ_TYPE_EDGE_RISING>;
51             vdd-supply = <&vcc_5v>;
52         };
53     };