15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 25def4c47SEmmanuel Vadot%YAML 1.2 35def4c47SEmmanuel Vadot--- 45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/imu/st,lsm6dsx.yaml# 55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65def4c47SEmmanuel Vadot 75def4c47SEmmanuel Vadottitle: STM 6-axis (acc + gyro) IMU Mems sensors 85def4c47SEmmanuel Vadot 95def4c47SEmmanuel Vadotmaintainers: 105def4c47SEmmanuel Vadot - Lorenzo Bianconi <lorenzo@kernel.org> 115def4c47SEmmanuel Vadot 125def4c47SEmmanuel Vadotdescription: 135def4c47SEmmanuel Vadot Devices have both I2C and SPI interfaces. 145def4c47SEmmanuel Vadot 155def4c47SEmmanuel Vadotproperties: 165def4c47SEmmanuel Vadot compatible: 17d5b0e70fSEmmanuel Vadot oneOf: 18d5b0e70fSEmmanuel Vadot - enum: 195def4c47SEmmanuel Vadot - st,lsm6ds3 205def4c47SEmmanuel Vadot - st,lsm6ds3h 215def4c47SEmmanuel Vadot - st,lsm6dsl 225def4c47SEmmanuel Vadot - st,lsm6dsm 235def4c47SEmmanuel Vadot - st,ism330dlc 245def4c47SEmmanuel Vadot - st,lsm6dso 255def4c47SEmmanuel Vadot - st,asm330lhh 265def4c47SEmmanuel Vadot - st,lsm6dsox 275def4c47SEmmanuel Vadot - st,lsm6dsr 285def4c47SEmmanuel Vadot - st,lsm6ds3tr-c 295def4c47SEmmanuel Vadot - st,ism330dhcx 305def4c47SEmmanuel Vadot - st,lsm9ds1-imu 315def4c47SEmmanuel Vadot - st,lsm6ds0 325def4c47SEmmanuel Vadot - st,lsm6dsrx 335def4c47SEmmanuel Vadot - st,lsm6dst 345def4c47SEmmanuel Vadot - st,lsm6dsop 358bab661aSEmmanuel Vadot - st,lsm6dsv 368bab661aSEmmanuel Vadot - st,lsm6dso16is 37d5b0e70fSEmmanuel Vadot - items: 38*01950c46SEmmanuel Vadot - enum: 39*01950c46SEmmanuel Vadot - st,asm330lhhx 40*01950c46SEmmanuel Vadot - st,asm330lhhxg1 41d5b0e70fSEmmanuel Vadot - const: st,lsm6dsr 427ef62cebSEmmanuel Vadot - items: 437ef62cebSEmmanuel Vadot - const: st,lsm6dstx 447ef62cebSEmmanuel Vadot - const: st,lsm6dst 458bab661aSEmmanuel Vadot - items: 468bab661aSEmmanuel Vadot - const: st,lsm6dsv16x 478bab661aSEmmanuel Vadot - const: st,lsm6dsv 488bab661aSEmmanuel Vadot - items: 498bab661aSEmmanuel Vadot - const: st,ism330is 508bab661aSEmmanuel Vadot - const: st,lsm6dso16is 51fac71e4eSEmmanuel Vadot - items: 52fac71e4eSEmmanuel Vadot - const: st,asm330lhb 53fac71e4eSEmmanuel Vadot - const: st,asm330lhh 545def4c47SEmmanuel Vadot 555def4c47SEmmanuel Vadot reg: 565def4c47SEmmanuel Vadot maxItems: 1 575def4c47SEmmanuel Vadot 585def4c47SEmmanuel Vadot interrupts: 595def4c47SEmmanuel Vadot minItems: 1 605def4c47SEmmanuel Vadot maxItems: 2 615def4c47SEmmanuel Vadot description: 625def4c47SEmmanuel Vadot Supports up to 2 interrupt lines via the INT1 and INT2 pins. 635def4c47SEmmanuel Vadot 645def4c47SEmmanuel Vadot vdd-supply: 655def4c47SEmmanuel Vadot description: if defined provides VDD power to the sensor. 665def4c47SEmmanuel Vadot 675def4c47SEmmanuel Vadot vddio-supply: 685def4c47SEmmanuel Vadot description: if defined provides VDD IO power to the sensor. 695def4c47SEmmanuel Vadot 705def4c47SEmmanuel Vadot st,drdy-int-pin: 71cb7aa33aSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 725def4c47SEmmanuel Vadot description: | 735def4c47SEmmanuel Vadot The pin on the package that will be used to signal data ready 745def4c47SEmmanuel Vadot enum: 755def4c47SEmmanuel Vadot - 1 765def4c47SEmmanuel Vadot - 2 775def4c47SEmmanuel Vadot 785def4c47SEmmanuel Vadot st,pullups: 795def4c47SEmmanuel Vadot type: boolean 805def4c47SEmmanuel Vadot description: enable/disable internal i2c controller pullup resistors. 815def4c47SEmmanuel Vadot 82e67e8565SEmmanuel Vadot st,disable-sensor-hub: 83e67e8565SEmmanuel Vadot type: boolean 84e67e8565SEmmanuel Vadot description: 85e67e8565SEmmanuel Vadot Enable/disable internal i2c controller slave autoprobing at bootstrap. 86e67e8565SEmmanuel Vadot Disable sensor-hub is useful if i2c controller clock/data lines are 87e67e8565SEmmanuel Vadot connected through a pull-up with other chip lines (e.g. SDO/SA0). 88e67e8565SEmmanuel Vadot 895def4c47SEmmanuel Vadot drive-open-drain: 905def4c47SEmmanuel Vadot type: boolean 915def4c47SEmmanuel Vadot description: 925def4c47SEmmanuel Vadot The interrupt/data ready line will be configured as open drain, which 935def4c47SEmmanuel Vadot is useful if several sensors share the same interrupt line. 945def4c47SEmmanuel Vadot 955def4c47SEmmanuel Vadot wakeup-source: 965def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 975def4c47SEmmanuel Vadot 9884943d6fSEmmanuel Vadot mount-matrix: 9984943d6fSEmmanuel Vadot description: an optional 3x3 mounting rotation matrix 10084943d6fSEmmanuel Vadot 1015def4c47SEmmanuel Vadotrequired: 1025def4c47SEmmanuel Vadot - compatible 1035def4c47SEmmanuel Vadot - reg 1045def4c47SEmmanuel Vadot 1057ef62cebSEmmanuel VadotallOf: 106f126890aSEmmanuel Vadot - $ref: /schemas/iio/iio.yaml# 1077ef62cebSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 1087ef62cebSEmmanuel Vadot 1097ef62cebSEmmanuel VadotunevaluatedProperties: false 1107ef62cebSEmmanuel Vadot 1115def4c47SEmmanuel Vadotexamples: 1125def4c47SEmmanuel Vadot - | 1135def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 1145def4c47SEmmanuel Vadot i2c { 1155def4c47SEmmanuel Vadot #address-cells = <1>; 1165def4c47SEmmanuel Vadot #size-cells = <0>; 1175def4c47SEmmanuel Vadot 1185def4c47SEmmanuel Vadot imu@6b { 1195def4c47SEmmanuel Vadot compatible = "st,lsm6dsm"; 1205def4c47SEmmanuel Vadot reg = <0x6b>; 1215def4c47SEmmanuel Vadot interrupt-parent = <&gpio0>; 1225def4c47SEmmanuel Vadot interrupts = <0 IRQ_TYPE_EDGE_RISING>; 1235def4c47SEmmanuel Vadot }; 1245def4c47SEmmanuel Vadot }; 1255def4c47SEmmanuel Vadot... 126