Skip to content

Commit 82075b8

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 a [nrf noup] due to a conflict. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent b38244d commit 82075b8

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
@@ -374,6 +374,24 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt,
374374
input = NRF_GPIO_PIN_INPUT_CONNECT;
375375
break;
376376
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_can) */
377+
#if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif)
378+
/* Pin routing is controlled by secure domain, via UICR */
379+
case NRF_FUN_EXMIF_CK:
380+
case NRF_FUN_EXMIF_DQ0:
381+
case NRF_FUN_EXMIF_DQ1:
382+
case NRF_FUN_EXMIF_DQ2:
383+
case NRF_FUN_EXMIF_DQ3:
384+
case NRF_FUN_EXMIF_DQ4:
385+
case NRF_FUN_EXMIF_DQ5:
386+
case NRF_FUN_EXMIF_DQ6:
387+
case NRF_FUN_EXMIF_DQ7:
388+
case NRF_FUN_EXMIF_CS0:
389+
case NRF_FUN_EXMIF_CS1:
390+
case NRF_FUN_EXMIF_RWDS:
391+
dir = NRF_GPIO_PIN_DIR_INPUT;
392+
input = NRF_GPIO_PIN_INPUT_DISCONNECT;
393+
break;
394+
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif) */
377395
default:
378396
return -ENOTSUP;
379397
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@
162162
#define NRF_FUN_CAN_TX 46U
163163
/** CAN RX */
164164
#define NRF_FUN_CAN_RX 47U
165+
/** EXMIF RWDS */
166+
#define NRF_FUN_EXMIF_RWDS 50U
165167
/** GRTC fast clock output */
166168
#define NRF_FUN_GRTC_CLKOUT_FAST 55U
167169
/** GRTC slow clock output */

0 commit comments

Comments
 (0)