Skip to content

Commit 0417d38

Browse files
msierszulskicarlescufi
authored andcommitted
drivers/adc: add Gecko IADC driver
This commit adds the Gecko IADC driver and support for it to the efr32bg_sltb010a board. Signed-off-by: Mateusz Sierszulski <msierszulski@antmicro.com> Signed-off-by: Roman Dobrodii <rdobrodii@antmicro.com>
1 parent 4bd5037 commit 0417d38

File tree

9 files changed

+542
-1
lines changed

9 files changed

+542
-1
lines changed

boards/arm/efr32_thunderboard/thunderboard.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,7 @@
128128
location-scl = <GECKO_LOCATION(3) GECKO_PORT_D GECKO_PIN(3)>;
129129
status = "okay";
130130
};
131+
132+
&adc0 {
133+
status = "okay";
134+
};

drivers/adc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ zephyr_library_sources_ifdef(CONFIG_ADC_ADS7052 adc_ads7052.c)
3232
zephyr_library_sources_ifdef(CONFIG_ADC_RPI_PICO adc_rpi_pico.c)
3333
zephyr_library_sources_ifdef(CONFIG_ADC_XMC4XXX adc_xmc4xxx.c)
3434
zephyr_library_sources_ifdef(CONFIG_ADC_ESP32 adc_esp32.c)
35+
zephyr_library_sources_ifdef(CONFIG_ADC_GECKO iadc_gecko.c)

drivers/adc/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,6 @@ source "drivers/adc/Kconfig.rpi_pico"
9090

9191
source "drivers/adc/Kconfig.xmc4xxx"
9292

93+
source "drivers/adc/Kconfig.gecko"
94+
9395
endif # ADC

drivers/adc/Kconfig.gecko

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# IADC configuration options
2+
3+
# Copyright (c) 2023 Antmicro <www.antmicro.com>
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config ADC_GECKO
7+
bool "Gecko Incremental ADC driver"
8+
default y
9+
depends on DT_HAS_SILABS_GECKO_IADC_ENABLED
10+
select SOC_GECKO_IADC
11+
select ADC_CONFIGURABLE_INPUTS
12+
help
13+
Enable the driver implementation for the Silabs GeckoEXX32 Incremental ADC

0 commit comments

Comments
 (0)