Skip to content

Commit d619fd6

Browse files
nordic-krchkartben
authored andcommitted
boards: nordic: Set 64M CPU frequency for nrf54l20pdk and nrf54l09pdk
nrf54l20pdk and nrf54l09pdk must use 64 MHz for now. So far it was done by using SOC_NRF54LX_SKIP_CLOCK_CONFIG Kconfig option which was skipping oscillator configuration so that it was running the default frequency (which is 64 MHz). This approach was a bit cryptic because DT was indicating that CPU was running 128 MHz when actual frequency was different (and it was relying on assumption that default frequency is 64 MHz). After adding hfpll as clock source for CPU Kconfig option can be replaced with DT setting where actual frequency is correctly indicated. Since hfpll is a clock source for fast peripherals (e.g. TIMER00) it is possible to have single source of information regarding frequency. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 4abc98e commit d619fd6

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

boards/nordic/nrf54l09pdk/Kconfig.defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ config BT_CTLR
99
config ROM_START_OFFSET
1010
default 0x800 if BOOTLOADER_MCUBOOT
1111

12-
config SOC_NRF54LX_SKIP_CLOCK_CONFIG
13-
default y
14-
1512
config SOC_NRF54LX_SKIP_GLITCHDETECTOR_DISABLE
1613
default y
1714

boards/nordic/nrf54l09pdk/nrf54l09_cpuapp_common.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
status = "okay";
2828
};
2929

30+
&hfpll {
31+
/* For now use 64 MHz clock for CPU and fast peripherals. */
32+
clock-frequency = <DT_FREQ_M(64)>;
33+
};
34+
3035
&lfxo {
3136
load-capacitors = "internal";
3237
load-capacitance-femtofarad = <15500>;

boards/nordic/nrf54l20pdk/Kconfig.defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ if BOARD_NRF54L20PDK_NRF54L20_CPUAPP
66
config ROM_START_OFFSET
77
default 0x800 if BOOTLOADER_MCUBOOT
88

9-
config SOC_NRF54LX_SKIP_CLOCK_CONFIG
10-
default y
11-
129
config SOC_NRF54LX_SKIP_GLITCHDETECTOR_DISABLE
1310
default y
1411

boards/nordic/nrf54l20pdk/nrf54l20_cpuapp_common.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
status = "okay";
2828
};
2929

30+
&hfpll {
31+
/* For now use 64 MHz clock for CPU and fast peripherals. */
32+
clock-frequency = <DT_FREQ_M(64)>;
33+
};
34+
3035
&lfxo {
3136
load-capacitors = "internal";
3237
load-capacitance-femtofarad = <15500>;

0 commit comments

Comments
 (0)