1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/accel/bosch,bma255.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Bosch BMA255 and Similar Accelerometers
10 - Linus Walleij <linus.walleij@linaro.org>
11 - Stephan Gerhold <stephan@gerhold.net>
14 3 axis accelerometers with varying range and I2C or SPI
20 # bmc150-accel driver in Linux
32 # bma180 driver in Linux
49 Without interrupt-names, the first interrupt listed must be the one
50 connected to the INT1 pin, the second (optional) interrupt listed must be
51 the one connected to the INT2 pin (if available). The type should be
54 BMC156 does not have an INT1 pin, therefore the first interrupt pin is
55 always treated as INT2.
66 description: an optional 3x3 mounting rotation matrix.
75 additionalProperties: false
79 #include <dt-bindings/interrupt-controller/irq.h>
84 compatible = "bosch,bma222";
86 vddio-supply = <&vddio>;
88 interrupts = <57 IRQ_TYPE_EDGE_RISING>;
89 interrupt-names = "INT1";
93 #include <dt-bindings/interrupt-controller/irq.h>
98 compatible = "bosch,bmc156_accel";
100 vddio-supply = <&vddio>;
102 interrupts = <116 IRQ_TYPE_EDGE_RISING>;
103 interrupt-names = "INT2";
107 # include <dt-bindings/interrupt-controller/irq.h>
109 #address-cells = <1>;
112 compatible = "bosch,bma222";
114 spi-max-frequency = <10000000>;