Skip to content

Commit baa389b

Browse files
committed
dt-bindings: iio: adc: Add adi,ad4052.yaml
Add documentation for devicetree bindings for AD4052 ADC family. Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent ff26ad5 commit baa389b

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
# Copyright 2024 Analog Devices Inc.
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/iio/adc/adi,ad4052.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Analog Devices AD4052 ADC family device driver
9+
10+
maintainers:
11+
- Jorge Marques <jorge.marques@analog.com>
12+
13+
description: |
14+
Analog Devices AD4052 Single Channel Precision SAR ADC family
15+
16+
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4050.pdf
17+
https://www.analog.com/media/en/technical-documentation/data-sheets/ad4052.pdf
18+
19+
properties:
20+
21+
compatible:
22+
enum:
23+
- adi,ad4050
24+
- adi,ad4052
25+
- adi,ad4056
26+
- adi,ad4058
27+
28+
reg:
29+
maxItems: 1
30+
31+
clocks:
32+
description:
33+
Reference clock
34+
35+
interrupts:
36+
maxItems: 1
37+
38+
dmas:
39+
maxItems: 1
40+
41+
dma-names:
42+
const: rx
43+
44+
pwms:
45+
maxItems: 1
46+
47+
pwm-names:
48+
const: cnv
49+
50+
cnv-gpios:
51+
description: GPIO line for the ADC CNV
52+
maxItems: 1
53+
54+
spi-max-frequency:
55+
maximum: 25000000
56+
57+
vdd-supply: true
58+
vdd_1_8-supply: true
59+
vio-supply: true
60+
61+
required:
62+
- compatible
63+
- reg
64+
- clocks
65+
- dmas
66+
- dma-names
67+
- pwms
68+
- pwm-names
69+
- interrupts
70+
71+
unevaluatedProperties: false
72+
73+
examples:
74+
- |
75+
#include <dt-bindings/gpio/gpio.h>
76+
77+
spi {
78+
#address-cells = <1>;
79+
#size-cells = <0>;
80+
81+
adc@0 {
82+
compatible = "adi,ad4052";
83+
reg = <0>;
84+
spi-max-frequency = <25000000>;
85+
86+
clocks = <&clk0>;
87+
dmas = <&dma 0>;
88+
dma-names = "rx";
89+
pwm-names = "cnv";
90+
pwms = <&adc_trigger 0 0>;
91+
cnv-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
92+
interrupts = <0 2>;
93+
interrupt-parent = <&gpio>;
94+
};
95+
};
96+
...

0 commit comments

Comments
 (0)