Path: blob/main/sys/contrib/device-tree/Bindings/iio/resolver/ad2s90.txt
48406 views
Analog Devices AD2S90 Resolver-to-Digital Converter12https://www.analog.com/en/products/ad2s90.html34Required properties:5- compatible: should be "adi,ad2s90"6- reg: SPI chip select number for the device7- spi-max-frequency: set maximum clock frequency, must be 8300008- spi-cpol and spi-cpha:9Either SPI mode (0,0) or (1,1) must be used, so specify none or both of10spi-cpha, spi-cpol.1112See for more details:13Documentation/devicetree/bindings/spi/spi-bus.txt1415Note about max frequency:16Chip's max frequency, as specified in its datasheet, is 2Mhz. But a 600ns17delay is expected between the application of a logic LO to CS and the18application of SCLK, as also specified. And since the delay is not19implemented in the spi code, to satisfy it, SCLK's period should be at most202 * 600ns, so the max frequency should be 1 / (2 * 6e-7), which gives21roughly 830000Hz.2223Example:24resolver@0 {25compatible = "adi,ad2s90";26reg = <0>;27spi-max-frequency = <830000>;28spi-cpol;29spi-cpha;30};313233