Analog Devices AD2S90 Resolver-to-Digital Converter

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

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

Maintainers (maintainers): "Matheus Tavares <matheus.bernardino@usp.br>"

Datasheet: https://www.analog.com/en/products/ad2s90.html

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "adi,ad2s90"

reg — required here #

Maximum number of items (maxItems): 1

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

Maximum value (maximum): 830000

Chip's max frequency, as specified in its datasheet, is 2Mhz. But a 600ns delay is expected between the application of a logic LO to CS and the application of SCLK, as also specified. And since the delay is not implemented in the spi code, to satisfy it, SCLK's period should be at most 2 * 600ns, so the max frequency should be 1 / (2 * 6e-7), which gives roughly 830000Hz.

spi-cpol — not listed as required here #

true — No constraints added by this property rule.

spi-cpha — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg"

Property dependencies (dependencies) #

spi-cpol — applies when this property is present #

Also requires: "spi-cpha"

spi-cpha — applies when this property is present #

Also requires: "spi-cpol"

All of these rules must match (allOf) #

Rule 1 #

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) #

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    resolver@0 {
        compatible = "adi,ad2s90";
        reg = <0>;
        spi-max-frequency = <830000>;
        spi-cpol;
        spi-cpha;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page