Skip to content

Conversation

@mstasiaknordic
Copy link
Contributor

Add clock source to timers which indicates maximum frequency of the timer instance.

This enables execution of tests/drivers/counter/counter_basic_api on nrf54h20/cpurad

Upstream PR : zephyrproject-rtos/zephyr#82901

@mstasiaknordic
Copy link
Contributor Author

Needed to add [nrf fromtree] commits to avoid conflicts or noups

…rf54l15bsim

The HW models now support these pheripherals, let's enable them

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 4b890bc)
Enable this test, and provide overlays, in the nrf54l15bsim

Note this test specs 2 GPIO pins to be shorted. This can be done
for the simulation target by calling zephyr.exe with the option
`-gpio_conf_file=shorts_config.txt`
Where  that file would contain this one line (for the provided overlay)
---- shorts_config.txt
short 1.1 1.2
----

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 1b1d3ca)
Enable this test, and provide overlays, in the nrf54l15bsim

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit fb5ee60)
Enable this test by providing an overlay for the nrf54l15bsim

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 990fc4c)
…rf5340bsim

The HW models now support these pheripherals, let's enable them

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit d0746f1)
Enable this test, and provide overlays, for the nrf5340bsim.
Both for the app and net core.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 8bd0a25)
Enable this test, and provide overlays, in the nrf5340bsim

Note this test specs 2 GPIO pins to be shorted. This can be done
for the simulation target by calling zephyr.exe with the option
`-gpio_conf_file=shorts_config.txt`
Where  that file would contain this one line (for the provided overlay),
for the cpunet:
---- shorts_config.txt
short 1.1 1.2
----
And this for the cpuapp:
---- shorts_config.txt
short 3.1 3.2
----

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 14c096f)
Enable this test by providing an overlay for the nrf5340bsim
Both for the app and net core.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit da01758)
…rted

Include in the list of supported peripherals the GPIO
and GPIOT for both the nrf5340 and nrf54l15

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 3418305)
…bsim

The HW models now support this peripheral for these targets.
Let's enable them.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit a7abf80)
Enable this test in the simulated nrf5340 by providing
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit dd13fa0)
Enable this test in the simulated nrf5340 and provide
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 51053cc)
Enable this test in the simulated nrf5340 and provide
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 5321941)
… nrf5340

Include in the list of supported peripherals the UARTE for the
simulated nrf5340

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 7065b46)
…5bsim

The HW models now support this peripheral for this target.
Let's enable it.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit ca46c7c)
… nrf54l15

Include in the list of supported peripherals the UARTE for the
simulated nrf54l15

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 890f134)
Enable this test in the simulated nrf54l15 by providing
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit dd2f411)
Enable this test in the simulated nrf54l15 and provide
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit eec7363)
Enable this test in the simulated nrf5340 and provide
an appropriate overlay.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 9c386ca)
… nrf54l15

To increase coverage.

Note that we call twister separatedly for this target, due to the 54l15
overlays using UARTE20 which is indexed in simulation as "2", but as
the nrf52833 does not have 3 instances. So "-uart2_loopback" is not
a valid option for a 52833 executable.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit 4558056)
Add 128 MHz clock source and use it for uart00. Baudrate setting
must be adjusted based on uart clock source so without this
change there is wrong baudrate on uart00.

Signed-off-by: Krzysztof Chruściński <[email protected]>
(cherry picked from commit 923d313)
Do not delete clocks for the bsim target. Clocks are referenced
by peripherals and it can be used to get frequency that clocks
the peripheral.

Upstream PR #: 82901

Signed-off-by: Krzysztof Chruściński <[email protected]>
Add clock source to timers which indicates maximum frequency of
the timer instance.

Upstream PR #: 82901

Signed-off-by: Krzysztof Chruściński <[email protected]>
@nordicjm nordicjm merged commit f5efb38 into nrfconnect:main Dec 18, 2024
16 checks passed
@mstasiaknordic mstasiaknordic deleted the cpurad_counter branch January 2, 2025 07:40
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.

8 participants