Skip to content

mimxrt798s: Revert GPIO0 support for HiFi 4 #94321

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

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

Conversation

VitekST
Copy link
Contributor

@VitekST VitekST commented Aug 11, 2025

As the access level registers for GPIO peripherals on mimxrt798s are mutually exclusive (in this case, they allow the peripheral to be used in only one of cm33_cpu0 and hifi4), this PR ditches GPIO0 support on mimxrt798s/hifi4 entirely in favour of using that peripheral on the cm33_cpu0 domain only.

Fixes #94315.

Add a build error conditional for mimxrt700_evk/mimxrt798s/cm33_cpu0,
thus disabling build for the hifi4 domain. Remove that target from
platform_allow in sample.yaml.

Signed-off-by: Vit Stanicek <[email protected]>
Remove overlay of gpio0 node. Remove dependent nodes (LEDs, keys).
Remove alias bindings of those.

Signed-off-by: Vit Stanicek <[email protected]>
Remove INPUTMUX interrupt assignments for PINT and GPIO peripherals.
Remove gpio0 DT node.

As the GPIO peripherals can be secured on the mimxrt798s, accesses from
the cm33_cpu0 and hifi4 are mutually exclusive, so the GPIO0 will stay
enabled in the cm33_cpu0 domain.

Signed-off-by: Vit Stanicek <[email protected]>
This reverts commit 40f0842.

The PCNS and ICNS registers of the mimxrt798s's GPIO0 peripheral allow
accesses to be set up only with mutual exclusivity (either the
cm33_cpu0 or the hifi4), thus the access is reverted to the cm33_cpu0
domain.

Signed-off-by: Vit Stanicek <[email protected]>
@VitekST VitekST force-pushed the bugfix/94315-rt700-gpio0 branch from 8cb45c9 to 06fb8ca Compare August 11, 2025 11:04
Copy link

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.

RT700 GPIO0 can't work because hifi core support gpio0 function
5 participants