Path: blob/master/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/imu/st,lsm6dsx.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: STM 6-axis (acc + gyro) IMU Mems sensors78maintainers:9- Lorenzo Bianconi <lorenzo@kernel.org>1011description:12Devices have both I2C and SPI interfaces.1314properties:15compatible:16oneOf:17- enum:18- st,lsm6ds319- st,lsm6ds3h20- st,lsm6dsl21- st,lsm6dsm22- st,ism330dlc23- st,lsm6dso24- st,asm330lhh25- st,lsm6dsox26- st,lsm6dsr27- st,lsm6ds3tr-c28- st,ism330dhcx29- st,lsm9ds1-imu30- st,lsm6ds031- st,lsm6dsrx32- st,lsm6dst33- st,lsm6dsop34- st,lsm6dsv35- st,lsm6dso16is36- items:37- enum:38- st,asm330lhhx39- st,asm330lhhxg140- const: st,lsm6dsr41- items:42- const: st,lsm6dstx43- const: st,lsm6dst44- items:45- const: st,lsm6dsv16x46- const: st,lsm6dsv47- items:48- const: st,ism330is49- const: st,lsm6dso16is50- items:51- const: st,asm330lhb52- const: st,asm330lhh5354reg:55maxItems: 15657interrupts:58minItems: 159maxItems: 260description:61Supports up to 2 interrupt lines via the INT1 and INT2 pins.6263vdd-supply:64description: if defined provides VDD power to the sensor.6566vddio-supply:67description: if defined provides VDD IO power to the sensor.6869st,drdy-int-pin:70$ref: /schemas/types.yaml#/definitions/uint3271description: |72The pin on the package that will be used to signal data ready73enum:74- 175- 27677st,pullups:78type: boolean79description: enable/disable internal i2c controller pullup resistors.8081st,disable-sensor-hub:82type: boolean83description:84Enable/disable internal i2c controller slave autoprobing at bootstrap.85Disable sensor-hub is useful if i2c controller clock/data lines are86connected through a pull-up with other chip lines (e.g. SDO/SA0).8788drive-open-drain:89type: boolean90description:91The interrupt/data ready line will be configured as open drain, which92is useful if several sensors share the same interrupt line.9394wakeup-source:95$ref: /schemas/types.yaml#/definitions/flag9697mount-matrix:98description: an optional 3x3 mounting rotation matrix99100required:101- compatible102- reg103104allOf:105- $ref: /schemas/iio/iio.yaml#106- $ref: /schemas/spi/spi-peripheral-props.yaml#107108unevaluatedProperties: false109110examples:111- |112#include <dt-bindings/interrupt-controller/irq.h>113i2c {114#address-cells = <1>;115#size-cells = <0>;116117imu@6b {118compatible = "st,lsm6dsm";119reg = <0x6b>;120interrupt-parent = <&gpio0>;121interrupts = <0 IRQ_TYPE_EDGE_RISING>;122};123};124...125126127