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

[WIP] Pull in global hsfll clock device driver #2300

Draft
wants to merge 73 commits into
base: main
Choose a base branch
from

Conversation

bjarki-andreasen
Copy link
Contributor

@bjarki-andreasen bjarki-andreasen commented Nov 26, 2024

Pull in global hsfll clock device driver. The PR is not yet tested upstream nor downstream. It is based on #2147 which includes a "mini upmerge" and adds on top manifest updates to hal_nordic from upstream as well.

Build the samples:

west build -p -b nrf54h20dk/nrf54h20/cpuapp zephyr/samples/boards/nordic/clock_control/ -T sample.boards.nrf.clock_control.global_hsfll

and

west build -p -b nrf54h20dk/nrf54h20/cpuapp zephyr/tests/drivers/clock_control/nrf_clock_control/

to test it locally.

carlescufi and others added 30 commits November 22, 2024 14:20
…before"

This reverts commit d801762.

Signed-off-by: Grzegorz Swiderski <[email protected]>
…cted accuracy"

This reverts commit 438fad3.

Signed-off-by: Grzegorz Swiderski <[email protected]>
… gain for nrf54."

This reverts commit 3f00446.

Signed-off-by: Grzegorz Swiderski <[email protected]>
This reverts commit 57edf6e.

Signed-off-by: Grzegorz Swiderski <[email protected]>
This reverts commit e0ea947.

Signed-off-by: Grzegorz Swiderski <[email protected]>
This reverts commit a392ecc.

Signed-off-by: Grzegorz Swiderski <[email protected]>
…efault"

This reverts commit 8d6a853.

Signed-off-by: Grzegorz Swiderski <[email protected]>
…s DT"

This reverts commit e02f019.

Signed-off-by: Grzegorz Swiderski <[email protected]>
…ariant"

This reverts commit 5006098.

Signed-off-by: Grzegorz Swiderski <[email protected]>
This reverts commit 9a0b81b.

Signed-off-by: Grzegorz Swiderski <[email protected]>
…n flpr"

This reverts commit a278ee4.

Signed-off-by: Grzegorz Swiderski <[email protected]>
Turn off suspending MRAM for nRF54H20 SoC.
This change is required so sections of code depending on critical
timings will not have unacceptable latency.

Signed-off-by: Carles Cufi <[email protected]>
Signed-off-by: Jan Zyczkowski <[email protected]>
Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 58284ff)
(cherry picked from commit 9b6cae8)
(cherry picked from commit 2c2f60d)
(cherry picked from commit a70d6bd)
Add MCXC444 support

Signed-off-by: Neil Chen <[email protected]>
(cherry picked from commit 880952d)
add frdm_mcxc444 support

Signed-off-by: Neil Chen <[email protected]>
(cherry picked from commit 16bd2e8)
Update hal_nxp hash to point to the latest version.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
(cherry picked from commit 93c2b29)
Replace SYS_INIT with SoC hooks and adapt SoC init code

Signed-off-by: Anas Nashif <[email protected]>
(cherry picked from commit b73c557)
Add MCXW71 SOC, which inherits some qualitiies
of kinetis heritage platforms.

Signed-off-by: Declan Snyder <[email protected]>
(cherry picked from commit cbee39e)
Add FRDM-MCXW71 initial board.

Signed-off-by: Declan Snyder <[email protected]>
(cherry picked from commit 846601f)
Add support for BeaglePlay, a TI AM6254 SoC based development board with a
CC1352P7 wireless microcontroller for supporting software defined 2.4GHz
and SubGHz wireless protocols. Support for running Zephyr on the
quad-A53 SoC or the programmable M4 on the SoC would be provided
separately.

See https://beagleplay.org for details.

Signed-off-by: Jason Kridner <[email protected]>
Signed-off-by: Ayush Singh <[email protected]>
(cherry picked from commit 2eda5f3)
Enable ADC tests for frdm_mcxc242 board.

Signed-off-by: Michal Smola <[email protected]>
(cherry picked from commit f810e13)
Enable Cortex R8 support, similar to Cortex-R5.

Signed-off-by: Krzysztof Sychla <[email protected]>
Signed-off-by: Marek Slowinski <[email protected]>
Signed-off-by: Piotr Zierhoffer <[email protected]>
Signed-off-by: Mateusz Hołenko <[email protected]>
(cherry picked from commit 5d76b56)
Signed-off-by: Carles Cufi <[email protected]>
Add virtual Cortex R8 SoC. This target does not represent a real SoC,
but can be easily run in Renode.

This will allow to easily test basic architecture support.

Signed-off-by: Krzysztof Sychla <[email protected]>
Signed-off-by: Marek Slowinski <[email protected]>
Signed-off-by: Piotr Zierhoffer <[email protected]>
Signed-off-by: Mateusz Hołenko <[email protected]>
(cherry picked from commit dc433dd)
This commit adds a virtual target using the `cortex_r8_virtual` SoC.
It can be used for testing purposes and a starting point to add new R8
platforms.

Signed-off-by: Krzysztof Sychla <[email protected]>
Signed-off-by: Marek Slowinski <[email protected]>
Signed-off-by: Piotr Zierhoffer <[email protected]>
Signed-off-by: Mateusz Hołenko <[email protected]>
(cherry picked from commit 92d4a88)
This automated patch is inserted before a cherry-pick of:

50ffc77 boards: add board full_name field

This allows the above commit to be applied cleanly, even though it
appears to conflict with the following commit(s):

ad3a56e [nrf fromlist] cmake: scripts: support board extension

The conflicts are left to be fixed in a follow-up patch, instead of
doing so in the cherry-pick itself.

Signed-off-by: Grzegorz Swiderski <[email protected]>
Full name or description of a board is something we are missing in
HWVv2. It is right now being added to yaml files parsed by twister. This
should be generically available to tooling and documentation
independently from twister.

As we rework how twister parses board meta-data (#77250) and how we
generate board documentation (#79160), this becomes neceassry.

Moving the board full name/description from the twister yaml files to
the board.yaml is something we can automate once the schema is agreed
upon.

Signed-off-by: Anas Nashif <[email protected]>
(cherry picked from commit 50ffc77)
This patch finalizes the 3-way merge between:

50ffc77 boards: add board full_name field

and:

ad3a56e [nrf fromlist] cmake: scripts: support board extension

Signed-off-by: Grzegorz Swiderski <[email protected]>
Use the description field for the full name/description of the boards.

Signed-off-by: Anas Nashif <[email protected]>
(cherry picked from commit 55489f5)
The recently introduced board.full_name property can now be used as part
of the format string in the `west boards -f ...` command.

Signed-off-by: Benjamin Cabé <[email protected]>
(cherry picked from commit acbda31)
aescolar and others added 11 commits November 23, 2024 12:00
Update the HW models module to:
42737c8ec8485987c7c9b0262b136de623e1ded2

Including the following:
42737c8 TIMER: Support devices without TASK_SHUTDOWN nrfx3.9 MDK 8.68
5fe6873 54 UARTE: Add frametimeout functionality
dc086d7 UARTE: Add basic 54 support
b046745 UARTE: Support better not having UART functionality
1c5f58c README: Mention the nRF54L15 models cover the L10 and L05
597c7d0 TEMP: Also build hal replacement for 54 and define NRF_TEMP_NS/S
fb2ca83 Makefile: Let's build libraries (specially HAL) as pic
200a1e3 Makefiles: move some common options to common snippet

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 30f0d85fa0da3aa0e010d1fa5b3134c93f01d87a)
…ith nrfx3.9

Update the HW models module to:
3cfca0192ff84da919e9bc7978bcc2239cd6a395

This includes 2 changes:
* 3cfca01 UART: Model more accurately TASKS_FLUSH behaviour
* 25cbd28: 54L15: Change CLOKPOWER IRQ line (MDK 8.68, nrfx 3.9.0)

    WARNING! This change breaks backwards compatibility with SW
    which expected this line to be 270 for 54L15 devices,
    and therefore with MDKs < 8.68 & nrfx < 3.9.0.
    This change requires updating to the MDK >=8.68 and nrfx >=3.9.0
    if building using the 54L15 models.
    52 and 53 models are not affected.

    Change the CLOCK_POWER interrupt line from 270 to 261.
    This has changed in the latest MDK (8.68) and the new
    value is used in the latest nrfx (3.9.0) drivers.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit ef55d65449f8391105b3de4ca4c13514dee2039a)
TASK_SHUTDOWN was deprecated in newer SOCs and now removed
in MDK 8.68 (nrfx 3.9.0)

Signed-off-by: Alberto Escolar Piedras <[email protected]>
Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
(cherry picked from commit 4294814a23b51b8d75744f169ee02548ba2eee3c)
There are many common options to all ICs of the 54L series. Consolidate
them in a single entry so that they do not need to be re-typed for each
SoC series member.

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 0b3a15016bf51d950dc527611ede8bc71ed71f81)
These two new ICs are variants of the nRF54L15 with different memory
sizes:

- nRF54L05: 500KB RRAM, 96KB RAM
- nRF54L10: 1022KB RRAM, 192KB RAM
- nRF54L15: 1524KB RRAM, 256KB RAM

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit e78832034f1ea3632524f2cbdbe290082483ddf6)
Use the rather logical convention for the name that is applied to other
Nordic boards: <board>_common.dtsi for definitions that are common to
the board itself (LEDs, buttons, etc).

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 1b84958f5a99de356b2938e9628f086fab1c0fce)
…L05 and L10 ICs

The nRF54L05 and nRF54L10 are identical to the nRF54L15 except for their
memory sizes. Add support for emulating those ICs on the nRF54L15DK.
This commit only adds support for the main application core. Support for
the FLPR core may be added later.

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 21475774fc412fed7273408de65ee69bcdd1b84e)
This adds the nrf54l15dk/nrf54l15/cpuapp/ns board variant to
sdk-zephyr. It allows to build nRF54l15dk with TF-M in nRF Connect SDK.

This is done as a noup as the out-of-tree board extension feature is
not available. When zephyrproject-rtos/zephyr#69548 is completed this
commit can be reverted and the variant be placed in sdk-nrf.

Signed-off-by: Tomi Fontanilles <[email protected]>
(cherry picked from commit 6b4c840)
This is a long-term noup patch because crypto driver support is
NCS-only for both cryptocell and CRACEN.

Set HAS_HW_NRF_CC3XX to be defined in NS build when cryptocell
is accessed through the PSA API.
We need to know which CC3XX features are available.

Set PSA as the entropy source for 54L.

PSA is the only NCS-supported interface to CRACEN.

Signed-off-by: Georgios Vasilakis <[email protected]>
Signed-off-by: Joakim Andersson <[email protected]>
Signed-off-by: Dominik Ermel <[email protected]>
Signed-off-by: Sebastian Bøe <[email protected]>
Signed-off-by: Robert Lubos <[email protected]>
Signed-off-by: Rubin Gerritsen <[email protected]>
(cherry picked from commit d643f17)
The SoftDevice Controller is a different controller than
the open source link layer with a different set of quirks.
It should therefore have its own device tree binding.

This commit converts the SoftDevice Controller driver
to use this new DTS binding instead of reusing the existing one.

This commit updates or adds additional overlays for
existing samples, applications and tests that were using the
open source link layer.

Signed-off-by: Rubin Gerritsen <[email protected]>
(cherry picked from commit 8d6a853)
Pulls PR that removed nRF Wi-Fi.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit e512151474ca964302de2e9f8d25ecf13e3bcb16)
bjarki-andreasen and others added 6 commits November 26, 2024 23:55
Update hal_nordic revision to include nrfs gdfs

Signed-off-by: Bjarki Arge Andreasen <[email protected]>

Upstream PR #: 81735
Adding the implementation for the GDFS service

Upstream PR #: 81735

Signed-off-by: Paweł Pelikan <[email protected]>
Add specific device model for global hsfll clock and update dts tree
to use specific model. The clock is not fixed, and configurable at
runtime to predefined frequencies specified by the platform.

Upstream PR #: 81735

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
…fsll clock

Add device driver support for global hsfll clock.

Upstream PR #: 81735

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
… hsfll

Extend sample to support global hsfll clock control.

Upstream PR #: 81735

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
…lock

Extend test suite to test global HSFLL clock.

Upstream PR #: 81735

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.