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

Conversation

nordic-krch
Copy link
Collaborator

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@1f169d9 (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)

Update hal_nordic with support for GPIOTE0 in cpurad added to
nrfx_gpiote driver.

Signed-off-by: Krzysztof Chruściński <[email protected]>
Add GPIOTE0 instance in radio peripherals.

Signed-off-by: Krzysztof Chruściński <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Add configuration for testing GPIOTE0 instance on nrf54h20/cpurad.

Signed-off-by: Krzysztof Chruściński <[email protected]>
@nordic-krch nordic-krch force-pushed the nrf54h20_rad_gpiote branch from 7dfc940 to 7484e74 Compare June 5, 2025 06:43
Copy link

sonarqubecloud bot commented Jun 5, 2025

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