Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: adc: adi,ad4000: Add PulSAR

Extend the AD4000 series device tree documentation to also describe
PulSAR devices.

The single-channel series of PulSAR devices is similar to the AD4000 series
except PulSAR devices sample at slower rates and don't have a
configuration register. Because PulSAR devices don't have a configuration
register, they don't support all features of AD4000 devices and thus fewer
interfaces are provided to user space. Also, while AD4000 may have their
SDI pin connected to SPI host MOSI line, PulSAR SDI pin is never connected
to MOSI.

Some devices within the PulSAR series are just faster versions of others.
>From fastest to slowest, AD7980, AD7988-5, AD7686, AD7685, and AD7988-1 are
all 16-bit pseudo-differential pin-for-pin compatible ADCs. Devices that
only vary on the sample rate are documented with a common fallback
compatible.

Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/cc05f1471c409ab38722cd0e80fd5857ff9ce5db.1733147444.git.marcelo.schmitt@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Marcelo Schmitt and committed by
Jonathan Cameron
c54b9094 22ccb0a1

+62 -13
+62 -13
Documentation/devicetree/bindings/iio/adc/adi,ad4000.yaml
··· 19 19 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4020-4021-4022.pdf 20 20 https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4001.pdf 21 21 https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4003.pdf 22 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7685.pdf 23 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7686.pdf 24 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7687.pdf 25 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7688.pdf 26 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7690.pdf 27 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7691.pdf 28 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7693.pdf 29 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7942.pdf 30 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7946.pdf 31 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7980.pdf 32 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7982.pdf 33 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7983.pdf 34 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7984.pdf 35 + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7988-1_7988-5.pdf 22 36 23 37 $ref: /schemas/spi/spi-peripheral-props.yaml# 24 38 25 39 properties: 26 40 compatible: 27 41 oneOf: 28 - - const: adi,ad4000 42 + - enum: 43 + - adi,ad4000 44 + - adi,ad4001 45 + - adi,ad4002 46 + - adi,ad4003 47 + - adi,ad4020 48 + - adi,adaq4001 49 + - adi,adaq4003 50 + - adi,ad7687 51 + - adi,ad7691 52 + - adi,ad7942 53 + - adi,ad7946 54 + - adi,ad7983 29 55 - items: 30 56 - enum: 31 57 - adi,ad4004 32 58 - adi,ad4008 33 59 - const: adi,ad4000 34 - 35 - - const: adi,ad4001 36 60 - items: 37 61 - enum: 38 62 - adi,ad4005 39 63 - const: adi,ad4001 40 - 41 - - const: adi,ad4002 42 64 - items: 43 65 - enum: 44 66 - adi,ad4006 45 67 - adi,ad4010 46 68 - const: adi,ad4002 47 - 48 - - const: adi,ad4003 49 69 - items: 50 70 - enum: 51 71 - adi,ad4007 52 72 - adi,ad4011 53 73 - const: adi,ad4003 54 - 55 - - const: adi,ad4020 56 74 - items: 57 75 - enum: 58 76 - adi,ad4021 59 77 - adi,ad4022 60 78 - const: adi,ad4020 61 - 62 - - const: adi,adaq4001 63 - 64 - - const: adi,adaq4003 79 + - items: 80 + - enum: 81 + - adi,ad7685 82 + - adi,ad7686 83 + - adi,ad7980 84 + - adi,ad7988-1 85 + - adi,ad7988-5 86 + - const: adi,ad7983 87 + - items: 88 + - enum: 89 + - adi,ad7688 90 + - adi,ad7693 91 + - const: adi,ad7687 92 + - items: 93 + - enum: 94 + - adi,ad7690 95 + - adi,ad7982 96 + - adi,ad7984 97 + - const: adi,ad7691 65 98 66 99 reg: 67 100 maxItems: 1 ··· 166 133 - ref-supply 167 134 168 135 allOf: 136 + # Single-channel PulSAR devices have SDI either tied to VIO, GND, or host CS. 137 + - if: 138 + properties: 139 + compatible: 140 + contains: 141 + enum: 142 + - adi,ad7687 143 + - adi,ad7691 144 + - adi,ad7942 145 + - adi,ad7946 146 + - adi,ad7983 147 + then: 148 + properties: 149 + adi,sdi-pin: 150 + enum: [ high, low, cs ] 151 + default: cs 169 152 # The configuration register can only be accessed if SDI is connected to MOSI 170 153 - if: 171 154 required: