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 <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruściński 2025-01-03 11:56:54 +01:00 committed by Benjamin Cabé
parent 4abc98edc5
commit d619fd607c
4 changed files with 10 additions and 6 deletions

View file

@ -9,9 +9,6 @@ config BT_CTLR
config ROM_START_OFFSET
default 0x800 if BOOTLOADER_MCUBOOT
config SOC_NRF54LX_SKIP_CLOCK_CONFIG
default y
config SOC_NRF54LX_SKIP_GLITCHDETECTOR_DISABLE
default y

View file

@ -27,6 +27,11 @@
status = "okay";
};
&hfpll {
/* For now use 64 MHz clock for CPU and fast peripherals. */
clock-frequency = <DT_FREQ_M(64)>;
};
&lfxo {
load-capacitors = "internal";
load-capacitance-femtofarad = <15500>;

View file

@ -6,9 +6,6 @@ if BOARD_NRF54L20PDK_NRF54L20_CPUAPP
config ROM_START_OFFSET
default 0x800 if BOOTLOADER_MCUBOOT
config SOC_NRF54LX_SKIP_CLOCK_CONFIG
default y
config SOC_NRF54LX_SKIP_GLITCHDETECTOR_DISABLE
default y

View file

@ -27,6 +27,11 @@
status = "okay";
};
&hfpll {
/* For now use 64 MHz clock for CPU and fast peripherals. */
clock-frequency = <DT_FREQ_M(64)>;
};
&lfxo {
load-capacitors = "internal";
load-capacitance-femtofarad = <15500>;