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

Reapply nrf2 clock control #1981

Merged

Conversation

bjarki-andreasen
Copy link
Contributor

No description provided.

lstnl and others added 7 commits August 28, 2024 16:01
… done

User can assign callback function to local domain dvfs handler
and get notification when scaling process is finished for
particular domain.
Reworked usage of DVFS_SERV_HDL_FREQ_CHANGE_IN_PROGRESS_BIT_POS
which was not initialized properly.

Signed-off-by: Lukasz Stepnicki <[email protected]>
(cherry picked from commit d6ed750)
Include base.yaml, so that properties like `clocks` can be optionally
set.

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

(cherry picked from commit a41a22f)
…lers

Add references to clock controllers so users can obtain
those for particular peripherals with DT macros like
DT_CLOCK_CTRL()

Upstream PR: zephyrproject-rtos/zephyr#77365

Signed-off-by: Andrzej Głąbek <[email protected]>
Signed-off-by: Bjarki Arge Andreasen <[email protected]>
… LFXO

The HFXO and LFXO oscillators have properties which need to be
specified in the devicetree. These properties are used by clock
controllers, which get these properties from the devicetree.

The BICR also contains these properties. For now, the properties
are duplicated in the bicr node in the devicetree.

Upstream PR: zephyrproject-rtos/zephyr#77365

Signed-off-by: Andrzej Głąbek <[email protected]>
Signed-off-by: Bjarki Arge Andreasen <[email protected]>
… LFXO

These parameters will be used by the clock controller drivers.

Upstream PR: zephyrproject-rtos/zephyr#77365

Signed-off-by: Andrzej Głąbek <[email protected]>
Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Add bindings for nrf-fll16m and nrf-lfclk and update in-tree nodes
and boards to use them in place of the fixed-clock binding.

Upstream PR: zephyrproject-rtos/zephyr#77365

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

Add custom clock_control API for nRF platforms that allows requesting
clocks with specified minimal required attributes (accuracy, precision,
and frequency). Provide an implementation of this API for FLL16M, HFXO,
HSFLL, and LFCLK controllers in the nRF54H20 SoC.

Upstream PR: zephyrproject-rtos/zephyr#77365

Signed-off-by: Andrzej Głąbek <[email protected]>
Signed-off-by: Bjarki Arge Andreasen <[email protected]>
@bjarki-andreasen bjarki-andreasen force-pushed the reapply-nrf2-clock-control branch 2 times, most recently from cac5b64 to 3007c2c Compare August 28, 2024 15:03
anangl and others added 2 commits August 28, 2024 17:17
Add a sample that presents how the custom nrf2_clock_control API
introduced for nRF54H20 can be used for the various clocks which
are supported by it.

Upstream PR: zephyrproject-rtos/zephyr#77365

Signed-off-by: Andrzej Głąbek <[email protected]>
Signed-off-by: Bjarki Arge Andreasen <[email protected]>
Implement tests for the NRF2 clock control API

Upstream PR: zephyrproject-rtos/zephyr#77365

Signed-off-by: Bartosz Miller <[email protected]>
@bjarki-andreasen
Copy link
Contributor Author

This PR has been tested in CI as part of nrfconnect/sdk-nrf#17019

@ns-tolu ns-tolu self-requested a review August 29, 2024 11:25
@bjarki-andreasen bjarki-andreasen merged commit 28b6861 into nrfconnect:main Aug 29, 2024
25 checks passed
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.

9 participants