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

Add global HSFLL clock control device driver #81735

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

bjarki-andreasen
Copy link
Collaborator

Draft for now since testing is blocked by missing firmware for the nRF54H20

@bjarki-andreasen
Copy link
Collaborator Author

Note @ppelikan-nordic

@zephyrbot
Copy link
Collaborator

zephyrbot commented Nov 21, 2024

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_nordic zephyrproject-rtos/hal_nordic@e0e48c4 (master) zephyrproject-rtos/hal_nordic#265 zephyrproject-rtos/hal_nordic#265/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_nordic DNM This PR should not be merged (Do Not Merge) labels Nov 21, 2024
@bjarki-andreasen
Copy link
Collaborator Author

bjarki-andreasen commented Nov 21, 2024

I need the to update the frequencies to match the opaque GDFS_FREQ_MEDHIGH in devicetree, and verify that the initial frequency of the clock is the lowest one :) Also need to find appropriate timeout for gdfs requests.

west.yml Outdated Show resolved Hide resolved
dts/bindings/clock/nordic,nrf-global-hsfll.yaml Outdated Show resolved Hide resolved
dts/bindings/clock/nordic,nrf-global-hsfll.yaml Outdated Show resolved Hide resolved
soc/nordic/nrf54h/global_hsfll.c Outdated Show resolved Hide resolved
@bjarki-andreasen bjarki-andreasen force-pushed the nordic-global-hsfll branch 4 times, most recently from 1674732 to 1d3ce03 Compare December 2, 2024 12:51
bjarki-andreasen and others added 3 commits December 6, 2024 14:20
Update hal_nordic revision to include nrfs services:
- GDPWR
- GDFS

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
nRFs exposes now all power domains, following their actual name in the
specification. Add support for all of them in the GPD service. Note that
this is a breaking change: running this code requires a new SCFW as IDs
have changed in nRFs and so SCFW.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Adding the implementation for the GDFS service

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.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
The nrf-hsfll was previously the only supported HSFLL clock, hence it
was not namespaced fully. Since we added nrf-hsfll-global, we should
add the namespace to nrf-hsfll as well.

Updates drivers and devicetree uses of HSFLL as well.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Add device driver support for global hsfll clock.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Extend sample to support global hsfll clock control.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Extend test suite to test global HSFLL clock.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Introduce feature which restricts the minimum global hsfll
frequency. This feature is selected by default to preserve the
behavior of the global hsfll before the clock control driver for
it was introduced, which configured it as a fixed clock at 320MHz.

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.

8 participants