Skip to content

Commit d7f6aa7

Browse files
committed
[nrf fromlist] 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 Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent e9273e8 commit d7f6aa7

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
@@ -347,6 +347,24 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt,
347347
input = NRF_GPIO_PIN_INPUT_CONNECT;
348348
break;
349349
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_can) */
350+
#if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif)
351+
/* Pin routing is controlled by secure domain, via UICR */
352+
case NRF_FUN_EXMIF_CK:
353+
case NRF_FUN_EXMIF_DQ0:
354+
case NRF_FUN_EXMIF_DQ1:
355+
case NRF_FUN_EXMIF_DQ2:
356+
case NRF_FUN_EXMIF_DQ3:
357+
case NRF_FUN_EXMIF_DQ4:
358+
case NRF_FUN_EXMIF_DQ5:
359+
case NRF_FUN_EXMIF_DQ6:
360+
case NRF_FUN_EXMIF_DQ7:
361+
case NRF_FUN_EXMIF_CS0:
362+
case NRF_FUN_EXMIF_CS1:
363+
case NRF_FUN_EXMIF_RWDS:
364+
dir = NRF_GPIO_PIN_DIR_INPUT;
365+
input = NRF_GPIO_PIN_INPUT_DISCONNECT;
366+
break;
367+
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif) */
350368
default:
351369
return -ENOTSUP;
352370
}

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

166168
/** @} */
167169

0 commit comments

Comments
 (0)