-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include: dt-bindings: Add AD7124 analog inputs
This commit adds analog inputs for AD7124 ADC. Signed-off-by: Yasin Ustuner <[email protected]>
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2025 Analog Devices, Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_AD7124_ADC_H_ | ||
#define ZEPHYR_INCLUDE_DT_BINDINGS_AD7124_ADC_H_ | ||
|
||
#include <zephyr/dt-bindings/dt-util.h> | ||
|
||
#define AD7124_ADC_AIN0 0 | ||
#define AD7124_ADC_AIN1 1 | ||
#define AD7124_ADC_AIN2 2 | ||
#define AD7124_ADC_AIN3 3 | ||
#define AD7124_ADC_AIN4 4 | ||
#define AD7124_ADC_AIN5 5 | ||
#define AD7124_ADC_AIN6 6 | ||
#define AD7124_ADC_AIN7 7 | ||
#define AD7124_ADC_AIN8 8 | ||
#define AD7124_ADC_AIN9 9 | ||
#define AD7124_ADC_AIN10 10 | ||
#define AD7124_ADC_AIN11 11 | ||
#define AD7124_ADC_AIN12 12 | ||
#define AD7124_ADC_AIN13 13 | ||
#define AD7124_ADC_AIN14 14 | ||
#define AD7124_ADC_AIN15 15 | ||
#define AD7124_ADC_TEMP_SENSOR 16 | ||
#define AD7124_ADC_AVSS 17 | ||
#define AD7124_ADC_INTERNAL_REF 18 | ||
#define AD7124_ADC_DGND 19 | ||
#define AD7124_ADC_AVDD_AVSS_DIV6_PLUS 20 | ||
#define AD7124_ADC_AVDD_AVSS_DIV6_MINUS 21 | ||
#define AD7124_ADC_IOVDD_DGND_DIV6_PLUS 22 | ||
#define AD7124_ADC_IOVDD_DGND_DIV6_MINUS 23 | ||
#define AD7124_ADC_ALDO_AVSS_DIV6_PLUS 24 | ||
#define AD7124_ADC_ALDO_AVSS_DIV6_MINUS 25 | ||
#define AD7124_ADC_DLDO_DGND_DIV6_PLUS 26 | ||
#define AD7124_ADC_DLDO_DGND_DIV6_MINUS 27 | ||
#define AD7124_ADC_V_20MV_P 28 | ||
#define AD7124_ADC_V_20MV_M 29 | ||
|
||
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_AD7124_ADC_H_ */ |