Merge branch 'work.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[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   "st,ism330dlc"
10 - reg: i2c address of the sensor / spi cs line
11
12 Optional properties:
13 - st,drdy-int-pin: the pin on the package that will be used to signal
14   "data ready" (valid values: 1 or 2).
15 - drive-open-drain: the interrupt/data ready line will be configured
16   as open drain, which is useful if several sensors share the same
17   interrupt line. This is a boolean property.
18   (This binding is taken from pinctrl/pinctrl-bindings.txt)
19   If the requested interrupt is configured as IRQ_TYPE_LEVEL_HIGH or
20   IRQ_TYPE_EDGE_RISING a pull-down resistor is needed to drive the line
21   when it is not active, whereas a pull-up one is needed when interrupt
22   line is configured as IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_EDGE_FALLING.
23 - interrupt-parent: should be the phandle for the interrupt controller
24 - interrupts: interrupt mapping for IRQ. It should be configured with
25   flags IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or
26   IRQ_TYPE_EDGE_FALLING.
27
28   Refer to interrupt-controller/interrupts.txt for generic interrupt
29   client node bindings.
30
31 Example:
32
33 lsm6dsm@6b {
34         compatible = "st,lsm6dsm";
35         reg = <0x6b>;
36         interrupt-parent = <&gpio0>;
37         interrupts = <0 IRQ_TYPE_EDGE_RISING>;
38 };