Skip to content

Commit a032b92

Browse files
nunojsajic23
authored andcommitted
dt-bindings: adc: axi-adc: update bindings for backend framework
'adi,adc-dev' is now deprecated and must not be used anymore. Hence, also remove it from being required. The reason why it's being deprecated is because the axi-adc CORE is now an IIO service provider hardware (IIO backends) for consumers to make use of. Before, the logic with 'adi,adc-dev' was the opposite (it was kind of consumer referencing other nodes/devices) and that proved to be wrong and to not scale. Now, IIO consumers of this hardware are expected to reference it using the io-backends property. Hence, the new '#io-backend-cells' is being added so the device is easily identified as a provider. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240210-iio-backend-v11-2-f5242a5fb42a@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 49bb383 commit a032b92

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Documentation/devicetree/bindings/iio/adc/adi,axi-adc.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ properties:
3939
$ref: /schemas/types.yaml#/definitions/phandle
4040
description:
4141
A reference to a the actual ADC to which this FPGA ADC interfaces to.
42+
deprecated: true
43+
44+
'#io-backend-cells':
45+
const: 0
4246

4347
required:
4448
- compatible
4549
- dmas
4650
- reg
47-
- adi,adc-dev
4851

4952
additionalProperties: false
5053

@@ -55,7 +58,6 @@ examples:
5558
reg = <0x44a00000 0x10000>;
5659
dmas = <&rx_dma 0>;
5760
dma-names = "rx";
58-
59-
adi,adc-dev = <&spi_adc>;
61+
#io-backend-cells = <0>;
6062
};
6163
...

0 commit comments

Comments
 (0)