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.
Signed-off-by: Ioana Risteiu <Ioana.Risteiu@analog.com>
---
.../bindings/iio/adc/adi,ad7779.yaml | 35 ++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml
index 044f92f39cfa..4a212c8bc9d3 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml
@@ -80,11 +80,27 @@ properties:
reset-gpios:
maxItems: 1
+ io-backends:
+ maxItems: 1
+
+ adi,num-lanes:
+ description:
+ Number of lanes on which the data is sent on the output when the data
+ output interface is used.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [1, 2, 4]
+ default: 4
+
required:
- compatible
- reg
- clocks
- - interrupts
+
+oneOf:
+ - required:
+ - interrupts
+ - required:
+ - io-backends
unevaluatedProperties: false
@@ -107,4 +123,21 @@ examples:
clocks = <&adc_clk>;
};
};
+
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ adc@0 {
+ compatible = "adi,ad7779";
+ reg = <0>;
+ start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>;
+ reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>;
+ clocks = <&adc_clk>;
+ io-backends = <&iio_backend>;
+ adi,num-lanes = <4>;
+ };
+ };
...
--
2.47.2
On 8/18/25 8:12 AM, Ioana Risteiu wrote: > 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. > > Signed-off-by: Ioana Risteiu <Ioana.Risteiu@analog.com> > --- > .../bindings/iio/adc/adi,ad7779.yaml | 35 ++++++++++++++++++- > 1 file changed, 34 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml > index 044f92f39cfa..4a212c8bc9d3 100644 > --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml > @@ -80,11 +80,27 @@ properties: > reset-gpios: > maxItems: 1 > > + io-backends: > + maxItems: 1 > + > + adi,num-lanes: > + description: > + Number of lanes on which the data is sent on the output when the data > + output interface is used. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [1, 2, 4] > + default: 4 Isn't 0 lanes wired up an option? I.e. it is possible to use the chip in SPI-only mode. So it seems like 0 should be the default.
On 18/08/2025 15:12, Ioana Risteiu wrote: > 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. > > Signed-off-by: Ioana Risteiu <Ioana.Risteiu@analog.com> > --- Nothing changed? No improvements? No review? Your changelog should explain why you drop review and why you disagree with comments. BTW, where is the changelog in the first place? Best regards, Krzysztof
© 2016 - 2026 Red Hat, Inc.