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.
76 - $ref: /schemas/spi/spi-peripheral-props.yaml#
78 unevaluatedProperties: false
82 #include <dt-bindings/interrupt-controller/irq.h>
87 compatible = "bosch,bma222";
89 vddio-supply = <&vddio>;
91 interrupts = <57 IRQ_TYPE_EDGE_RISING>;
92 interrupt-names = "INT1";
96 #include <dt-bindings/interrupt-controller/irq.h>
101 compatible = "bosch,bmc156_accel";
103 vddio-supply = <&vddio>;
105 interrupts = <116 IRQ_TYPE_EDGE_RISING>;
106 interrupt-names = "INT2";
110 # include <dt-bindings/interrupt-controller/irq.h>
112 #address-cells = <1>;
115 compatible = "bosch,bma222";
117 spi-max-frequency = <10000000>;