Merge remote-tracking branches 'asoc/topic/max9878', 'asoc/topic/max98927', 'asoc...
[sfrench/cifs-2.6.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  - interrupt-parent : should be the phandle of the interrupt controller
13  - interrupts : interrupt mapping for IRQ, must be IRQ_TYPE_LEVEL_LOW
14  - interrupt-names : set to "INT1" if INT1 pin should be used as interrupt
15    input, set to "INT2" if INT2 pin should be used instead
16
17 Examples:
18
19 bmi160@68 {
20         compatible = "bosch,bmi160";
21         reg = <0x68>;
22
23         interrupt-parent = <&gpio4>;
24         interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
25         interrupt-names = "INT1";
26 };
27
28 bmi160@0 {
29         compatible = "bosch,bmi160";
30         reg = <0>;
31         spi-max-frequency = <10000000>;
32
33         interrupt-parent = <&gpio2>;
34         interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
35         interrupt-names = "INT2";
36 };