From 437e6c61ccd204afccc1b991f95cd579a09ae128 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 14 Oct 2024 11:16:28 +0200 Subject: [PATCH 1/2] boards: custom_plank: use DT to enable DCDC custom_plank is a sample custom board template usable on nRF52840DK. The DCDC module on the nRF52840 SoC is now enabled using DT, the Kconfig options are deprecated, so let's keep up to date. Signed-off-by: Gerard Marull-Paretas --- boards/vendor/custom_plank/Kconfig | 8 -------- boards/vendor/custom_plank/custom_plank.dts | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 boards/vendor/custom_plank/Kconfig diff --git a/boards/vendor/custom_plank/Kconfig b/boards/vendor/custom_plank/Kconfig deleted file mode 100644 index 8cd0b5520..000000000 --- a/boards/vendor/custom_plank/Kconfig +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2021 Nordic Semiconductor ASA -# SPDX-License-Identifier: Apache-2.0 - -config BOARD_ENABLE_DCDC - bool "Enable DCDC mode" - select SOC_DCDC_NRF52X - default y - depends on BOARD_CUSTOM_PLANK diff --git a/boards/vendor/custom_plank/custom_plank.dts b/boards/vendor/custom_plank/custom_plank.dts index d5143a80b..2da3308f2 100644 --- a/boards/vendor/custom_plank/custom_plank.dts +++ b/boards/vendor/custom_plank/custom_plank.dts @@ -29,6 +29,14 @@ }; }; +®0 { + status = "okay"; +}; + +®1 { + regulator-initial-mode = ; +}; + &uicr { gpio-as-nreset; }; From af55959a1703dc39929195b9f2c98600471a512b Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 14 Oct 2024 11:22:11 +0200 Subject: [PATCH 2/2] boards: custom_plank: suppress some DT warnings Nordic boards have some overlapping DT addresses, silent dtc as this is a known issue. Signed-off-by: Gerard Marull-Paretas --- boards/vendor/custom_plank/pre_dt_board.cmake | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 boards/vendor/custom_plank/pre_dt_board.cmake diff --git a/boards/vendor/custom_plank/pre_dt_board.cmake b/boards/vendor/custom_plank/pre_dt_board.cmake new file mode 100644 index 000000000..ded6fc3f7 --- /dev/null +++ b/boards/vendor/custom_plank/pre_dt_board.cmake @@ -0,0 +1,7 @@ +# Copyright (c) 2024 Nordic Semiconductor +# SPDX-License-Identifier: Apache-2.0 + +# Suppress "unique_unit_address_if_enabled" to handle the following overlaps: +# - power@40000000 & clock@40000000 & bprot@40000000 +# - acl@4001e000 & flash-controller@4001e000 +list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")