Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/accel/kionix,kx022a.yaml
26309 views
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/134-1211 and KX132/134ACR-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. The KX134ACR-LBZ and KX134-1211 support
15
+/- 8G, 16G, 32G and 64G. All the sensors also have variable output
16
data-rates and a hardware-fifo buffering. These accelerometers can be
17
accessed either via I2C or SPI.
18
19
properties:
20
compatible:
21
enum:
22
- kionix,kx022a
23
- kionix,kx132-1211
24
- kionix,kx134-1211
25
- rohm,kx132acr-lbz
26
- rohm,kx134acr-lbz
27
28
reg:
29
maxItems: 1
30
31
interrupts:
32
minItems: 1
33
maxItems: 2
34
35
interrupt-names:
36
minItems: 1
37
items:
38
- enum: [INT1, INT2]
39
- const: INT2
40
41
vdd-supply: true
42
io-vdd-supply: true
43
44
mount-matrix:
45
description: |
46
an optional 3x3 mounting rotation matrix.
47
48
required:
49
- compatible
50
- reg
51
- interrupts
52
53
additionalProperties: false
54
55
examples:
56
- |
57
#include <dt-bindings/interrupt-controller/irq.h>
58
i2c {
59
#address-cells = <1>;
60
#size-cells = <0>;
61
accel@1f {
62
compatible = "kionix,kx022a";
63
reg = <0x1f>;
64
65
interrupt-parent = <&gpio1>;
66
interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
67
interrupt-names = "INT1";
68
69
io-vdd-supply = <&iovdd>;
70
vdd-supply = <&vdd>;
71
};
72
};
73
74