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