Merge branch 'kvm-ppc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / iio / imu / st_lsm6dsx.txt
1 * ST_LSM6DSx driver for STM 6-axis (acc + gyro) imu Mems sensors
2
3 Required properties:
4 - compatible: must be one of:
5   "st,lsm6ds3"
6   "st,lsm6ds3h"
7   "st,lsm6dsl"
8   "st,lsm6dsm"
9 - reg: i2c address of the sensor / spi cs line
10
11 Optional properties:
12 - st,drdy-int-pin: the pin on the package that will be used to signal
13   "data ready" (valid values: 1 or 2).
14 - drive-open-drain: the interrupt/data ready line will be configured
15   as open drain, which is useful if several sensors share the same
16   interrupt line. This is a boolean property.
17   (This binding is taken from pinctrl/pinctrl-bindings.txt)
18   If the requested interrupt is configured as IRQ_TYPE_LEVEL_HIGH or
19   IRQ_TYPE_EDGE_RISING a pull-down resistor is needed to drive the line
20   when it is not active, whereas a pull-up one is needed when interrupt
21   line is configured as IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_EDGE_FALLING.
22 - interrupt-parent: should be the phandle for the interrupt controller
23 - interrupts: interrupt mapping for IRQ. It should be configured with
24   flags IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or
25   IRQ_TYPE_EDGE_FALLING.
26
27   Refer to interrupt-controller/interrupts.txt for generic interrupt
28   client node bindings.
29
30 Example:
31
32 lsm6dsm@6b {
33         compatible = "st,lsm6dsm";
34         reg = <0x6b>;
35         interrupt-parent = <&gpio0>;
36         interrupts = <0 IRQ_TYPE_EDGE_RISING>;
37 };