Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ADC family MAX11102-MAX11117 #60328

Merged
merged 6 commits into from Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -243,6 +243,7 @@
/drivers/adc/adc_stm32.c @cybertale
/drivers/adc/adc_rpi_pico.c @soburi
/drivers/adc/*ads114s0x* @benediktibk
/drivers/adc/*max11102_17* @benediktibk
/drivers/audio/*nrfx* @anangl
/drivers/auxdisplay/*pt6314* @xingrz
/drivers/auxdisplay/* @thedjnK
Expand Down Expand Up @@ -576,6 +577,7 @@
/dts/bindings/i2c/zephyr*i2c-emul*.yaml @sjg20
/dts/bindings/adc/st*stm32-adc.yaml @cybertale
/dts/bindings/adc/*ads114s08.yaml @benediktibk
/dts/bindings/adc/*max111* @benediktibk
/dts/bindings/modem/*hl7800.yaml @rerickson1
/dts/bindings/serial/ns16550.yaml @dcpleung @nashif
/dts/bindings/counter/snps,dw-timers.yaml @pbalsundar
Expand Down
1 change: 1 addition & 0 deletions drivers/adc/CMakeLists.txt
Expand Up @@ -45,3 +45,4 @@ zephyr_library_sources_ifdef(CONFIG_ADC_SMARTBOND_SDADC adc_smartbond_sdadc.c)
zephyr_library_sources_ifdef(CONFIG_ADC_TLA2021 adc_tla2021.c)
zephyr_library_sources_ifdef(CONFIG_ADC_NXP_S32_ADC_SAR adc_nxp_s32_adc_sar.c)
zephyr_library_sources_ifdef(CONFIG_ADC_MAX1125X adc_max1125x.c)
zephyr_library_sources_ifdef(CONFIG_ADC_MAX11102_17 adc_max11102_17.c)
2 changes: 2 additions & 0 deletions drivers/adc/Kconfig
Expand Up @@ -114,4 +114,6 @@ source "drivers/adc/Kconfig.nxp_s32"

source "drivers/adc/Kconfig.max1125x"

source "drivers/adc/Kconfig.max11102_17"

endif # ADC
32 changes: 32 additions & 0 deletions drivers/adc/Kconfig.max11102_17
@@ -0,0 +1,32 @@
# Copyright (c) 2023 SILA Embedded Solutions GmbH
#
# SPDX-License-Identifier: Apache-2.0

menuconfig ADC_MAX11102_17
bool "Maxim Integrated MAX11102-MAX11117"
default y
depends on DT_HAS_MAXIM_MAX11102_ENABLED \
|| DT_HAS_MAXIM_MAX11103_ENABLED \
|| DT_HAS_MAXIM_MAX11105_ENABLED \
|| DT_HAS_MAXIM_MAX11106_ENABLED \
|| DT_HAS_MAXIM_MAX11110_ENABLED \
|| DT_HAS_MAXIM_MAX11111_ENABLED \
|| DT_HAS_MAXIM_MAX11115_ENABLED \
|| DT_HAS_MAXIM_MAX11116_ENABLED \
|| DT_HAS_MAXIM_MAX11117_ENABLED
select SPI
help
Enable the driver implementation for the MAX11102-MAX11117 family

config ADC_MAX11102_17_ACQUISITION_THREAD_INIT_PRIO
int "ADC data acquisition thread priority"
default 0
depends on ADC_MAX11102_17 && ADC_ASYNC

config ADC_MAX11102_17_ACQUISITION_THREAD_STACK_SIZE
int "Stack size for the ADC data acquisition thread"
default 400
depends on ADC_MAX11102_17 && ADC_ASYNC
help
Size of the stack used for the internal data acquisition
thread.