xref: /freebsd/sys/contrib/device-tree/Bindings/iio/imu/st,lsm6dsx.yaml (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
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:
17*d5b0e70fSEmmanuel Vadot    oneOf:
18*d5b0e70fSEmmanuel 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
35*d5b0e70fSEmmanuel Vadot      - items:
36*d5b0e70fSEmmanuel Vadot          - const: st,asm330lhhx
37*d5b0e70fSEmmanuel Vadot          - const: st,lsm6dsr
385def4c47SEmmanuel Vadot
395def4c47SEmmanuel Vadot  reg:
405def4c47SEmmanuel Vadot    maxItems: 1
415def4c47SEmmanuel Vadot
425def4c47SEmmanuel Vadot  interrupts:
435def4c47SEmmanuel Vadot    minItems: 1
445def4c47SEmmanuel Vadot    maxItems: 2
455def4c47SEmmanuel Vadot    description:
465def4c47SEmmanuel Vadot      Supports up to 2 interrupt lines via the INT1 and INT2 pins.
475def4c47SEmmanuel Vadot
485def4c47SEmmanuel Vadot  spi-max-frequency: true
495def4c47SEmmanuel Vadot
505def4c47SEmmanuel Vadot  vdd-supply:
515def4c47SEmmanuel Vadot    description: if defined provides VDD power to the sensor.
525def4c47SEmmanuel Vadot
535def4c47SEmmanuel Vadot  vddio-supply:
545def4c47SEmmanuel Vadot    description: if defined provides VDD IO power to the sensor.
555def4c47SEmmanuel Vadot
565def4c47SEmmanuel Vadot  st,drdy-int-pin:
575def4c47SEmmanuel Vadot    $ref: '/schemas/types.yaml#/definitions/uint32'
585def4c47SEmmanuel Vadot    description: |
595def4c47SEmmanuel Vadot      The pin on the package that will be used to signal data ready
605def4c47SEmmanuel Vadot    enum:
615def4c47SEmmanuel Vadot      - 1
625def4c47SEmmanuel Vadot      - 2
635def4c47SEmmanuel Vadot
645def4c47SEmmanuel Vadot  st,pullups:
655def4c47SEmmanuel Vadot    type: boolean
665def4c47SEmmanuel Vadot    description: enable/disable internal i2c controller pullup resistors.
675def4c47SEmmanuel Vadot
68e67e8565SEmmanuel Vadot  st,disable-sensor-hub:
69e67e8565SEmmanuel Vadot    type: boolean
70e67e8565SEmmanuel Vadot    description:
71e67e8565SEmmanuel Vadot      Enable/disable internal i2c controller slave autoprobing at bootstrap.
72e67e8565SEmmanuel Vadot      Disable sensor-hub is useful if i2c controller clock/data lines are
73e67e8565SEmmanuel Vadot      connected through a pull-up with other chip lines (e.g. SDO/SA0).
74e67e8565SEmmanuel Vadot
755def4c47SEmmanuel Vadot  drive-open-drain:
765def4c47SEmmanuel Vadot    type: boolean
775def4c47SEmmanuel Vadot    description:
785def4c47SEmmanuel Vadot      The interrupt/data ready line will be configured as open drain, which
795def4c47SEmmanuel Vadot      is useful if several sensors share the same interrupt line.
805def4c47SEmmanuel Vadot
815def4c47SEmmanuel Vadot  wakeup-source:
825def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
835def4c47SEmmanuel Vadot
845def4c47SEmmanuel VadotadditionalProperties: false
855def4c47SEmmanuel Vadot
865def4c47SEmmanuel Vadotrequired:
875def4c47SEmmanuel Vadot  - compatible
885def4c47SEmmanuel Vadot  - reg
895def4c47SEmmanuel Vadot
905def4c47SEmmanuel Vadotexamples:
915def4c47SEmmanuel Vadot  - |
925def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
935def4c47SEmmanuel Vadot    i2c {
945def4c47SEmmanuel Vadot        #address-cells = <1>;
955def4c47SEmmanuel Vadot        #size-cells = <0>;
965def4c47SEmmanuel Vadot
975def4c47SEmmanuel Vadot        imu@6b {
985def4c47SEmmanuel Vadot            compatible = "st,lsm6dsm";
995def4c47SEmmanuel Vadot            reg = <0x6b>;
1005def4c47SEmmanuel Vadot            interrupt-parent = <&gpio0>;
1015def4c47SEmmanuel Vadot            interrupts = <0 IRQ_TYPE_EDGE_RISING>;
1025def4c47SEmmanuel Vadot        };
1035def4c47SEmmanuel Vadot    };
1045def4c47SEmmanuel Vadot...
105