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
7title: Bosch BMA255 and Similar Accelerometers
8
9maintainers:
10  - Linus Walleij <linus.walleij@linaro.org>
11
12description:
13  3 axis accelerometers with varying range and I2C or SPI
14  4-wire interface.
15
16properties:
17  compatible:
18    enum:
19      - bosch,bmc150_accel
20      - bosch,bmi055_accel
21      - bosch,bma253
22      - bosch,bma255
23      - bosch,bma250e
24      - bosch,bma222
25      - bosch,bma222e
26      - bosch,bma280
27
28  reg:
29    maxItems: 1
30
31  vdd-supply: true
32  vddio-supply: true
33
34  interrupts:
35    maxItems: 1
36
37  mount-matrix:
38    description: an optional 3x3 mounting rotation matrix.
39
40  spi-max-frequency:
41    maximum: 10000000
42
43required:
44  - compatible
45  - reg
46
47additionalProperties: false
48
49examples:
50  - |
51    #include <dt-bindings/interrupt-controller/irq.h>
52    i2c {
53        #address-cells = <1>;
54        #size-cells = <0>;
55        accelerometer@8 {
56            compatible = "bosch,bma222";
57            reg = <0x08>;
58            vddio-supply = <&vddio>;
59            vdd-supply = <&vdd>;
60            interrupts = <57 IRQ_TYPE_EDGE_FALLING>;
61        };
62    };
63  - |
64    # include <dt-bindings/interrupt-controller/irq.h>
65    spi {
66        #address-cells = <1>;
67        #size-cells = <0>;
68        accel@0 {
69            compatible = "bosch,bma222";
70            reg = <0>;
71            spi-max-frequency = <10000000>;
72        };
73    };
74...
75