Skip to content

Commit 425cb00

Browse files
committed
dt-bindings: iio: adc: AD9213 yaml documentation
This adds device tree bindings for the AD9213 ADC. Signed-off-by: George Mois <george.mois@analog.com>
1 parent bfefbef commit 425cb00

File tree

1 file changed

+142
-0
lines changed

1 file changed

+142
-0
lines changed
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
# Copyright 2025 Analog Devices Inc.
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/iio/adc/adi,ad9213.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Analog Devices AD9213 device driver
9+
10+
maintainers:
11+
- George Mois <george.mois@analog.com>
12+
13+
description: |
14+
Bindings for the Analog Devices AD9213 ADC device. Datasheet can be found
15+
here:
16+
https://www.analog.com/media/en/technical-documentation/data-sheets/ad9213.pdf
17+
18+
properties:
19+
compatible:
20+
enum:
21+
- adi,ad9213
22+
23+
reg:
24+
maxItems: 1
25+
description: Chip select number on the SPI bus.
26+
27+
spi-max-frequency:
28+
const: 10000000
29+
description: SPI clock frequency in Hz.
30+
31+
"#address-cells":
32+
const: 1
33+
34+
"#size-cells":
35+
const: 0
36+
37+
jesd204-device:
38+
description: Device is added to the jesd204-fsm framework
39+
type: boolean
40+
41+
'#jesd204-cells':
42+
const: 2
43+
44+
jesd204-top-device:
45+
const: 0
46+
$ref: /schemas/types.yaml#/definitions/uint32
47+
description: Indicates this is the top-level device in the JESD204 link.
48+
49+
jesd204-link-ids:
50+
const: 0
51+
$ref: /schemas/types.yaml#/definitions/uint32
52+
53+
jesd204-inputs:
54+
description: JESD204-fsm devices phandles and specifiers (used to build the link topology)
55+
$ref: /schemas/types.yaml#/definitions/phandle-array
56+
57+
adi,adc-frequency-hz:
58+
description: ADC Sampling frequency of the device
59+
60+
adi,octets-per-frame:
61+
description: Number of octets per frame (F)
62+
$ref: /schemas/types.yaml#/definitions/uint32
63+
64+
adi,frames-per-multiframe:
65+
description: Number of frames per multi-frame (K)
66+
$ref: /schemas/types.yaml#/definitions/uint32
67+
68+
adi,converter-resolution:
69+
description: Converter resolution (N)
70+
$ref: /schemas/types.yaml#/definitions/uint32
71+
72+
adi,bits-per-sample:
73+
description: Number of bits per sample (N')
74+
$ref: /schemas/types.yaml#/definitions/uint32
75+
76+
adi,converters-per-device:
77+
description: Number of converter per device (M)
78+
$ref: /schemas/types.yaml#/definitions/uint32
79+
80+
adi,control-bits-per-sample:
81+
description: Number of control bits per conversion sample (CS)
82+
$ref: /schemas/types.yaml#/definitions/uint32
83+
84+
adi,lanes-per-device:
85+
description: Number of lanes per link (L)
86+
$ref: /schemas/types.yaml#/definitions/uint32
87+
88+
adi,subclass:
89+
description: The JESD204B sublcass
90+
$ref: /schemas/types.yaml#/definitions/uint32
91+
92+
io-backends:
93+
description:
94+
The AXI ADC IP block connected to the output lines of the
95+
ADC. An example backend can be found at
96+
http://analogdevicesinc.github.io/hdl/projects/pulsar_lvds/index.html.
97+
maxItems: 1
98+
99+
required:
100+
- compatible
101+
- reg
102+
- jesd204-device
103+
- '#jesd204-cells'
104+
- jesd204-top-device
105+
- jesd204-link-ids
106+
- jesd204-inputs
107+
- io-backends
108+
109+
additionalProperties: false
110+
111+
examples:
112+
- |
113+
spi {
114+
#address-cells = <1>;
115+
#size-cells = <0>;
116+
117+
adc_ad9213: ad9213@0 {
118+
compatible = "adi,ad9213";
119+
reg = <0>;
120+
#address-cells = <1>;
121+
#size-cells = <0>;
122+
spi-max-frequency = <10000000>;
123+
124+
jesd204-device;
125+
#jesd204-cells = <2>;
126+
jesd204-top-device = <0>; /* This is the TOP device */
127+
jesd204-link-ids = <0>;
128+
jesd204-inputs = <&axi_ad9213_jesd_rx 0 0>;
129+
130+
adi,adc-frequency-hz = /bits/ 64 <10000000000>;
131+
adi,octets-per-frame = <2>;
132+
adi,frames-per-multiframe = <32>;
133+
adi,converter-resolution = <16>;
134+
adi,bits-per-sample = <16>;
135+
adi,converters-per-device = <1>;
136+
adi,control-bits-per-sample = <0>;
137+
adi,lanes-per-device = <16>;
138+
adi,subclass = <1>;
139+
140+
io-backends = <&iio_backend>;
141+
};
142+
};

0 commit comments

Comments
 (0)