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,ad7380: add spi-rx-bus-width property

Add spi-rx-bus-width property to describe how many SDO lines are wired
up on the ADC. These chips are simultaneous sampling ADCs and have one
SDO line per channel, either 2 or 4 total depending on the part number.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
63670c90 5cf5654b

+23
+23
Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml
··· 62 62 spi-cpol: true 63 63 spi-cpha: true 64 64 65 + spi-rx-bus-width: 66 + maxItems: 4 67 + items: 68 + maximum: 1 69 + 65 70 vcc-supply: 66 71 description: A 3V to 3.6V supply that powers the chip. 67 72 ··· 165 160 unevaluatedProperties: false 166 161 167 162 allOf: 163 + # 2-channel chips only have two SDO lines 164 + - if: 165 + properties: 166 + compatible: 167 + enum: 168 + - adi,ad7380 169 + - adi,ad7381 170 + - adi,ad7383 171 + - adi,ad7384 172 + - adi,ad7386 173 + - adi,ad7387 174 + - adi,ad7388 175 + then: 176 + properties: 177 + spi-rx-bus-width: 178 + maxItems: 2 179 + 168 180 # pseudo-differential chips require common mode voltage supplies, 169 181 # true differential chips don't use them 170 182 - if: ··· 306 284 spi-cpol; 307 285 spi-cpha; 308 286 spi-max-frequency = <80000000>; 287 + spi-rx-bus-width = <1>, <1>, <1>, <1>; 309 288 310 289 interrupts = <27 IRQ_TYPE_EDGE_FALLING>; 311 290 interrupt-parent = <&gpio0>;