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

[Backport v3.7.99-ncs1-branch] nRF54H20 GPD #2239

Merged
merged 20 commits into from
Nov 7, 2024

Conversation

NordicBuilder
Copy link
Contributor

Backport 40ac0cc~20..40ac0cc from #2195.

LaurentiuM1234 and others added 20 commits November 7, 2024 07:22
…-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 rlubos merged commit 3328399 into v3.7.99-ncs1-branch Nov 7, 2024
22 checks passed
@rlubos rlubos deleted the backport-2195-to-v3.7.99-ncs1-branch branch November 7, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants