st_lsm6dsx.txt 1.3 KB

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