STM 6-axis (acc + gyro) IMU Mems sensors
Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/st,lsm6dsx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
Devices have both I2C and SPI interfaces.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"st,lsm6ds3","st,lsm6ds3h","st,lsm6dsl","st,lsm6dsm","st,ism330dlc","st,lsm6dso","st,asm330lhh","st,lsm6dsox","st,lsm6dsr","st,lsm6ds3tr-c","st,ism330dhcx","st,lsm9ds1-imu","st,lsm6ds0","st,lsm6dsrx","st,lsm6dst","st,lsm6dsop","st,lsm6dsv","st,lsm6dso16is"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"st,lsm6dsr"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"st,lsm6dstx"Item 2
Exact value (
const):"st,lsm6dst"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"st,lsm6dsv16x"Item 2
Exact value (
const):"st,lsm6dsv"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"st,ism330is"Item 2
Exact value (
const):"st,lsm6dso16is"
Rule 6
Array item rules (
items)Item 1
Exact value (
const):"st,asm330lhb"Item 2
Exact value (
const):"st,asm330lhh"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Supports up to 2 interrupt lines via the INT1 and INT2 pins.
vdd-supply — not listed as required here #
if defined provides VDD power to the sensor.
vddio-supply — not listed as required here #
if defined provides VDD IO power to the sensor.
st,drdy-int-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The pin on the package that will be used to signal data ready
st,pullups — not listed as required here #
Value type (type): "boolean"
enable/disable internal i2c controller pullup resistors.
st,disable-sensor-hub — not listed as required here #
Value type (type): "boolean"
Enable/disable internal i2c controller slave autoprobing at bootstrap. Disable sensor-hub is useful if i2c controller clock/data lines are connected through a pull-up with other chip lines (e.g. SDO/SA0).
drive-open-drain — not listed as required here #
Value type (type): "boolean"
The interrupt/data ready line will be configured as open drain, which is useful if several sensors share the same interrupt line.
wakeup-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
mount-matrix — not listed as required here #
an optional 3x3 mounting rotation matrix
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/iio/iio.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
imu@6b {
compatible = "st,lsm6dsm";
reg = <0x6b>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)