boards: nrf52*: use DT to configure regulators

Instead of board level options selecting SOC_DCDC_NRF52X or
SOC_DCDC_NRF52X_HV.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-06-20 10:23:10 +02:00 committed by Fabio Baltieri
commit 9097d5dac5
116 changed files with 282 additions and 604 deletions

View file

@ -3,19 +3,7 @@
# Copyright (c) 2024 CTHINGS.CO
# SPDX-License-Identifier: Apache-2.0
if BOARD_CTCC
if BOARD_CTCC_NRF52840
config BOARD_ENABLE_DCDC
bool "DCDC mode"
select SOC_DCDC_NRF52X
default y
config BOARD_SERIAL_BACKEND_CDC_ACM
bool "USB CDC"
default y
endif # BOARD_CTCC_NRF52840
endif # BOARD_CTCC
depends on BOARD_CTCC_NRF52840

View file

@ -69,6 +69,10 @@
};
};
&reg1 {
regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
};
&gpiote {
status = "okay";
};