Skip to content

Commit 98412e8

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 7a0f290 commit 98412e8

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@
156156
#define NRF_FUN_CAN_TX 46U
157157
/** CAN RX */
158158
#define NRF_FUN_CAN_RX 47U
159+
/** EXMIF RWDS */
160+
#define NRF_FUN_EXMIF_RWDS 50U
159161

160162
/** @} */
161163

0 commit comments

Comments
 (0)