Skip to content

drivers: gpio: nrfx: Add support for GPIOTE0 on nrf54h20 cpurad #91041

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 8 commits into
base: main
Choose a base branch
from

Conversation

nordic-krch
Copy link
Contributor

Add support for special GPIOTE0 instance on nrf54h20/cpurad.

This instance requires special handling because:

  • there is no support for PORT event (level interrupts)
  • TE channels are fixed to the pin
  • pins are configured through CTRLSEL (new nrf-regtool version needed)
  • new nrfx_gpiote driver needed

DNM until nrf-regtool v9.2.0 is available.

@nordic-krch nordic-krch added the DNM This PR should not be merged (Do Not Merge) label Jun 4, 2025
Copy link

github-actions bot commented Jun 4, 2025

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

Name Old Revision New Revision Diff
hal_nordic zephyrproject-rtos/hal_nordic@9587b1d (master) zephyrproject-rtos/hal_nordic#298 zephyrproject-rtos/hal_nordic#298/files

DNM label due to: 1 project with PR revision

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

@github-actions github-actions bot added manifest manifest-hal_nordic DNM (manifest) This PR should not be merged (controlled by action-manifest) labels Jun 4, 2025
@fabiobaltieri
Copy link
Member

fabiobaltieri commented Jun 4, 2025

Hey, this needs a rebase and force push to pick up the CI error workaround. (the twister one anyway)

@nordic-krch nordic-krch force-pushed the nrf54h20_rad_gpiote branch from 7dfc940 to 7484e74 Compare June 5, 2025 06:43
kl-cruz
kl-cruz previously approved these changes Jun 12, 2025
@nordic-krch nordic-krch force-pushed the nrf54h20_rad_gpiote branch from 7484e74 to 5b050f2 Compare June 26, 2025 08:28
@nordic-krch nordic-krch force-pushed the nrf54h20_rad_gpiote branch 2 times, most recently from d979dc4 to fd196ed Compare July 10, 2025 11:40
Update hal_nordic with support for GPIOTE0 in cpurad added to
nrfx_gpiote driver.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Bump required version of nrf-regtool to 9.2.0.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Add GPIOTE0 instance in radio peripherals.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Add new feature flags to gpiote node.
Include pinctrl. Pins used by GPIOTE0 on nrf54h20/cpurad require CTRLSEL
configuration. Pins are listed using pinctrl and parsed by nrf-regtool
to prepare UICR configuration.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Add NRFX_GPIOTE_VAR_FEATURE_SUPPORT feature flag to nrfx configuration.
It enables support for special GPIOTE0 instance in nrfx_gpiote driver.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Add support for special GPIOTE0 instance on nrf54h20/cpurad.
This instance requires special handling because:
- there is no support for PORT event (level interrupts)
- TE channels are fixed to the pin

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Add return code checking for gpio_pin_interrupt_configure functions.
Add disabling pin interrupt at the end of the test to restore pin
state.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
Add configuration for testing GPIOTE0 instance on nrf54h20/cpurad.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
@nordic-krch nordic-krch force-pushed the nrf54h20_rad_gpiote branch from fd196ed to 7fb0fee Compare July 16, 2025 05:51
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: GPIO DNM (manifest) This PR should not be merged (controlled by action-manifest) DNM This PR should not be merged (Do Not Merge) manifest manifest-hal_nordic platform: nRF Nordic nRFx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants