1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/imu/st,lsm6dsx.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: STM 6-axis (acc + gyro) IMU Mems sensors 8 9maintainers: 10 - Lorenzo Bianconi <lorenzo@kernel.org> 11 12description: 13 Devices have both I2C and SPI interfaces. 14 15properties: 16 compatible: 17 enum: 18 - st,lsm6ds3 19 - st,lsm6ds3h 20 - st,lsm6dsl 21 - st,lsm6dsm 22 - st,ism330dlc 23 - st,lsm6dso 24 - st,asm330lhh 25 - st,lsm6dsox 26 - st,lsm6dsr 27 - st,lsm6ds3tr-c 28 - st,ism330dhcx 29 - st,lsm9ds1-imu 30 - st,lsm6ds0 31 - st,lsm6dsrx 32 - st,lsm6dst 33 - st,lsm6dsop 34 35 reg: 36 maxItems: 1 37 38 interrupts: 39 minItems: 1 40 maxItems: 2 41 description: 42 Supports up to 2 interrupt lines via the INT1 and INT2 pins. 43 44 spi-max-frequency: true 45 46 vdd-supply: 47 description: if defined provides VDD power to the sensor. 48 49 vddio-supply: 50 description: if defined provides VDD IO power to the sensor. 51 52 st,drdy-int-pin: 53 $ref: '/schemas/types.yaml#/definitions/uint32' 54 description: | 55 The pin on the package that will be used to signal data ready 56 enum: 57 - 1 58 - 2 59 60 st,pullups: 61 type: boolean 62 description: enable/disable internal i2c controller pullup resistors. 63 64 st,disable-sensor-hub: 65 type: boolean 66 description: 67 Enable/disable internal i2c controller slave autoprobing at bootstrap. 68 Disable sensor-hub is useful if i2c controller clock/data lines are 69 connected through a pull-up with other chip lines (e.g. SDO/SA0). 70 71 drive-open-drain: 72 type: boolean 73 description: 74 The interrupt/data ready line will be configured as open drain, which 75 is useful if several sensors share the same interrupt line. 76 77 wakeup-source: 78 $ref: /schemas/types.yaml#/definitions/flag 79 80additionalProperties: false 81 82required: 83 - compatible 84 - reg 85 86examples: 87 - | 88 #include <dt-bindings/interrupt-controller/irq.h> 89 i2c { 90 #address-cells = <1>; 91 #size-cells = <0>; 92 93 imu@6b { 94 compatible = "st,lsm6dsm"; 95 reg = <0x6b>; 96 interrupt-parent = <&gpio0>; 97 interrupts = <0 IRQ_TYPE_EDGE_RISING>; 98 }; 99 }; 100... 101