Skip to content

Commit a4b5635

Browse files
Yasin Ustunerkartben
authored andcommitted
include: dt-bindings: Add AD7124 analog inputs
This commit adds analog inputs for AD7124 ADC. Signed-off-by: Yasin Ustuner <[email protected]>
1 parent 65997dc commit a4b5635

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_AD7124_ADC_H_
8+
#define ZEPHYR_INCLUDE_DT_BINDINGS_AD7124_ADC_H_
9+
10+
#include <zephyr/dt-bindings/dt-util.h>
11+
12+
#define AD7124_ADC_AIN0 0
13+
#define AD7124_ADC_AIN1 1
14+
#define AD7124_ADC_AIN2 2
15+
#define AD7124_ADC_AIN3 3
16+
#define AD7124_ADC_AIN4 4
17+
#define AD7124_ADC_AIN5 5
18+
#define AD7124_ADC_AIN6 6
19+
#define AD7124_ADC_AIN7 7
20+
#define AD7124_ADC_AIN8 8
21+
#define AD7124_ADC_AIN9 9
22+
#define AD7124_ADC_AIN10 10
23+
#define AD7124_ADC_AIN11 11
24+
#define AD7124_ADC_AIN12 12
25+
#define AD7124_ADC_AIN13 13
26+
#define AD7124_ADC_AIN14 14
27+
#define AD7124_ADC_AIN15 15
28+
#define AD7124_ADC_TEMP_SENSOR 16
29+
#define AD7124_ADC_AVSS 17
30+
#define AD7124_ADC_INTERNAL_REF 18
31+
#define AD7124_ADC_DGND 19
32+
#define AD7124_ADC_AVDD_AVSS_DIV6_PLUS 20
33+
#define AD7124_ADC_AVDD_AVSS_DIV6_MINUS 21
34+
#define AD7124_ADC_IOVDD_DGND_DIV6_PLUS 22
35+
#define AD7124_ADC_IOVDD_DGND_DIV6_MINUS 23
36+
#define AD7124_ADC_ALDO_AVSS_DIV6_PLUS 24
37+
#define AD7124_ADC_ALDO_AVSS_DIV6_MINUS 25
38+
#define AD7124_ADC_DLDO_DGND_DIV6_PLUS 26
39+
#define AD7124_ADC_DLDO_DGND_DIV6_MINUS 27
40+
#define AD7124_ADC_V_20MV_P 28
41+
#define AD7124_ADC_V_20MV_M 29
42+
43+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_AD7124_ADC_H_ */

0 commit comments

Comments
 (0)