Skip to content

Commit a7e5b69

Browse files
committed
[nrf noup] drivers: pinctrl_nrf: Add support for EXMIF pins
This is a follow-up to commit 45d827a. Although routing for those pins is configured via UICR, pinctrl still needs to be involved so that it is possible to set desired drive mode for them etc. Add also the missing RWDS pin. Upstream PR #: 80042 Applied as [nrf noup] due to a conflict in nrf-pinctrl.h Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent da474ea commit a7e5b69

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

drivers/pinctrl/pinctrl_nrf.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,24 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt,
383383
input = NRF_GPIO_PIN_INPUT_CONNECT;
384384
break;
385385
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_can) */
386+
#if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif)
387+
/* Pin routing is controlled by secure domain, via UICR */
388+
case NRF_FUN_EXMIF_CK:
389+
case NRF_FUN_EXMIF_DQ0:
390+
case NRF_FUN_EXMIF_DQ1:
391+
case NRF_FUN_EXMIF_DQ2:
392+
case NRF_FUN_EXMIF_DQ3:
393+
case NRF_FUN_EXMIF_DQ4:
394+
case NRF_FUN_EXMIF_DQ5:
395+
case NRF_FUN_EXMIF_DQ6:
396+
case NRF_FUN_EXMIF_DQ7:
397+
case NRF_FUN_EXMIF_CS0:
398+
case NRF_FUN_EXMIF_CS1:
399+
case NRF_FUN_EXMIF_RWDS:
400+
dir = NRF_GPIO_PIN_DIR_INPUT;
401+
input = NRF_GPIO_PIN_INPUT_DISCONNECT;
402+
break;
403+
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif) */
386404
#if defined(NRF_PSEL_TWIS)
387405
case NRF_FUN_TWIS_SCL:
388406
NRF_PSEL_TWIS(reg, SCL) = psel;

include/zephyr/dt-bindings/pinctrl/nrf-pinctrl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@
166166
#define NRF_FUN_TWIS_SCL 48U
167167
/** TWIS SDA */
168168
#define NRF_FUN_TWIS_SDA 49U
169+
/** EXMIF RWDS */
170+
#define NRF_FUN_EXMIF_RWDS 50U
169171
/** GRTC fast clock output */
170172
#define NRF_FUN_GRTC_CLKOUT_FAST 55U
171173
/** GRTC slow clock output */

0 commit comments

Comments
 (0)