GNU Linux-libre 4.19.286-gnu1
[releases.git] / Documentation / devicetree / bindings / iio / imu / bmi160.txt
1 Bosch BMI160 - Inertial Measurement Unit with Accelerometer, Gyroscope
2 and externally connectable Magnetometer
3
4 https://www.bosch-sensortec.com/bst/products/all_products/bmi160
5
6 Required properties:
7  - compatible : should be "bosch,bmi160"
8  - reg : the I2C address or SPI chip select number of the sensor
9  - spi-max-frequency : set maximum clock frequency (only for SPI)
10
11 Optional properties:
12  - interrupts : interrupt mapping for IRQ, must be IRQ_TYPE_LEVEL_LOW
13  - interrupt-names : set to "INT1" if INT1 pin should be used as interrupt
14    input, set to "INT2" if INT2 pin should be used instead
15
16 Examples:
17
18 bmi160@68 {
19         compatible = "bosch,bmi160";
20         reg = <0x68>;
21
22         interrupt-parent = <&gpio4>;
23         interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
24         interrupt-names = "INT1";
25 };
26
27 bmi160@0 {
28         compatible = "bosch,bmi160";
29         reg = <0>;
30         spi-max-frequency = <10000000>;
31
32         interrupt-parent = <&gpio2>;
33         interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
34         interrupt-names = "INT2";
35 };