Commit 2e4e9926 authored by Mustafa Abdullah Kus's avatar Mustafa Abdullah Kus Committed by Carles Cufi
Browse files

drivers: adc: add max1125x driver



This adds support for the max1125x (max11254, max11254)
family of spi adc devices.

Signed-off-by: default avatarMustafa Abdullah Kus <mustafa.kus@sparsetechnology.com>
parent b28b6a06
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -44,3 +44,4 @@ zephyr_library_sources_ifdef(CONFIG_ADC_SMARTBOND_GPADC adc_smartbond_gpadc.c)
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)
+2 −0
Original line number Diff line number Diff line
@@ -112,4 +112,6 @@ source "drivers/adc/Kconfig.tla2021"

source "drivers/adc/Kconfig.nxp_s32"

source "drivers/adc/Kconfig.max1125x"

endif # ADC
+40 −0
Original line number Diff line number Diff line
# MAX1125X ADC configuration options

# Copyright (c) 2023 Mustafa Abdullah Kus, Sparse Technology
# SPDX-License-Identifier: Apache-2.0

config ADC_MAX1125X
	bool "MAX1125X driver"
	default y
	depends on DT_HAS_MAXIM_MAX11254_ENABLED || DT_HAS_MAXIM_MAX11253_ENABLED
	select SPI
	select ADC_CONFIGURABLE_INPUTS
	help
	  Enable the driver implementation for the MAX1125X

if ADC_MAX1125X

config ADC_MAX1125X_INIT_PRIORITY
	int "Init priority"
	default 80
	help
	  ADS1X1X ADC device driver initialization priority.

config ADC_MAX1125X_ASYNC_THREAD_INIT_PRIORITY
	int "ADC MAX1125X async thread priority"
	default 0

config ADC_MAX1125X_ACQUISITION_THREAD_PRIORITY
	int "Priority for the ADC data acquisition thread"
	default 0
	help
	  Priority level for the internal ADC data acquisition thread.

config ADC_MAX1125X_ACQUISITION_THREAD_STACK_SIZE
	int "Stack size for the ADC data acquisition thread"
	default 400
	help
	  Size of the stack used for the internal data acquisition
	  thread.

endif # ADC_MAX1125X
+864 −0

File added.

Preview size limit exceeded, changes collapsed.

+5 −0
Original line number Diff line number Diff line
description: Maxim Integrated MAX11253 SPI ADC

compatible: "maxim,max11253"

include: maxim,max1125x-base.yaml
Loading