1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/imu/bosch,bmi160.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jonathan Cameron <jic23@kernel.org>
13 Inertial Measurement Unit with Accelerometer, Gyroscope and externally
14 connectable Magnetometer
15 https://www.bosch-sensortec.com/bst/products/all_products/bmi160
32 set to "INT1" if INT1 pin should be used as interrupt input, set
33 to "INT2" if INT2 pin should be used instead
37 set if the specified interrupt pin should be configured as
38 open drain. If not set, defaults to push-pull.
41 description: provide VDD power to the sensor.
44 description: provide VDD IO power to the sensor.
47 description: an optional 3x3 mounting rotation matrix
49 spi-max-frequency: true
55 additionalProperties: false
60 #include <dt-bindings/interrupt-controller/irq.h>
66 compatible = "bosch,bmi160";
68 vdd-supply = <&pm8916_l17>;
69 vddio-supply = <&pm8916_l6>;
70 interrupt-parent = <&gpio4>;
71 interrupts = <12 IRQ_TYPE_EDGE_RISING>;
72 interrupt-names = "INT1";
73 mount-matrix = "0", "1", "0",
80 #include <dt-bindings/interrupt-controller/irq.h>
86 compatible = "bosch,bmi160";
88 spi-max-frequency = <10000000>;
89 interrupt-parent = <&gpio2>;
90 interrupts = <12 IRQ_TYPE_EDGE_RISING>;
91 interrupt-names = "INT2";