From f69fcc162b2d0f8f21b37bb0c34d163a4f15eef0 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Mon, 15 Feb 2021 15:45:03 +0100 Subject: [PATCH 1/5] make: introduce VDD_LC_FILTER_x feature --- makefiles/features_modules.inc.mk | 3 +++ makefiles/pseudomodules.inc.mk | 1 + 2 files changed, 4 insertions(+) diff --git a/makefiles/features_modules.inc.mk b/makefiles/features_modules.inc.mk index 5b1c9eda9a..79610756ba 100644 --- a/makefiles/features_modules.inc.mk +++ b/makefiles/features_modules.inc.mk @@ -57,3 +57,6 @@ endif # use efm32_coretemp if the feature is used USEMODULE += $(filter efm32_coretemp, $(FEATURES_USED)) + +# if LC filter(s) is attached to the CPUs voltage regulator, use it +USEMODULE += $(filter vdd_lc_filter_%,$(FEATURES_USED)) diff --git a/makefiles/pseudomodules.inc.mk b/makefiles/pseudomodules.inc.mk index 01d6cd01a1..c4e4673ebf 100644 --- a/makefiles/pseudomodules.inc.mk +++ b/makefiles/pseudomodules.inc.mk @@ -147,6 +147,7 @@ PSEUDOMODULES += stm32mp1_eng_mode PSEUDOMODULES += suit_transport_% PSEUDOMODULES += suit_storage_% PSEUDOMODULES += sys_bus_% +PSEUDOMODULES += vdd_lc_filter_% PSEUDOMODULES += wakaama_objects_% PSEUDOMODULES += wifi_enterprise PSEUDOMODULES += xtimer_on_ztimer From cc2df0c508506a4e1304082977c2bca80a82de56 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Fri, 12 Feb 2021 10:57:19 +0100 Subject: [PATCH 2/5] cpu/nrf5x: use IS_ACTIVE to enable the DCDC conv --- cpu/nrf5x_common/Makefile.dep | 7 +++++++ cpu/nrf5x_common/include/nrfx.h | 28 ++++++++++++++++------------ 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/cpu/nrf5x_common/Makefile.dep b/cpu/nrf5x_common/Makefile.dep index ae1319e836..7c54a45a71 100644 --- a/cpu/nrf5x_common/Makefile.dep +++ b/cpu/nrf5x_common/Makefile.dep @@ -3,3 +3,10 @@ USEMODULE += nrf5x_common_periph # link common cpu code USEMODULE += cpu_common + +# per default, enable DCDC converter if an external LC filter is provided +# reg1 feature denotes state 1 on two-stage regulator models or the single +# state in single-regulator models +FEATURES_OPTIONAL += vdd_lc_filter_reg1 +# reg0 feature denotes stage 0 two-stage regulator models +FEATURES_OPTIONAL += vdd_lc_filter_reg0 diff --git a/cpu/nrf5x_common/include/nrfx.h b/cpu/nrf5x_common/include/nrfx.h index 680cdc8050..1edb426cf7 100644 --- a/cpu/nrf5x_common/include/nrfx.h +++ b/cpu/nrf5x_common/include/nrfx.h @@ -32,26 +32,30 @@ extern "C" { /** * @brief Enable the internal DC/DC power converter for the NRF5x MCU. * - * The internal DC/DC converter is more efficient compared to the LDO regulator. - * The downside of the DC/DC converter is that it requires an external inductor - * to be present on the board. Enabling the DC/DC converter is guarded with - * NRF5X_ENABLE_DCDC, this macro must be defined if the DC/DC converter is to be - * enabled. + * In most cases, the internal DC/DC converter is more efficient compared to the + * LDO regulator. The downside of the DC/DC converter is that it requires an + * external LC filter to be present on the board. Per default, the DC/DC + * converter is enabled if an LC filter is present (VDD_LC_FILTER_REGx feature). + * + * Independent of the presence of the LC filter, the DC/DC converter(s) can be + * disabled by blacklisting the VDD_LC_FILTER_REGx feature, e.g. build using + * `FEATURES_BLACKLIST=VDD_LC_FILTER_REG1 make all`. */ static inline void nrfx_dcdc_init(void) { -#ifdef NRF5X_ENABLE_DCDC - NRF_POWER->DCDCEN = 1; + if (IS_ACTIVE(MODULE_VDD_LC_FILTER_REG1)) { + NRF_POWER->DCDCEN = 1; + } - /* on CPUs that support high voltage power supply via VDDH and thus use a - * two stage regulator, we also enable the DC/DC converter for the first - * state. */ #ifdef POWER_DCDCEN0_DCDCEN_Msk - if (NRF_POWER->MAINREGSTATUS == POWER_MAINREGSTATUS_MAINREGSTATUS_High) { + /* on CPUs that support high voltage power supply via VDDH and thus use a + * two stage regulator, we also try to enable the DC/DC converter for the + * first stage */ + if (IS_ACTIVE(MODULE_VDD_LC_FILTER_REG0) && + (NRF_POWER->MAINREGSTATUS == POWER_MAINREGSTATUS_MAINREGSTATUS_High)) { NRF_POWER->DCDCEN0 = 1; } #endif -#endif } #ifdef __cplusplus From 3290ffd370eb6004ff2456d91346a1a314e88eb7 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Fri, 12 Feb 2021 10:58:39 +0100 Subject: [PATCH 3/5] boards/nrf5x-based: add vdd_lc_filer_regX feature --- boards/acd52832/include/periph_conf.h | 5 ----- boards/common/nrf52xxxdk/Makefile.features | 1 + boards/common/nrf52xxxdk/include/periph_conf_common.h | 5 ----- boards/common/particle-mesh/Makefile.features | 1 + boards/dwm1001/Makefile.features | 1 + boards/dwm1001/include/periph_conf.h | 5 ----- boards/microbit-v2/Makefile.features | 1 + boards/microbit-v2/include/periph_conf.h | 5 ----- boards/nrf51dk/Makefile.features | 1 + boards/nrf51dk/include/periph_conf.h | 5 ----- boards/nrf52832-mdk/Makefile.features | 1 + boards/nrf52832-mdk/include/periph_conf.h | 5 ----- boards/nrf52840-mdk/Makefile.features | 1 + boards/nrf52840-mdk/include/periph_conf.h | 5 ----- boards/nrf52840dk/Makefile.features | 1 + boards/nrf52840dongle/Makefile.features | 2 ++ boards/nrf52840dongle/include/periph_conf.h | 7 ------- boards/particle-argon/include/periph_conf.h | 5 ----- boards/particle-boron/include/periph_conf.h | 5 ----- boards/particle-xenon/include/periph_conf.h | 5 ----- boards/pinetime/Makefile.features | 1 + boards/pinetime/include/periph_conf.h | 5 ----- boards/reel/Makefile.features | 1 + boards/reel/include/periph_conf.h | 5 ----- boards/ruuvitag/Makefile.features | 1 + boards/ruuvitag/include/periph_conf.h | 5 ----- boards/thingy52/Makefile.features | 1 + boards/thingy52/include/periph_conf.h | 5 ----- 28 files changed, 14 insertions(+), 77 deletions(-) diff --git a/boards/acd52832/include/periph_conf.h b/boards/acd52832/include/periph_conf.h index 2695da1c97..c17278166f 100644 --- a/boards/acd52832/include/periph_conf.h +++ b/boards/acd52832/include/periph_conf.h @@ -81,11 +81,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF ARRAY_SIZE(i2c_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/common/nrf52xxxdk/Makefile.features b/boards/common/nrf52xxxdk/Makefile.features index b7d0742616..82dc2d8333 100644 --- a/boards/common/nrf52xxxdk/Makefile.features +++ b/boards/common/nrf52xxxdk/Makefile.features @@ -3,5 +3,6 @@ FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart +FEATURES_PROVIDED += vdd_lc_filter_reg1 include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/common/nrf52xxxdk/include/periph_conf_common.h b/boards/common/nrf52xxxdk/include/periph_conf_common.h index d4f9691d56..2de6c36ea0 100644 --- a/boards/common/nrf52xxxdk/include/periph_conf_common.h +++ b/boards/common/nrf52xxxdk/include/periph_conf_common.h @@ -68,11 +68,6 @@ static const pwm_conf_t pwm_config[] = { #define PWM_NUMOF ARRAY_SIZE(pwm_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/common/particle-mesh/Makefile.features b/boards/common/particle-mesh/Makefile.features index 76ed127b34..9ca1472a17 100644 --- a/boards/common/particle-mesh/Makefile.features +++ b/boards/common/particle-mesh/Makefile.features @@ -6,6 +6,7 @@ FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +FEATURES_PROVIDED += vdd_lc_filter_reg1 # Various other features (if any) diff --git a/boards/dwm1001/Makefile.features b/boards/dwm1001/Makefile.features index b26cc43445..2e76014f9a 100644 --- a/boards/dwm1001/Makefile.features +++ b/boards/dwm1001/Makefile.features @@ -4,5 +4,6 @@ CPU_MODEL = nrf52832xxaa FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart +FEATURES_PROVIDED += vdd_lc_filter_reg1 include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/dwm1001/include/periph_conf.h b/boards/dwm1001/include/periph_conf.h index ee40e2b297..de211c5ea5 100644 --- a/boards/dwm1001/include/periph_conf.h +++ b/boards/dwm1001/include/periph_conf.h @@ -77,11 +77,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF ARRAY_SIZE(i2c_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/microbit-v2/Makefile.features b/boards/microbit-v2/Makefile.features index 259e50e560..63c0d07b90 100644 --- a/boards/microbit-v2/Makefile.features +++ b/boards/microbit-v2/Makefile.features @@ -5,6 +5,7 @@ FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart +FEATURES_PROVIDED += vdd_lc_filter_reg1 # include common nrf52 based boards features include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/microbit-v2/include/periph_conf.h b/boards/microbit-v2/include/periph_conf.h index b5b142514f..4644775133 100644 --- a/boards/microbit-v2/include/periph_conf.h +++ b/boards/microbit-v2/include/periph_conf.h @@ -29,11 +29,6 @@ extern "C" { #endif -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - /** * @name UART configuration * @{ diff --git a/boards/nrf51dk/Makefile.features b/boards/nrf51dk/Makefile.features index 1fad69e560..bd3cdbeace 100644 --- a/boards/nrf51dk/Makefile.features +++ b/boards/nrf51dk/Makefile.features @@ -5,6 +5,7 @@ FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_uart_hw_fc +FEATURES_PROVIDED += vdd_lc_filter_reg1 # include common nrf51 based boards features include $(RIOTBOARD)/common/nrf51/Makefile.features diff --git a/boards/nrf51dk/include/periph_conf.h b/boards/nrf51dk/include/periph_conf.h index 152f9e7238..4399bd50b3 100644 --- a/boards/nrf51dk/include/periph_conf.h +++ b/boards/nrf51dk/include/periph_conf.h @@ -73,11 +73,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF ARRAY_SIZE(i2c_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/nrf52832-mdk/Makefile.features b/boards/nrf52832-mdk/Makefile.features index f8e8dadfd9..3ac7472acb 100644 --- a/boards/nrf52832-mdk/Makefile.features +++ b/boards/nrf52832-mdk/Makefile.features @@ -3,5 +3,6 @@ CPU_MODEL = nrf52832xxaa # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_uart +FEATURES_PROVIDED += vdd_lc_filter_reg1 include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/nrf52832-mdk/include/periph_conf.h b/boards/nrf52832-mdk/include/periph_conf.h index 33ee816977..3983b7628a 100644 --- a/boards/nrf52832-mdk/include/periph_conf.h +++ b/boards/nrf52832-mdk/include/periph_conf.h @@ -40,11 +40,6 @@ extern "C" { #define UART_PIN_TX GPIO_PIN(0,20) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/nrf52840-mdk/Makefile.features b/boards/nrf52840-mdk/Makefile.features index e96ab8ee7c..2ed3d7f90c 100644 --- a/boards/nrf52840-mdk/Makefile.features +++ b/boards/nrf52840-mdk/Makefile.features @@ -5,6 +5,7 @@ FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +FEATURES_PROVIDED += vdd_lc_filter_reg1 # Various other features (if any) diff --git a/boards/nrf52840-mdk/include/periph_conf.h b/boards/nrf52840-mdk/include/periph_conf.h index bbd16563ed..f40b5b3480 100644 --- a/boards/nrf52840-mdk/include/periph_conf.h +++ b/boards/nrf52840-mdk/include/periph_conf.h @@ -53,11 +53,6 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF ARRAY_SIZE(uart_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/nrf52840dk/Makefile.features b/boards/nrf52840dk/Makefile.features index fbed9c2b25..04c16f528b 100644 --- a/boards/nrf52840dk/Makefile.features +++ b/boards/nrf52840dk/Makefile.features @@ -5,3 +5,4 @@ include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.features # Various other features (if any) FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_usbdev +FEATURES_PROVIDED += vdd_lc_filter_reg0 diff --git a/boards/nrf52840dongle/Makefile.features b/boards/nrf52840dongle/Makefile.features index bd678939fe..64d19406c7 100644 --- a/boards/nrf52840dongle/Makefile.features +++ b/boards/nrf52840dongle/Makefile.features @@ -4,6 +4,8 @@ CPU_MODEL = nrf52840xxaa FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +FEATURES_PROVIDED += vdd_lc_filter_reg0 +FEATURES_PROVIDED += vdd_lc_filter_reg1 # Various other features (if any) FEATURES_PROVIDED += highlevel_stdio diff --git a/boards/nrf52840dongle/include/periph_conf.h b/boards/nrf52840dongle/include/periph_conf.h index ac8d460b34..3840c52ce1 100644 --- a/boards/nrf52840dongle/include/periph_conf.h +++ b/boards/nrf52840dongle/include/periph_conf.h @@ -71,13 +71,6 @@ static const pwm_conf_t pwm_config[] = { #define PWM_NUMOF ARRAY_SIZE(pwm_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#ifndef NRF5X_ENABLE_DCDC -#define NRF5X_ENABLE_DCDC 1 -#endif - #ifdef __cplusplus } #endif diff --git a/boards/particle-argon/include/periph_conf.h b/boards/particle-argon/include/periph_conf.h index 2057e7b174..51aa1e02b1 100644 --- a/boards/particle-argon/include/periph_conf.h +++ b/boards/particle-argon/include/periph_conf.h @@ -60,11 +60,6 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF ARRAY_SIZE(uart_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/particle-boron/include/periph_conf.h b/boards/particle-boron/include/periph_conf.h index 8bcd61a7ec..b75e77f3aa 100644 --- a/boards/particle-boron/include/periph_conf.h +++ b/boards/particle-boron/include/periph_conf.h @@ -60,11 +60,6 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF ARRAY_SIZE(uart_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/particle-xenon/include/periph_conf.h b/boards/particle-xenon/include/periph_conf.h index f0ff0e8698..7472a02cfb 100644 --- a/boards/particle-xenon/include/periph_conf.h +++ b/boards/particle-xenon/include/periph_conf.h @@ -60,11 +60,6 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF ARRAY_SIZE(uart_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/pinetime/Makefile.features b/boards/pinetime/Makefile.features index 53a8d3d1a0..53578f9b44 100644 --- a/boards/pinetime/Makefile.features +++ b/boards/pinetime/Makefile.features @@ -4,5 +4,6 @@ CPU_MODEL = nrf52832xxaa FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_spi #FEATURES_PROVIDED += periph_uart +FEATURES_PROVIDED += vdd_lc_filter_reg1 include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/pinetime/include/periph_conf.h b/boards/pinetime/include/periph_conf.h index 1066d67a52..7455df2042 100644 --- a/boards/pinetime/include/periph_conf.h +++ b/boards/pinetime/include/periph_conf.h @@ -64,11 +64,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF ARRAY_SIZE(i2c_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/reel/Makefile.features b/boards/reel/Makefile.features index e96ab8ee7c..2ed3d7f90c 100644 --- a/boards/reel/Makefile.features +++ b/boards/reel/Makefile.features @@ -5,6 +5,7 @@ FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +FEATURES_PROVIDED += vdd_lc_filter_reg1 # Various other features (if any) diff --git a/boards/reel/include/periph_conf.h b/boards/reel/include/periph_conf.h index fbe1f41d6d..234ad239f3 100644 --- a/boards/reel/include/periph_conf.h +++ b/boards/reel/include/periph_conf.h @@ -68,11 +68,6 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF ARRAY_SIZE(spi_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/ruuvitag/Makefile.features b/boards/ruuvitag/Makefile.features index fecb076954..8c1feef43f 100644 --- a/boards/ruuvitag/Makefile.features +++ b/boards/ruuvitag/Makefile.features @@ -3,5 +3,6 @@ CPU_MODEL = nrf52832xxaa # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart +FEATURES_PROVIDED += vdd_lc_filter_reg1 include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/ruuvitag/include/periph_conf.h b/boards/ruuvitag/include/periph_conf.h index a4bc2ac210..ee7390f9ff 100644 --- a/boards/ruuvitag/include/periph_conf.h +++ b/boards/ruuvitag/include/periph_conf.h @@ -55,11 +55,6 @@ static const spi_conf_t spi_config[] = { #define UART_PIN_TX GPIO_PIN(0, 5) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif diff --git a/boards/thingy52/Makefile.features b/boards/thingy52/Makefile.features index f8e8dadfd9..3ac7472acb 100644 --- a/boards/thingy52/Makefile.features +++ b/boards/thingy52/Makefile.features @@ -3,5 +3,6 @@ CPU_MODEL = nrf52832xxaa # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_uart +FEATURES_PROVIDED += vdd_lc_filter_reg1 include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/thingy52/include/periph_conf.h b/boards/thingy52/include/periph_conf.h index 86237ce391..6e53f6f6c7 100644 --- a/boards/thingy52/include/periph_conf.h +++ b/boards/thingy52/include/periph_conf.h @@ -62,11 +62,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF ARRAY_SIZE(i2c_config) /** @} */ -/** - * @brief Enable the internal DC/DC converter - */ -#define NRF5X_ENABLE_DCDC - #ifdef __cplusplus } #endif From 72db395963cfbb6e3c881d418ee3adfc1fe41de6 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 18 Feb 2021 15:26:44 +0100 Subject: [PATCH 4/5] cpu/nrf5x/kconfig: add VDD_LC_FILTER_REGx features --- cpu/nrf5x_common/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cpu/nrf5x_common/Kconfig b/cpu/nrf5x_common/Kconfig index 5f0812254e..b4968096ac 100644 --- a/cpu/nrf5x_common/Kconfig +++ b/cpu/nrf5x_common/Kconfig @@ -43,4 +43,16 @@ config HAS_RADIO_NRFMIN Indicates that a radio compatible with the nRF minimal radio driver is present. +config HAS_VDD_LC_FILTER_REG0 + bool + help + Indicates that a board is equipped with an external LC filter circuit + attached to the CPUs voltage regulator stage 0. + +config HAS_VDD_LC_FILTER_REG1 + bool + help + Indicates that a board is equipped with an external LC filter circuit + attached to the CPUs voltage regulator stage 1. + source "$(RIOTCPU)/cortexm_common/Kconfig" From 306c75186db6bb995c3e294c6e2ca8b26e27956a Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 18 Feb 2021 15:27:21 +0100 Subject: [PATCH 5/5] boards/nrf-based: select VDD_LC_FILTER feature(s) --- boards/common/nrf52xxxdk/Kconfig | 1 + boards/common/particle-mesh/Kconfig | 1 + boards/dwm1001/Kconfig | 1 + boards/microbit-v2/Kconfig | 1 + boards/nrf51dk/Kconfig | 1 + boards/nrf52832-mdk/Kconfig | 1 + boards/nrf52840-mdk/Kconfig | 1 + boards/nrf52840dk/Kconfig | 1 + boards/nrf52840dongle/Kconfig | 2 ++ boards/pinetime/Kconfig | 1 + boards/reel/Kconfig | 1 + boards/ruuvitag/Kconfig | 1 + boards/thingy52/Kconfig | 1 + 13 files changed, 14 insertions(+) diff --git a/boards/common/nrf52xxxdk/Kconfig b/boards/common/nrf52xxxdk/Kconfig index e98b09734f..e23578732d 100644 --- a/boards/common/nrf52xxxdk/Kconfig +++ b/boards/common/nrf52xxxdk/Kconfig @@ -11,5 +11,6 @@ config BOARD_COMMON_NRF52XXXDK select HAS_PERIPH_PWM select HAS_PERIPH_SPI select HAS_PERIPH_UART + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/common/particle-mesh/Kconfig b/boards/common/particle-mesh/Kconfig index 0ef67c8724..df143f6e53 100644 --- a/boards/common/particle-mesh/Kconfig +++ b/boards/common/particle-mesh/Kconfig @@ -14,5 +14,6 @@ config BOARD_COMMON_PARTICLE_MESH select HAS_PERIPH_UART select HAS_PERIPH_USBDEV select HAS_HIGHLEVEL_STDIO + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/dwm1001/Kconfig b/boards/dwm1001/Kconfig index 039c788b63..8325cfaa08 100644 --- a/boards/dwm1001/Kconfig +++ b/boards/dwm1001/Kconfig @@ -15,5 +15,6 @@ config BOARD_DWM1001 select HAS_PERIPH_I2C select HAS_PERIPH_SPI select HAS_PERIPH_UART + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/microbit-v2/Kconfig b/boards/microbit-v2/Kconfig index cadbbbfad4..945fb13b9a 100644 --- a/boards/microbit-v2/Kconfig +++ b/boards/microbit-v2/Kconfig @@ -16,5 +16,6 @@ config BOARD_MICROBIT_V2 select HAS_PERIPH_PWM select HAS_PERIPH_SPI select HAS_PERIPH_UART + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/nrf51dk/Kconfig b/boards/nrf51dk/Kconfig index 54345dc22e..7802dde835 100644 --- a/boards/nrf51dk/Kconfig +++ b/boards/nrf51dk/Kconfig @@ -16,5 +16,6 @@ config BOARD_NRF51DK select HAS_PERIPH_SPI select HAS_PERIPH_UART select HAS_PERIPH_UART_HW_FC + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf51/Kconfig" diff --git a/boards/nrf52832-mdk/Kconfig b/boards/nrf52832-mdk/Kconfig index 1e9fb94531..b6f8b4558c 100644 --- a/boards/nrf52832-mdk/Kconfig +++ b/boards/nrf52832-mdk/Kconfig @@ -14,5 +14,6 @@ config BOARD_NRF52832_MDK select CPU_MODEL_NRF52832XXAA select HAS_PERIPH_I2C select HAS_PERIPH_UART + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/nrf52840-mdk/Kconfig b/boards/nrf52840-mdk/Kconfig index 0cd451d961..a33f3db185 100644 --- a/boards/nrf52840-mdk/Kconfig +++ b/boards/nrf52840-mdk/Kconfig @@ -16,5 +16,6 @@ config BOARD_NRF52840_MDK select HAS_PERIPH_SPI select HAS_PERIPH_UART select HAS_PERIPH_USBDEV + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/nrf52840dk/Kconfig b/boards/nrf52840dk/Kconfig index 8f2a59fde0..f37c3544a5 100644 --- a/boards/nrf52840dk/Kconfig +++ b/boards/nrf52840dk/Kconfig @@ -14,5 +14,6 @@ config BOARD_NRF52840DK select CPU_MODEL_NRF52840XXAA select HAS_PERIPH_PWM select HAS_PERIPH_USBDEV + select HAS_VDD_LC_FILTER_REG0 source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig" diff --git a/boards/nrf52840dongle/Kconfig b/boards/nrf52840dongle/Kconfig index e8f64a9a70..4bc6cae0ce 100644 --- a/boards/nrf52840dongle/Kconfig +++ b/boards/nrf52840dongle/Kconfig @@ -16,5 +16,7 @@ config BOARD_NRF52840DONGLE select HAS_PERIPH_UART select HAS_PERIPH_USBDEV select HAS_HIGHLEVEL_STDIO + select HAS_VDD_LC_FILTER_REG0 + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/pinetime/Kconfig b/boards/pinetime/Kconfig index 4c8d2a6274..b1beb29de2 100644 --- a/boards/pinetime/Kconfig +++ b/boards/pinetime/Kconfig @@ -14,5 +14,6 @@ config BOARD_PINETIME select CPU_MODEL_NRF52832XXAA select HAS_PERIPH_I2C select HAS_PERIPH_SPI + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/reel/Kconfig b/boards/reel/Kconfig index 19bb1c0bc1..66fd38cbdc 100644 --- a/boards/reel/Kconfig +++ b/boards/reel/Kconfig @@ -16,5 +16,6 @@ config BOARD_REEL select HAS_PERIPH_SPI select HAS_PERIPH_UART select HAS_PERIPH_USBDEV + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/ruuvitag/Kconfig b/boards/ruuvitag/Kconfig index 328c7e539e..61521fe57d 100644 --- a/boards/ruuvitag/Kconfig +++ b/boards/ruuvitag/Kconfig @@ -14,5 +14,6 @@ config BOARD_RUUVITAG select CPU_MODEL_NRF52832XXAA select HAS_PERIPH_SPI select HAS_PERIPH_UART + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/thingy52/Kconfig b/boards/thingy52/Kconfig index 8818b4c37c..54af2897df 100644 --- a/boards/thingy52/Kconfig +++ b/boards/thingy52/Kconfig @@ -14,5 +14,6 @@ config BOARD_THINGY52 select CPU_MODEL_NRF52832XXAA select HAS_PERIPH_I2C select HAS_PERIPH_UART + select HAS_VDD_LC_FILTER_REG1 source "$(RIOTBOARD)/common/nrf52/Kconfig"