xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/imu/st_lsm6dsx.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* ST_LSM6DSx driver for STM 6-axis (acc + gyro) imu Mems sensors
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: must be one of:
5*4882a593Smuzhiyun  "st,lsm6ds3"
6*4882a593Smuzhiyun  "st,lsm6ds3h"
7*4882a593Smuzhiyun  "st,lsm6dsl"
8*4882a593Smuzhiyun  "st,lsm6dsm"
9*4882a593Smuzhiyun  "st,ism330dlc"
10*4882a593Smuzhiyun  "st,lsm6dso"
11*4882a593Smuzhiyun  "st,asm330lhh"
12*4882a593Smuzhiyun  "st,lsm6dsox"
13*4882a593Smuzhiyun  "st,lsm6dsr"
14*4882a593Smuzhiyun  "st,lsm6ds3tr-c"
15*4882a593Smuzhiyun  "st,ism330dhcx"
16*4882a593Smuzhiyun  "st,lsm9ds1-imu"
17*4882a593Smuzhiyun  "st,lsm6ds0"
18*4882a593Smuzhiyun  "st,lsm6dsrx"
19*4882a593Smuzhiyun- reg: i2c address of the sensor / spi cs line
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunOptional properties:
22*4882a593Smuzhiyun- st,drdy-int-pin: the pin on the package that will be used to signal
23*4882a593Smuzhiyun  "data ready" (valid values: 1 or 2).
24*4882a593Smuzhiyun- st,pullups : enable/disable internal i2c controller pullup resistors.
25*4882a593Smuzhiyun- drive-open-drain: the interrupt/data ready line will be configured
26*4882a593Smuzhiyun  as open drain, which is useful if several sensors share the same
27*4882a593Smuzhiyun  interrupt line. This is a boolean property.
28*4882a593Smuzhiyun  (This binding is taken from pinctrl/pinctrl-bindings.txt)
29*4882a593Smuzhiyun  If the requested interrupt is configured as IRQ_TYPE_LEVEL_HIGH or
30*4882a593Smuzhiyun  IRQ_TYPE_EDGE_RISING a pull-down resistor is needed to drive the line
31*4882a593Smuzhiyun  when it is not active, whereas a pull-up one is needed when interrupt
32*4882a593Smuzhiyun  line is configured as IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_EDGE_FALLING.
33*4882a593Smuzhiyun- interrupts: interrupt mapping for IRQ. It should be configured with
34*4882a593Smuzhiyun  flags IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or
35*4882a593Smuzhiyun  IRQ_TYPE_EDGE_FALLING.
36*4882a593Smuzhiyun- wakeup-source: Enables wake up of host system on event.
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun  Refer to interrupt-controller/interrupts.txt for generic interrupt
39*4882a593Smuzhiyun  client node bindings.
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunExample:
42*4882a593Smuzhiyun
43*4882a593Smuzhiyunlsm6dsm@6b {
44*4882a593Smuzhiyun	compatible = "st,lsm6dsm";
45*4882a593Smuzhiyun	reg = <0x6b>;
46*4882a593Smuzhiyun	interrupt-parent = <&gpio0>;
47*4882a593Smuzhiyun	interrupts = <0 IRQ_TYPE_EDGE_RISING>;
48*4882a593Smuzhiyun};
49