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: add IIO backend support

Add the generic io-backends property to the AD7779 binding to enable
support for the IIO backend framework.

Also add the adi,num-lanes property to set the number of lanes used by
AD7779.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Ioana Risteiu <Ioana.Risteiu@analog.com>
Link: https://patch.msgid.link/20250825221355.6214-3-Ioana.Risteiu@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Ioana Risteiu and committed by
Jonathan Cameron
a9ee7101 d54d99d0

+43 -1
+43 -1
Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml
··· 80 80 reset-gpios: 81 81 maxItems: 1 82 82 83 + io-backends: 84 + maxItems: 1 85 + 86 + adi,num-lanes: 87 + description: 88 + Number of lanes on which the data is sent on the output when the data 89 + output interface is used. 90 + $ref: /schemas/types.yaml#/definitions/uint32 91 + enum: [1, 2, 4] 92 + default: 4 93 + 83 94 required: 84 95 - compatible 85 96 - reg 86 97 - clocks 87 - - interrupts 98 + 99 + allOf: 100 + - if: 101 + not: 102 + required: 103 + - io-backends 104 + then: 105 + properties: 106 + adi,num-lanes: false 107 + 108 + oneOf: 109 + - required: 110 + - interrupts 111 + - required: 112 + - io-backends 88 113 89 114 unevaluatedProperties: false 90 115 ··· 130 105 interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>; 131 106 interrupt-names = "adc_rdy"; 132 107 clocks = <&adc_clk>; 108 + }; 109 + }; 110 + 111 + - | 112 + #include <dt-bindings/gpio/gpio.h> 113 + spi { 114 + #address-cells = <1>; 115 + #size-cells = <0>; 116 + 117 + adc@0 { 118 + compatible = "adi,ad7779"; 119 + reg = <0>; 120 + start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>; 121 + reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>; 122 + clocks = <&adc_clk>; 123 + io-backends = <&iio_backend>; 124 + adi,num-lanes = <4>; 133 125 }; 134 126 }; 135 127 ...