Skip to content

Commit 65997dc

Browse files
Yasin Ustunerkartben
authored andcommitted
dts: bindings: adc: Add AD7124 binding
This commit adds ad7124 binding. Signed-off-by: Yasin Ustuner <[email protected]>
1 parent d411b4f commit 65997dc

File tree

1 file changed

+119
-0
lines changed

1 file changed

+119
-0
lines changed

dts/bindings/adc/adi,ad7124-adc.yaml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
# Copyright (c) 2025 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: |
5+
Bindings for the ADI AD7124 Analog-to-Digital Converter.
6+
7+
compatible: adi,ad7124-adc
8+
9+
include: [adc-controller.yaml, spi-device.yaml]
10+
11+
properties:
12+
13+
reference-enable:
14+
type: boolean
15+
description: |
16+
Enable internal reference for AD7124
17+
- true: Enable internal reference
18+
- false: Disable internal reference
19+
20+
filter-type-mask:
21+
type: int
22+
default: 0
23+
description: |
24+
Filter type for AD7124:
25+
Each bit set in this mask enables the filter type,
26+
with the 0th bit corresponding to the 0th channel,
27+
the 1st bit to the 1st channel, and so on.
28+
- 0 means AD7124_FILTER_SINC4
29+
- 1 means AD7124_FILTER_SINC3
30+
The default is set to 0 because the filter type is set to SINC4
31+
for all filter setups upon power-up or after reset.
32+
Therefore, this setting is considered the default for all channels.
33+
34+
bipolar-mask:
35+
type: int
36+
default: 0xFFFF
37+
description: |
38+
Bipolar configuration for AD7124
39+
Each bit set in this mask enables the polarity,
40+
with the 0th bit corresponding to the 0th channel,
41+
the 1st bit to the 1st channel, and so on.
42+
- 0 Unipolar operation selection
43+
- 1 Bipolar operation selection
44+
The default is set to 0xFFFF because the bipolar configuration
45+
is activated for all configuration setups upon power-up or after reset.
46+
Therefore, this setting is considered the default for all channels.
47+
48+
inbuf-enable-mask:
49+
type: int
50+
default: 0xFFFF
51+
description: |
52+
Input buffer configuration for AD7124
53+
Each bit set in this mask enables the input buffer,
54+
with the 0th bit corresponding to the 0th channel,
55+
the 1st bit to the 1st channel, and so on.
56+
- 0 Analog input pin is unbuffered
57+
- 1 Analog input pin is buffered
58+
The default is set to 0xFFFF because the analog input buffer
59+
is enabled for all configuration setups upon power-up or after reset.
60+
Therefore, this setting is considered the default for all channels.
61+
62+
refbuf-enable-mask:
63+
type: int
64+
default: 0
65+
description: |
66+
Reference buffer configuration for AD7124
67+
Each bit set in this mask enables the reference buffer,
68+
with the 0th bit corresponding to the 0th channel,
69+
the 1st bit to the 1st channel, and so on.
70+
- 0 Reference input pin is unbuffered
71+
- 1 Reference input pin is buffered
72+
The default is set to 0 because the reference input buffer
73+
is enabled for all configuration setups upon power-up or after reset.
74+
Therefore, this setting is considered the default for all channels.
75+
76+
adc-mode:
77+
type: int
78+
enum: [0, 1, 2, 3, 4, 5, 6, 7, 8]
79+
default: 0
80+
description: |
81+
ADC operating mode for AD7124
82+
- 0 AD7124_CONTINUOUS
83+
- 1 AD7124_SINGLE
84+
- 2 AD7124_STANDBY
85+
- 3 AD7124_POWER_DOWN
86+
- 4 AD7124_IDLE
87+
- 5 AD7124_IN_ZERO_SCALE_OFF
88+
- 6 AD7124_IN_FULL_SCALE_GAIN
89+
- 7 AD7124_SYS_ZERO_SCALE_OFF
90+
- 8 AD7124_SYS_ZERO_SCALE_GAIN
91+
The default is set to 0 because the continuous conversion mode
92+
is enabled for control setup upon power-up or after reset.
93+
94+
power-mode:
95+
type: int
96+
enum: [0, 1, 2]
97+
default: 0
98+
description: |
99+
Power mode of the ADC for AD7124
100+
- 0 AD7124_LOW_POWER_MODE
101+
- 1 AD7124_MID_POWER_MODE
102+
- 2 AD7124_HIGH_POWER_MODE
103+
The default is set to 0 because the low power mode
104+
is enabled for control setup upon power-up or after reset.
105+
106+
active-device:
107+
type: int
108+
enum: [0, 1]
109+
required: true
110+
description: |
111+
Active device for AD7124
112+
- 0 ID_AD7124_4
113+
- 1 ID_AD7124_8
114+
115+
"#io-channel-cells":
116+
const: 1
117+
118+
io-channel-cells:
119+
- input

0 commit comments

Comments
 (0)