Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions boards/infineon/cy8ckit_041s_max/cy8ckit_041s_max_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ uart2: &scb2 {
clock-div = <11500>;
};

&peri_clk_div4 {
status = "okay";
resource-type = <IFX_RSC_ADC>;
resource-instance = <0>;
clock-div = <4>;
};

&gpio_prt1 {
status = "okay";
};

&gpio_prt2 {
status = "okay";
};

&gpio_prt7 {
status = "okay";
};
7 changes: 7 additions & 0 deletions boards/infineon/cy8cproto_041tp/cy8cproto_041tp_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ uart0: &scb0 {
clock-div = <11500>;
};

&peri_clk_div4 {
status = "okay";
resource-type = <IFX_RSC_ADC>;
resource-instance = <0>;
clock-div = <4>;
};

&gpio_prt4 {
status = "okay";
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ zephyr_library_sources_ifdef(CONFIG_ADC_ADS1X4S0X adc_ads1x4s0x.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ADS7052 adc_ads7052.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ADS79XX adc_ads79xx.c)
zephyr_library_sources_ifdef(CONFIG_ADC_AMBIQ adc_ambiq.c)
zephyr_library_sources_ifdef(CONFIG_ADC_BFLB adc_bflb.c)
zephyr_library_sources_ifdef(CONFIG_ADC_CC13XX_CC26XX adc_cc13xx_cc26xx.c)
zephyr_library_sources_ifdef(CONFIG_ADC_CC23X0 adc_cc23x0.c)
zephyr_library_sources_ifdef(CONFIG_ADC_CC32XX adc_cc32xx.c)
Expand All @@ -38,6 +37,7 @@ zephyr_library_sources_ifdef(CONFIG_ADC_GECKO_ADC adc_gecko.c)
zephyr_library_sources_ifdef(CONFIG_ADC_INFINEON_AUTANALOG_SAR adc_infineon_autanalog_sar.c)
zephyr_library_sources_ifdef(CONFIG_ADC_INFINEON_CAT1 adc_infineon.c)
zephyr_library_sources_ifdef(CONFIG_ADC_INFINEON_HPPASS_SAR adc_infineon_hppass_sar.c)
zephyr_library_sources_ifdef(CONFIG_ADC_INFINEON_SAR adc_infineon_m0s8pass_sar.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ITE_IT51XXX adc_ite_it51xxx.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ITE_IT8XXX2 adc_ite_it8xxx2.c)
zephyr_library_sources_ifdef(CONFIG_ADC_LMP90XXX adc_lmp90xxx.c)
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ source "drivers/adc/Kconfig.ads7052"
source "drivers/adc/Kconfig.ads79xx"
source "drivers/adc/Kconfig.ambiq"
source "drivers/adc/Kconfig.b91"
source "drivers/adc/Kconfig.bflb"
source "drivers/adc/Kconfig.cc13xx_cc26xx"
source "drivers/adc/Kconfig.cc23x0"
source "drivers/adc/Kconfig.cc32xx"
Expand All @@ -100,6 +99,7 @@ source "drivers/adc/Kconfig.gd32"
source "drivers/adc/Kconfig.infineon"
source "drivers/adc/Kconfig.infineon_autanalog_sar"
source "drivers/adc/Kconfig.infineon_hppass_sar"
source "drivers/adc/Kconfig.infineon_m0s8pass_sar"
source "drivers/adc/Kconfig.it51xxx"
source "drivers/adc/Kconfig.it8xxx2"
source "drivers/adc/Kconfig.lmp90xxx"
Expand Down
23 changes: 23 additions & 0 deletions drivers/adc/Kconfig.infineon_m0s8pass_sar
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) 2025 Infineon Technologies AG,
# or an affiliate of Infineon Technologies AG.
#
# SPDX-License-Identifier: Apache-2.0

# Infineon M0S8PASS SAR ADC configuration options

config ADC_INFINEON_SAR
bool "Infineon M0S8PASS SAR ADC driver"
default y
depends on DT_HAS_INFINEON_M0S8PASS_SAR_ADC_ENABLED
select ADC_CONFIGURABLE_INPUTS
select USE_INFINEON_ADC
help
Enable M0S8PASS SAR ADC driver for Infineon devices.

config ADC_INFINEON_SAR_SARSEQ_SWITCHING
bool "Use SARSEQ hardware switch control"
default y
depends on ADC_INFINEON_SAR
help
Enable SARSEQ (hardware sequencer) control of SAR ADC input switches.
If disabled, the driver relies on firmware-controlled switches only.
Loading