15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 25def4c47SEmmanuel Vadot%YAML 1.2 35def4c47SEmmanuel Vadot--- 45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/resolver/adi,ad2s90.yaml# 55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65def4c47SEmmanuel Vadot 75def4c47SEmmanuel Vadottitle: Analog Devices AD2S90 Resolver-to-Digital Converter 85def4c47SEmmanuel Vadot 95def4c47SEmmanuel Vadotmaintainers: 105def4c47SEmmanuel Vadot - Matheus Tavares <matheus.bernardino@usp.br> 115def4c47SEmmanuel Vadot 125def4c47SEmmanuel Vadotdescription: | 135def4c47SEmmanuel Vadot Datasheet: https://www.analog.com/en/products/ad2s90.html 145def4c47SEmmanuel Vadot 155def4c47SEmmanuel Vadotproperties: 165def4c47SEmmanuel Vadot compatible: 175def4c47SEmmanuel Vadot const: adi,ad2s90 185def4c47SEmmanuel Vadot 195def4c47SEmmanuel Vadot reg: 205def4c47SEmmanuel Vadot maxItems: 1 215def4c47SEmmanuel Vadot 225def4c47SEmmanuel Vadot spi-max-frequency: 235def4c47SEmmanuel Vadot maximum: 830000 245def4c47SEmmanuel Vadot description: | 255def4c47SEmmanuel Vadot Chip's max frequency, as specified in its datasheet, is 2Mhz. But a 600ns 265def4c47SEmmanuel Vadot delay is expected between the application of a logic LO to CS and the 275def4c47SEmmanuel Vadot application of SCLK, as also specified. And since the delay is not 285def4c47SEmmanuel Vadot implemented in the spi code, to satisfy it, SCLK's period should be at 295def4c47SEmmanuel Vadot most 2 * 600ns, so the max frequency should be 1 / (2 * 6e-7), which gives 305def4c47SEmmanuel Vadot roughly 830000Hz. 315def4c47SEmmanuel Vadot 325def4c47SEmmanuel Vadot spi-cpol: true 335def4c47SEmmanuel Vadot 345def4c47SEmmanuel Vadot spi-cpha: true 355def4c47SEmmanuel Vadot 365def4c47SEmmanuel Vadotrequired: 375def4c47SEmmanuel Vadot - compatible 385def4c47SEmmanuel Vadot - reg 395def4c47SEmmanuel Vadot 405def4c47SEmmanuel Vadotdependencies: 415def4c47SEmmanuel Vadot spi-cpol: [ spi-cpha ] 425def4c47SEmmanuel Vadot spi-cpha: [ spi-cpol ] 435def4c47SEmmanuel Vadot 44*8bab661aSEmmanuel VadotallOf: 45*8bab661aSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 46*8bab661aSEmmanuel Vadot 47*8bab661aSEmmanuel VadotunevaluatedProperties: false 48*8bab661aSEmmanuel Vadot 495def4c47SEmmanuel Vadotexamples: 505def4c47SEmmanuel Vadot - | 515def4c47SEmmanuel Vadot spi { 525def4c47SEmmanuel Vadot #address-cells = <1>; 535def4c47SEmmanuel Vadot #size-cells = <0>; 545def4c47SEmmanuel Vadot 555def4c47SEmmanuel Vadot resolver@0 { 565def4c47SEmmanuel Vadot compatible = "adi,ad2s90"; 575def4c47SEmmanuel Vadot reg = <0>; 585def4c47SEmmanuel Vadot spi-max-frequency = <830000>; 595def4c47SEmmanuel Vadot spi-cpol; 605def4c47SEmmanuel Vadot spi-cpha; 615def4c47SEmmanuel Vadot }; 625def4c47SEmmanuel Vadot }; 635def4c47SEmmanuel Vadot... 64