Analog Devices ADIS16475 and similar IMUs

Schema identifier ($id): "http://devicetree.org/schemas/iio/imu/adi,adis16475.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"

Analog Devices ADIS16475 and similar IMUs https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16475.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,adis16475-1", "adi,adis16475-2", "adi,adis16475-3", "adi,adis16477-1", "adi,adis16477-2", "adi,adis16477-3", "adi,adis16470", "adi,adis16465-1", "adi,adis16465-2", "adi,adis16465-3", "adi,adis16467-1", "adi,adis16467-2", "adi,adis16467-3", "adi,adis16500", "adi,adis16501", "adi,adis16505-1", "adi,adis16505-2", "adi,adis16505-3", "adi,adis16507-1", "adi,adis16507-2", "adi,adis16507-3", "adi,adis16575-2", "adi,adis16575-3", "adi,adis16576-2", "adi,adis16576-3", "adi,adis16577-2", "adi,adis16577-3"

reg — required here #

Maximum number of items (maxItems): 1

spi-cpha — required here #

true — No constraints added by this property rule.

spi-cpol — required here #

true — No constraints added by this property rule.

spi-max-frequency — not listed as required here #

Maximum value (maximum): 2000000

spi-cs-inactive-delay-ns — not listed as required here #

Minimum value (minimum): 16000

Default value (default): 16000

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Must be the device tree identifier of the RESET pin. If specified, it will be asserted during driver probe. As the line is active low, it should be marked GPIO_ACTIVE_LOW.

Maximum number of items (maxItems): 1

adi,sync-mode — not listed as required here #

Configures the device SYNC pin. The following modes are supported 0 - output_sync 1 - direct_sync 2 - scaled_sync 3 - pulse_sync

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 3

Required in this object (required): "compatible", "reg", "interrupts", "spi-cpha", "spi-cpol"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,adis16500", "adi,adis16501", "adi,adis16505-1", "adi,adis16505-2", "adi,adis16505-3", "adi,adis16507-1", "adi,adis16507-2", "adi,adis16507-3", "adi,adis16575-2", "adi,adis16575-3", "adi,adis16576-2", "adi,adis16576-3", "adi,adis16577-2", "adi,adis16577-3"

When the condition matches (then) #

Properties and child nodes (properties)

adi,sync-mode — not listed as required here

Minimum value (minimum): 0

Maximum value (maximum): 2

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

adi,sync-mode — not listed as required here

Allowed values (enum): 1, 2, 3

When the condition matches (then) #

Property dependencies (dependencies)

adi,sync-mode — applies when this property is present

Also requires: "clocks"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,adis16575-2", "adi,adis16575-3", "adi,adis16576-2", "adi,adis16576-3", "adi,adis16577-2", "adi,adis16577-3"

When the condition matches (then) #

Properties and child nodes (properties)

spi-max-frequency — not listed as required here

Maximum value (maximum): 15000000

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

    adis16475: adis16475-3@0 {
        compatible = "adi,adis16475-3";
        reg = <0>;
        spi-cpha;
        spi-cpol;
        spi-max-frequency = <2000000>;
        interrupts = <4 IRQ_TYPE_EDGE_RISING>;
        interrupt-parent = <&gpio>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page