-
Notifications
You must be signed in to change notification settings - Fork 624
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
[Backport v3.7.99-ncs1-branch] nRF54H20 GPD #2239
Merged
rlubos
merged 20 commits into
v3.7.99-ncs1-branch
from
backport-2195-to-v3.7.99-ncs1-branch
Nov 7, 2024
Merged
[Backport v3.7.99-ncs1-branch] nRF54H20 GPD #2239
rlubos
merged 20 commits into
v3.7.99-ncs1-branch
from
backport-2195-to-v3.7.99-ncs1-branch
Nov 7, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…-managed PDs Add DT binding for NXP's SCU-managed PDs. This binding describes exactly _one_ power domain. Signed-off-by: Laurentiu Mihalcea <[email protected]> (cherry picked from commit fb84f4f) (cherry picked from commit 2463da2)
Renamed soc from ace30_ptl to ace30. We were previously using the wrong soc name. The correct name is ace30. There is only one ptl platform, but there can be several ace30 platforms. Signed-off-by: Grzegorz Bernat <[email protected]> (cherry picked from commit a654bfb) (cherry picked from commit b2f577c)
Add power domain DT node for the irqsteer and a reference to it in irqsteer's DT node. Signed-off-by: Laurentiu Mihalcea <[email protected]> (cherry picked from commit fdbf4d2) (cherry picked from commit 6e6555e)
Add bus clock for `sai1` node. Signed-off-by: Laurentiu Mihalcea <[email protected]> (cherry picked from commit 1174ea5) (cherry picked from commit de83970)
Add build_all test for power_domain drivers. Signed-off-by: TOKITA Hiroshi <[email protected]> (cherry picked from commit 2c1274f) (cherry picked from commit 65c16d3)
…names Some devices may belong to >1 power domain, so with the current design this is something not possible to describe. It's worth to note that Linux also uses the `power-domains` naming scheme, not `power-domain`. This patch also introduces `power-domain-names` so that each entry in `power-domains` can be given a name if needed. `#power-domain-cells` is now required as well. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit f989711) (cherry picked from commit 0b1e0ff)
Add binding for Global Power Domain found in nRF54Hx SoCs. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit f3d29d6) (cherry picked from commit 49d8098)
Add the global power domain entry. This domain is not memory-mapped but controlled using NRFS services. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit a56a170) (cherry picked from commit 08a808e)
So that it can be used to manually control certain power domains. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 01e285c) (cherry picked from commit e5ea30f)
…IVE1 peripherals This patch introduces a new flag to indicate if a peripheral belongs to FAST_ACTIVE1 domain. This way, pinctrl knows when to request the SLOW_ACTIVE domain (where CTRLSEL multiplexer resides). Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 9925ec9) (cherry picked from commit 2f86d8b)
…ase GPD Add a new soc-level API that allows to manually request/release global power domains. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 87a42a8) (cherry picked from commit b9a4d5c)
It is required for some pinctrl changes. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 0b18f31) (cherry picked from commit 883d2b5)
… FAST_ACTIVE1 This patch allows to _safely_ configure GPIO ports that have their pad on FAST_ACTIVE1 domain. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 56c5b1e) (cherry picked from commit 1d5064f)
So that we do not get false warnings about consistent spacing around '*'. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 5e8905b) (cherry picked from commit 2312616)
…ention This API needs to be called by FAST peripherals before/after disabling/enabling them. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 77fc183) (cherry picked from commit 1adb9e1)
When GPD is managed by pinctrl, pins retention needs to be controlled by the driver to avoid glitches. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit b6d4542) (cherry picked from commit 1032cba)
It is enabled by default if we enable device PM, but we do not want this, otherwise we get linker errors (PM subsys, fun guaranteed!). Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 969326b) (cherry picked from commit 579e766)
Upstream not ready yet, revert once applied there. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 6384b58)
Busy-waiting for the result of the nrfs service calls can stall, so let's use a callback that flags a semaphore instead. Since the API is supposed to be callable in the context of pre-kernel, fallback to busy-wait on that scenario. Upstream PR #: 80819 Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 714d82d232977309e0bdc8dadd2d7a71ee914a4b) (cherry picked from commit 254501b)
…FIG_DEBUG=y Usage of K_SPINLOCK with CONFIG_DEBUG=y seems to trigger a compiler warning about request not always being initialized. Fallback to k_spin_lock/unlock calls to fix this issue. Signed-off-by: Gerard Marull-Paretas <[email protected]> (cherry picked from commit 5249619) (cherry picked from commit 40ac0cc)
rlubos
approved these changes
Nov 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport 40ac0cc~20..40ac0cc from #2195.