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