Skip to content

Commit

Permalink
boards: nrf52*: use DT to configure regulators
Browse files Browse the repository at this point in the history
Migrate from the deprecated Kconfig option to configure regulators
of the nRF52 SoC series to DTS description.

This change aligns the sdk-nrf repository with the upstream changes
that were introduced in the following commit:

zephyrproject-rtos/zephyr@9097d5dac5a354c4fc0

Ref: NCSDK-29757

Signed-off-by: Kamil Piszczek <[email protected]>
  • Loading branch information
kapi-no authored and nordicjm committed Oct 28, 2024
1 parent a25a0d0 commit fc95425
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 79 deletions.
14 changes: 0 additions & 14 deletions boards/nordic/nrf52820dongle/Kconfig

This file was deleted.

4 changes: 4 additions & 0 deletions boards/nordic/nrf52820dongle/nrf52820dongle_nrf52820.dts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
};
};

&reg1 {
regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
};

&uicr {
gpio-as-nreset;
};
Expand Down
14 changes: 0 additions & 14 deletions boards/nordic/nrf52833dongle/Kconfig

This file was deleted.

4 changes: 4 additions & 0 deletions boards/nordic/nrf52833dongle/nrf52833dongle_nrf52833.dts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
};
};

&reg1 {
regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
};

&uicr {
nfct-pins-as-gpios;
gpio-as-nreset;
Expand Down
14 changes: 0 additions & 14 deletions boards/nordic/nrf52840gmouse/Kconfig

This file was deleted.

4 changes: 4 additions & 0 deletions boards/nordic/nrf52840gmouse/nrf52840gmouse_nrf52840.dts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
status = "okay";
};

&reg1 {
regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
};

&adc {
status = "okay";
};
Expand Down
14 changes: 0 additions & 14 deletions boards/nordic/nrf52dmouse/Kconfig

This file was deleted.

4 changes: 4 additions & 0 deletions boards/nordic/nrf52dmouse/nrf52dmouse_nrf52832.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
};
};

&reg {
regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
};

&adc {
status = "okay";
};
Expand Down
14 changes: 0 additions & 14 deletions boards/nordic/nrf52kbd/Kconfig

This file was deleted.

4 changes: 4 additions & 0 deletions boards/nordic/nrf52kbd/nrf52kbd_nrf52832.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
};
};

&reg {
regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
};

&adc {
status = "okay";
};
Expand Down
9 changes: 0 additions & 9 deletions boards/nordic/thingy91/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

if BOARD_THINGY91_NRF52840

config BOARD_ENABLE_DCDC
bool "Enable DCDC mode"
select SOC_DCDC_NRF52X
default y

endif # BOARD_THINGY91_NRF52840

if BOARD_THINGY91_NRF9160 || BOARD_THINGY91_NRF9160_NS

config BOARD_INIT_PRIORITY
Expand Down
4 changes: 4 additions & 0 deletions boards/nordic/thingy91/thingy91_nrf52840.dts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
};
};

&reg1 {
regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
};

&adc {
status = "okay";
};
Expand Down

0 comments on commit fc95425

Please sign in to comment.