Skip to content

Commit

Permalink
include: dt-bindings: Add AD7124 analog inputs
Browse files Browse the repository at this point in the history
This commit adds analog inputs for AD7124 ADC.

Signed-off-by: Yasin Ustuner <[email protected]>
  • Loading branch information
yasin-ADI committed Jan 29, 2025
1 parent 54c028f commit 425ab14
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions include/zephyr/dt-bindings/adc/ad7124-adc.h
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_ */

0 comments on commit 425ab14

Please sign in to comment.