Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move clocks configuration to DT #1

Closed

Conversation

gmarull
Copy link

@gmarull gmarull commented Jan 19, 2024

No description provided.

magp-nordic and others added 30 commits January 18, 2024 15:17
Align UARTE driver config to nRF54L15.

Signed-off-by: Magdalena Pastula <[email protected]>
SYSTEM_CLOCK_WAIT will be a common part for a next
version of Nordic timer.

Signed-off-by: Witold Lukasik <[email protected]>
NRF_RTC_TIMER will not be a default timer in the next
version of Nordic timer. It should be soc selection specific.

Signed-off-by: Witold Lukasik <[email protected]>
Add dts bindings for Global Real-Time Counter.

Signed-off-by: Magdalena Pastula <[email protected]>
Add GRTC instance in Nordic HAL configs.

Signed-off-by: Magdalena Pastula <[email protected]>
Add GRTC as possible clock source.

Signed-off-by: Magdalena Pastula <[email protected]>
Add Nordic driver for GRTC.

Signed-off-by: Magdalena Pastula <[email protected]>
Add new TIMER instances for nRF54L15.

Signed-off-by: Magdalena Pastula <[email protected]>
Add new TIMER instances for nRF54L15.

Signed-off-by: Magdalena Pastula <[email protected]>
Add new UARTE instances for nRF54L15.

Signed-off-by: Magdalena Pastula <[email protected]>
Add new UARTE instances for nRF54L15.

Signed-off-by: Magdalena Pastula <[email protected]>
Add address validation for new WDT instances on nRF54L15.

Signed-off-by: Witold Lukasik <[email protected]>
Add dts files for nRF54L15 chip.

Signed-off-by: Witold Lukasik <[email protected]>
RRAM is a part of nRF54L15 SOC.

Signed-off-by: Witold Lukasik <[email protected]>
Add soc files for new Nordic family.

Signed-off-by: Witold Lukasik <[email protected]>
Add config files for nRF54L15.

Signed-off-by: Witold Lukasik <[email protected]>
Add board files for nRF54L15 DK.

Signed-off-by: Witold Lukasik <[email protected]>
Add Nordic driver for cache.

Signed-off-by: Witold Lukasik <[email protected]>
Add support for new Nordic family in west commands.

Signed-off-by: Witold Lukasik <[email protected]>
Add overlay file for counter_basic_api test.

Signed-off-by: Witold Lukasik <[email protected]>
Chaged _ISR_OFFSET to be 28 as specified in OPS.
Added nrfx_uarte_20_irq_handler as CONSOLE_UART_IRQ_HANDLER.

Signed-off-by: Witold Lukasik <[email protected]>
Add overlay files to uart tests for nRF54L15.

Signed-off-by: Witold Lukasik <[email protected]>
Add overlay file for gpio_basic_api test.

Signed-off-by: Magdalena Pastula <[email protected]>
Add overlay files for i2s tests.

Signed-off-by: Magdalena Pastula <[email protected]>
Add overlay file to spi_loopback test for nRF54L15.

Signed-off-by: Magdalena Pastula <[email protected]>
Add overlay file for wdt_basic_api test.

Signed-off-by: Magdalena Pastula <[email protected]>
Add overlay file for qdec test.

Signed-off-by: Magdalena Pastula <[email protected]>
Add overlay file for watchdog sample.

Signed-off-by: Magdalena Pastula <[email protected]>
Update hwinfo driver to be aligned to nRF54L15.

Signed-off-by: Magdalena Pastula <[email protected]>
In nRF54L15 FICR can be accessed also from non-secure code,
so it does not have NRF_FICR_S defined.

Signed-off-by: Magdalena Pastula <[email protected]>
To describe the low frequency crystal oscillator present in some nRF
series.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
include: [fixed-clock.yaml]

properties:
clock-frequency:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about crystal-frequency? So it's not confused with frequencies generated by CLOCK.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a property inherited from fixed-clock, and specified the frequency of the clock itself (not of any other generated clock using this one as a source). I'd align with others using fixed-clock (a similar case is STM32 HSE)

lfxo: lfxo {
compatible = "nordic,nrf-lfxo";
#clock-cells = <0>;
clock-frequency = <32768>;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this superfluous since

  clock-frequency:
    const: 32768

?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's still required

devicetree error: 'clock-frequency' is marked as required in 'properties:' in /home/gmarull/ws/nordic/zephyrproject/zephyr/dts/bindings/clock/nordic,nrf-lfxo.yaml, but does not appear in <Node /clocks/lfxo in '/home/gmarull/ws/nordic/zephyrproject/zephyr/misc/empty_file.c'>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# 'const' is just a special case of an enum with a single possible value I had no idea, the more you know

hfxo: hfxo {
compatible = "nordic,nrf-hfxo";
#clock-cells = <0>;
clock-frequency = <32000000>;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As previous

Add LFXO clock node.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Configure LFXO to use internal capacitors with 15.5pF.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Instead of relying on Kconfig options.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Add bindings for the nRF HFXO present in some nRF SoCs.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
For HFXO.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
To use internal capacitors, with 15pF value.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Instead of Kconfig

Signed-off-by: Gerard Marull-Paretas <[email protected]>
@magp-nordic
Copy link
Owner

These changes are now integrated in zephyrproject-rtos#67446 . If you have any notes, please comment there.
Only two commits were cherry-picked, the rest of the changes were included in commits adding NRF54L15 platform (dts, soc and board files).

@gmarull gmarull deleted the upstream-nrf54l15 branch June 5, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants