GNU Linux-libre 6.8.9-gnu
[releases.git] / Documentation / devicetree / bindings / iio / accel / kionix,kx022a.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/kionix,kx022a.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: ROHM/Kionix KX022A, KX132-1211 and KX132ACR-LBZ Accelerometers
8
9 maintainers:
10   - Matti Vaittinen <mazziesaccount@gmail.com>
11
12 description: |
13   KX022A, KX132ACR-LBZ and KX132-1211 are 3-axis accelerometers supporting
14   +/- 2G, 4G, 8G and 16G ranges, variable output data-rates and a
15   hardware-fifo buffering. These accelerometers can be accessed either
16   via I2C or SPI.
17
18 properties:
19   compatible:
20     enum:
21       - kionix,kx022a
22       - kionix,kx132-1211
23       - rohm,kx132acr-lbz
24
25   reg:
26     maxItems: 1
27
28   interrupts:
29     minItems: 1
30     maxItems: 2
31
32   interrupt-names:
33     minItems: 1
34     items:
35       - enum: [INT1, INT2]
36       - const: INT2
37
38   vdd-supply: true
39   io-vdd-supply: true
40
41   mount-matrix:
42     description: |
43       an optional 3x3 mounting rotation matrix.
44
45 required:
46   - compatible
47   - reg
48   - interrupts
49
50 additionalProperties: false
51
52 examples:
53   - |
54     #include <dt-bindings/interrupt-controller/irq.h>
55     i2c {
56         #address-cells = <1>;
57         #size-cells = <0>;
58         accel@1f {
59             compatible = "kionix,kx022a";
60             reg = <0x1f>;
61
62             interrupt-parent = <&gpio1>;
63             interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
64             interrupt-names = "INT1";
65
66             io-vdd-supply = <&iovdd>;
67             vdd-supply = <&vdd>;
68         };
69     };