xref: /linux/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml (revision e7bae9bbc2674a03ca89143e677bcb400b37c739)
1*e7bae9bbSJonathan Cameron# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*e7bae9bbSJonathan Cameron%YAML 1.2
3*e7bae9bbSJonathan Cameron---
4*e7bae9bbSJonathan Cameron$id: http://devicetree.org/schemas/iio/resolver/adi,ad2s90.yaml#
5*e7bae9bbSJonathan Cameron$schema: http://devicetree.org/meta-schemas/core.yaml#
6*e7bae9bbSJonathan Cameron
7*e7bae9bbSJonathan Camerontitle: Analog Devices AD2S90 Resolver-to-Digital Converter
8*e7bae9bbSJonathan Cameron
9*e7bae9bbSJonathan Cameronmaintainers:
10*e7bae9bbSJonathan Cameron  - Matheus Tavares <matheus.bernardino@usp.br>
11*e7bae9bbSJonathan Cameron
12*e7bae9bbSJonathan Camerondescription: |
13*e7bae9bbSJonathan Cameron  Datasheet: https://www.analog.com/en/products/ad2s90.html
14*e7bae9bbSJonathan Cameron
15*e7bae9bbSJonathan Cameronproperties:
16*e7bae9bbSJonathan Cameron  compatible:
17*e7bae9bbSJonathan Cameron    const: adi,ad2s90
18*e7bae9bbSJonathan Cameron
19*e7bae9bbSJonathan Cameron  reg:
20*e7bae9bbSJonathan Cameron    maxItems: 1
21*e7bae9bbSJonathan Cameron
22*e7bae9bbSJonathan Cameron  spi-max-frequency:
23*e7bae9bbSJonathan Cameron    maximum: 830000
24*e7bae9bbSJonathan Cameron    description: |
25*e7bae9bbSJonathan Cameron      Chip's max frequency, as specified in its datasheet, is 2Mhz. But a 600ns
26*e7bae9bbSJonathan Cameron      delay is expected between the application of a logic LO to CS and the
27*e7bae9bbSJonathan Cameron      application of SCLK, as also specified. And since the delay is not
28*e7bae9bbSJonathan Cameron      implemented in the spi code, to satisfy it, SCLK's period should be at
29*e7bae9bbSJonathan Cameron      most 2 * 600ns, so the max frequency should be 1 / (2 * 6e-7), which gives
30*e7bae9bbSJonathan Cameron      roughly 830000Hz.
31*e7bae9bbSJonathan Cameron
32*e7bae9bbSJonathan Cameron  spi-cpol: true
33*e7bae9bbSJonathan Cameron
34*e7bae9bbSJonathan Cameron  spi-cpha: true
35*e7bae9bbSJonathan Cameron
36*e7bae9bbSJonathan CameronadditionalProperties: false
37*e7bae9bbSJonathan Cameron
38*e7bae9bbSJonathan Cameronrequired:
39*e7bae9bbSJonathan Cameron  - compatible
40*e7bae9bbSJonathan Cameron  - reg
41*e7bae9bbSJonathan Cameron
42*e7bae9bbSJonathan Camerondependencies:
43*e7bae9bbSJonathan Cameron  spi-cpol: [ spi-cpha ]
44*e7bae9bbSJonathan Cameron  spi-cpha: [ spi-cpol ]
45*e7bae9bbSJonathan Cameron
46*e7bae9bbSJonathan Cameronexamples:
47*e7bae9bbSJonathan Cameron  - |
48*e7bae9bbSJonathan Cameron    spi {
49*e7bae9bbSJonathan Cameron        #address-cells = <1>;
50*e7bae9bbSJonathan Cameron        #size-cells = <0>;
51*e7bae9bbSJonathan Cameron
52*e7bae9bbSJonathan Cameron        resolver@0 {
53*e7bae9bbSJonathan Cameron            compatible = "adi,ad2s90";
54*e7bae9bbSJonathan Cameron            reg = <0>;
55*e7bae9bbSJonathan Cameron            spi-max-frequency = <830000>;
56*e7bae9bbSJonathan Cameron            spi-cpol;
57*e7bae9bbSJonathan Cameron            spi-cpha;
58*e7bae9bbSJonathan Cameron        };
59*e7bae9bbSJonathan Cameron    };
60*e7bae9bbSJonathan Cameron...
61