Skip to content

Commit 6a2282a

Browse files
committed
dt-bindings: iio: adc: Add adi,ad4052.yaml
Add dt-bindings for AD4052 family, devices AD4050/AD4052/AD4056/AD4058, low-power with monitor capabilities SAR ADCs. Contain selectable oversampling and sample rate, the latter for both oversampling and monitor mode. The monitor capability is exposed as an IIO threshold either direction event. Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent ff26ad5 commit 6a2282a

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
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+
compatible:
21+
enum:
22+
- adi,ad4050
23+
- adi,ad4052
24+
- adi,ad4056
25+
- adi,ad4058
26+
27+
reg:
28+
maxItems: 1
29+
30+
clocks:
31+
description:
32+
Reference clock
33+
34+
interrupts:
35+
maxItems: 1
36+
37+
dmas:
38+
maxItems: 1
39+
40+
dma-names:
41+
const: rx
42+
43+
pwms:
44+
maxItems: 1
45+
46+
pwm-names:
47+
const: cnv
48+
49+
cnv-gpios:
50+
maxItems: 1
51+
52+
gp1-gpios:
53+
maxItems: 1
54+
55+
gp0-gpios:
56+
maxItems: 1
57+
58+
spi-max-frequency:
59+
maximum: 25000000
60+
61+
vdd-supply: true
62+
vdd_1_8-supply: true
63+
vio-supply: true
64+
65+
required:
66+
- compatible
67+
- reg
68+
- clocks
69+
- dmas
70+
- dma-names
71+
- pwms
72+
- pwm-names
73+
- interrupts
74+
75+
allOf:
76+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
77+
78+
unevaluatedProperties: false
79+
80+
examples:
81+
- |
82+
#include <dt-bindings/gpio/gpio.h>
83+
84+
spi {
85+
#address-cells = <1>;
86+
#size-cells = <0>;
87+
88+
adc@0 {
89+
compatible = "adi,ad4052";
90+
reg = <0>;
91+
spi-max-frequency = <25000000>;
92+
93+
clocks = <&clk0>;
94+
dmas = <&dma 0>;
95+
dma-names = "rx";
96+
pwm-names = "cnv";
97+
pwms = <&adc_trigger 0 0>;
98+
cnv-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
99+
gp1-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
100+
gp0-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
101+
interrupts = <0 2>;
102+
interrupt-parent = <&gpio>;
103+
};
104+
};
105+
...

0 commit comments

Comments
 (0)