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: 175def4c47SEmmanuel Vadot enum: 185def4c47SEmmanuel Vadot - st,lsm6ds3 195def4c47SEmmanuel Vadot - st,lsm6ds3h 205def4c47SEmmanuel Vadot - st,lsm6dsl 215def4c47SEmmanuel Vadot - st,lsm6dsm 225def4c47SEmmanuel Vadot - st,ism330dlc 235def4c47SEmmanuel Vadot - st,lsm6dso 245def4c47SEmmanuel Vadot - st,asm330lhh 255def4c47SEmmanuel Vadot - st,lsm6dsox 265def4c47SEmmanuel Vadot - st,lsm6dsr 275def4c47SEmmanuel Vadot - st,lsm6ds3tr-c 285def4c47SEmmanuel Vadot - st,ism330dhcx 295def4c47SEmmanuel Vadot - st,lsm9ds1-imu 305def4c47SEmmanuel Vadot - st,lsm6ds0 315def4c47SEmmanuel Vadot - st,lsm6dsrx 325def4c47SEmmanuel Vadot - st,lsm6dst 335def4c47SEmmanuel Vadot - st,lsm6dsop 345def4c47SEmmanuel Vadot 355def4c47SEmmanuel Vadot reg: 365def4c47SEmmanuel Vadot maxItems: 1 375def4c47SEmmanuel Vadot 385def4c47SEmmanuel Vadot interrupts: 395def4c47SEmmanuel Vadot minItems: 1 405def4c47SEmmanuel Vadot maxItems: 2 415def4c47SEmmanuel Vadot description: 425def4c47SEmmanuel Vadot Supports up to 2 interrupt lines via the INT1 and INT2 pins. 435def4c47SEmmanuel Vadot 445def4c47SEmmanuel Vadot spi-max-frequency: true 455def4c47SEmmanuel Vadot 465def4c47SEmmanuel Vadot vdd-supply: 475def4c47SEmmanuel Vadot description: if defined provides VDD power to the sensor. 485def4c47SEmmanuel Vadot 495def4c47SEmmanuel Vadot vddio-supply: 505def4c47SEmmanuel Vadot description: if defined provides VDD IO power to the sensor. 515def4c47SEmmanuel Vadot 525def4c47SEmmanuel Vadot st,drdy-int-pin: 535def4c47SEmmanuel Vadot $ref: '/schemas/types.yaml#/definitions/uint32' 545def4c47SEmmanuel Vadot description: | 555def4c47SEmmanuel Vadot The pin on the package that will be used to signal data ready 565def4c47SEmmanuel Vadot enum: 575def4c47SEmmanuel Vadot - 1 585def4c47SEmmanuel Vadot - 2 595def4c47SEmmanuel Vadot 605def4c47SEmmanuel Vadot st,pullups: 615def4c47SEmmanuel Vadot type: boolean 625def4c47SEmmanuel Vadot description: enable/disable internal i2c controller pullup resistors. 635def4c47SEmmanuel Vadot 64*e67e8565SEmmanuel Vadot st,disable-sensor-hub: 65*e67e8565SEmmanuel Vadot type: boolean 66*e67e8565SEmmanuel Vadot description: 67*e67e8565SEmmanuel Vadot Enable/disable internal i2c controller slave autoprobing at bootstrap. 68*e67e8565SEmmanuel Vadot Disable sensor-hub is useful if i2c controller clock/data lines are 69*e67e8565SEmmanuel Vadot connected through a pull-up with other chip lines (e.g. SDO/SA0). 70*e67e8565SEmmanuel Vadot 715def4c47SEmmanuel Vadot drive-open-drain: 725def4c47SEmmanuel Vadot type: boolean 735def4c47SEmmanuel Vadot description: 745def4c47SEmmanuel Vadot The interrupt/data ready line will be configured as open drain, which 755def4c47SEmmanuel Vadot is useful if several sensors share the same interrupt line. 765def4c47SEmmanuel Vadot 775def4c47SEmmanuel Vadot wakeup-source: 785def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 795def4c47SEmmanuel Vadot 805def4c47SEmmanuel VadotadditionalProperties: false 815def4c47SEmmanuel Vadot 825def4c47SEmmanuel Vadotrequired: 835def4c47SEmmanuel Vadot - compatible 845def4c47SEmmanuel Vadot - reg 855def4c47SEmmanuel Vadot 865def4c47SEmmanuel Vadotexamples: 875def4c47SEmmanuel Vadot - | 885def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 895def4c47SEmmanuel Vadot i2c { 905def4c47SEmmanuel Vadot #address-cells = <1>; 915def4c47SEmmanuel Vadot #size-cells = <0>; 925def4c47SEmmanuel Vadot 935def4c47SEmmanuel Vadot imu@6b { 945def4c47SEmmanuel Vadot compatible = "st,lsm6dsm"; 955def4c47SEmmanuel Vadot reg = <0x6b>; 965def4c47SEmmanuel Vadot interrupt-parent = <&gpio0>; 975def4c47SEmmanuel Vadot interrupts = <0 IRQ_TYPE_EDGE_RISING>; 985def4c47SEmmanuel Vadot }; 995def4c47SEmmanuel Vadot }; 1005def4c47SEmmanuel Vadot... 101