diff --git a/drivers/pinctrl/pinctrl_nrf.c b/drivers/pinctrl/pinctrl_nrf.c index d0354f600a9..42c4f24559a 100644 --- a/drivers/pinctrl/pinctrl_nrf.c +++ b/drivers/pinctrl/pinctrl_nrf.c @@ -374,6 +374,24 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt, input = NRF_GPIO_PIN_INPUT_CONNECT; break; #endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_can) */ +#if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif) + /* Pin routing is controlled by secure domain, via UICR */ + case NRF_FUN_EXMIF_CK: + case NRF_FUN_EXMIF_DQ0: + case NRF_FUN_EXMIF_DQ1: + case NRF_FUN_EXMIF_DQ2: + case NRF_FUN_EXMIF_DQ3: + case NRF_FUN_EXMIF_DQ4: + case NRF_FUN_EXMIF_DQ5: + case NRF_FUN_EXMIF_DQ6: + case NRF_FUN_EXMIF_DQ7: + case NRF_FUN_EXMIF_CS0: + case NRF_FUN_EXMIF_CS1: + case NRF_FUN_EXMIF_RWDS: + dir = NRF_GPIO_PIN_DIR_INPUT; + input = NRF_GPIO_PIN_INPUT_DISCONNECT; + break; +#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif) */ default: return -ENOTSUP; } diff --git a/include/zephyr/dt-bindings/pinctrl/nrf-pinctrl.h b/include/zephyr/dt-bindings/pinctrl/nrf-pinctrl.h index a73f59c48b7..49c06f3668c 100644 --- a/include/zephyr/dt-bindings/pinctrl/nrf-pinctrl.h +++ b/include/zephyr/dt-bindings/pinctrl/nrf-pinctrl.h @@ -162,6 +162,8 @@ #define NRF_FUN_CAN_TX 46U /** CAN RX */ #define NRF_FUN_CAN_RX 47U +/** EXMIF RWDS */ +#define NRF_FUN_EXMIF_RWDS 50U /** GRTC fast clock output */ #define NRF_FUN_GRTC_CLKOUT_FAST 55U /** GRTC slow clock output */