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:
parent
e189fb0720
commit
9097d5dac5
116 changed files with 282 additions and 604 deletions
|
@ -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
|
||||
|
|
|
@ -69,6 +69,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
®1 {
|
||||
regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
|
||||
};
|
||||
|
||||
&gpiote {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue