Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/iio/adc/adi,ad4030.yaml
53644 views
1
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2
# Copyright 2024 Analog Devices Inc.
3
# Copyright 2024 BayLibre, SAS.
4
%YAML 1.2
5
---
6
$id: http://devicetree.org/schemas/iio/adc/adi,ad4030.yaml#
7
$schema: http://devicetree.org/meta-schemas/core.yaml#
8
9
title: Analog Devices AD4030 and AD4630 ADC families
10
11
maintainers:
12
- Michael Hennerich <michael.hennerich@analog.com>
13
- Nuno Sa <nuno.sa@analog.com>
14
15
description: |
16
Analog Devices AD4030 single channel and AD4630/AD4632 dual channel precision
17
SAR ADC families
18
19
* https://www.analog.com/media/en/technical-documentation/data-sheets/ad4030-24-4032-24.pdf
20
* https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-24_ad4632-24.pdf
21
* https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-16-4632-16.pdf
22
23
properties:
24
compatible:
25
enum:
26
- adi,ad4030-24
27
- adi,ad4032-24
28
- adi,ad4630-16
29
- adi,ad4630-24
30
- adi,ad4632-16
31
- adi,ad4632-24
32
33
reg:
34
maxItems: 1
35
36
spi-max-frequency:
37
maximum: 102040816
38
39
spi-rx-bus-width:
40
maxItems: 2
41
# all lanes must have the same width
42
oneOf:
43
- contains:
44
const: 1
45
- contains:
46
const: 2
47
- contains:
48
const: 4
49
50
vdd-5v-supply: true
51
vdd-1v8-supply: true
52
vio-supply: true
53
54
ref-supply:
55
description:
56
Optional External unbuffered reference. Used when refin-supply is not
57
connected.
58
59
refin-supply:
60
description:
61
Internal buffered Reference. Used when ref-supply is not connected.
62
63
cnv-gpios:
64
description:
65
The Convert Input (CNV). It initiates the sampling conversions.
66
maxItems: 1
67
68
reset-gpios:
69
description:
70
The Reset Input (/RST). Used for asynchronous device reset.
71
maxItems: 1
72
73
interrupts:
74
description:
75
The BUSY pin is used to signal that the conversions results are available
76
to be transferred when in SPI Clocking Mode. This nodes should be
77
connected to an interrupt that is triggered when the BUSY line goes low.
78
maxItems: 1
79
80
interrupt-names:
81
const: busy
82
83
required:
84
- compatible
85
- reg
86
- vdd-5v-supply
87
- vdd-1v8-supply
88
- vio-supply
89
- cnv-gpios
90
91
oneOf:
92
- required:
93
- ref-supply
94
- required:
95
- refin-supply
96
97
unevaluatedProperties: false
98
99
allOf:
100
- if:
101
properties:
102
compatible:
103
enum:
104
- adi,ad4030-24
105
- adi,ad4032-24
106
then:
107
properties:
108
spi-rx-bus-width:
109
maxItems: 1
110
111
examples:
112
- |
113
#include <dt-bindings/gpio/gpio.h>
114
115
spi {
116
#address-cells = <1>;
117
#size-cells = <0>;
118
119
adc@0 {
120
compatible = "adi,ad4030-24";
121
reg = <0>;
122
spi-max-frequency = <80000000>;
123
vdd-5v-supply = <&supply_5V>;
124
vdd-1v8-supply = <&supply_1_8V>;
125
vio-supply = <&supply_1_8V>;
126
ref-supply = <&supply_5V>;
127
cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
128
reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
129
};
130
};
131
- |
132
#include <dt-bindings/gpio/gpio.h>
133
134
spi {
135
#address-cells = <1>;
136
#size-cells = <0>;
137
138
adc@0 {
139
compatible = "adi,ad4630-24";
140
reg = <0>;
141
spi-max-frequency = <80000000>;
142
spi-rx-bus-width = <4>, <4>;
143
vdd-5v-supply = <&supply_5V>;
144
vdd-1v8-supply = <&supply_1_8V>;
145
vio-supply = <&supply_1_8V>;
146
ref-supply = <&supply_5V>;
147
cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
148
reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
149
};
150
};
151
152