]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml
MAINTAINERS: add a couple more files to the Clang/LLVM section
[mirror_ubuntu-jammy-kernel.git] / Documentation / devicetree / bindings / iio / accel / bosch,bma255.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/accel/bosch,bma255.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Bosch BMA255 and Similar Accelerometers
8
9 maintainers:
10 - Linus Walleij <linus.walleij@linaro.org>
11
12 description:
13 3 axis accelerometers with varying range and I2C or SPI
14 4-wire interface.
15
16 properties:
17 compatible:
18 enum:
19 - bosch,bmc150
20 - bosch,bmi055
21 - bosch,bma255
22 - bosch,bma250e
23 - bosch,bma222
24 - bosch,bma222e
25 - bosch,bma280
26
27 reg:
28 maxItems: 1
29
30 vdd-supply: true
31 vddio-supply: true
32
33 interrupts:
34 maxItems: 1
35
36 mount-matrix:
37 description: an optional 3x3 mounting rotation matrix.
38
39 spi-max-frequency:
40 maximum: 10000000
41
42 required:
43 - compatible
44 - reg
45
46 additionalProperties: false
47
48 examples:
49 - |
50 #include <dt-bindings/interrupt-controller/irq.h>
51 i2c {
52 #address-cells = <1>;
53 #size-cells = <0>;
54 accelerometer@8 {
55 compatible = "bosch,bma222";
56 reg = <0x08>;
57 vddio-supply = <&vddio>;
58 vdd-supply = <&vdd>;
59 interrupts = <57 IRQ_TYPE_EDGE_FALLING>;
60 };
61 };
62 - |
63 # include <dt-bindings/interrupt-controller/irq.h>
64 spi {
65 #address-cells = <1>;
66 #size-cells = <0>;
67 accel@0 {
68 compatible = "bosch,bma222";
69 reg = <0>;
70 spi-max-frequency = <10000000>;
71 };
72 };
73 ...