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