Skip to content

Commit 1e15d20

Browse files
ananglnordicjm
authored andcommitted
[nrf fromtree] 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. Signed-off-by: Andrzej Głąbek <[email protected]> (cherry picked from commit 2e8c79f)
1 parent 5d6b2c5 commit 1e15d20

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
@@ -390,6 +390,24 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt,
390390
input = NRF_GPIO_PIN_INPUT_CONNECT;
391391
break;
392392
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_can) */
393+
#if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif)
394+
/* Pin routing is controlled by secure domain, via UICR */
395+
case NRF_FUN_EXMIF_CK:
396+
case NRF_FUN_EXMIF_DQ0:
397+
case NRF_FUN_EXMIF_DQ1:
398+
case NRF_FUN_EXMIF_DQ2:
399+
case NRF_FUN_EXMIF_DQ3:
400+
case NRF_FUN_EXMIF_DQ4:
401+
case NRF_FUN_EXMIF_DQ5:
402+
case NRF_FUN_EXMIF_DQ6:
403+
case NRF_FUN_EXMIF_DQ7:
404+
case NRF_FUN_EXMIF_CS0:
405+
case NRF_FUN_EXMIF_CS1:
406+
case NRF_FUN_EXMIF_RWDS:
407+
dir = NRF_GPIO_PIN_DIR_INPUT;
408+
input = NRF_GPIO_PIN_INPUT_DISCONNECT;
409+
break;
410+
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif) */
393411
#if defined(NRF_PSEL_TWIS)
394412
case NRF_FUN_TWIS_SCL:
395413
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)