@@ -112,6 +112,13 @@ static const nrf_gpio_pin_drive_t drive_modes[NRF_DRIVE_COUNT] = {
112
112
#define NRF_PSEL_TDM (reg , line ) ((NRF_TDM_Type *)reg)->PSEL.line
113
113
#endif
114
114
115
+ #if defined(CONFIG_SOC_NRF54L15_CPUAPP )
116
+ #if DT_HAS_COMPAT_STATUS_OKAY (nordic_nrfe_mspi_controller ) || defined(CONFIG_MSPI_NRFE )
117
+ #define NRF_PSEL_SDP_MSPI (psel ) \
118
+ nrf_gpio_pin_control_select(psel, NRF_GPIO_PIN_SEL_VPR);
119
+ #endif
120
+ #endif
121
+
115
122
int pinctrl_configure_pins (const pinctrl_soc_pin_t * pins , uint8_t pin_cnt ,
116
123
uintptr_t reg )
117
124
{
@@ -465,6 +472,28 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt,
465
472
input = NRF_GPIO_PIN_INPUT_CONNECT ;
466
473
break ;
467
474
#endif /* defined(NRF_PSEL_TWIS) */
475
+ #if defined(CONFIG_SOC_NRF54L15_CPUAPP )
476
+ #if DT_HAS_COMPAT_STATUS_OKAY (nordic_nrfe_mspi_controller )
477
+ case NRF_FUN_SDP_MSPI_CS0 :
478
+ case NRF_FUN_SDP_MSPI_CS1 :
479
+ case NRF_FUN_SDP_MSPI_CS2 :
480
+ case NRF_FUN_SDP_MSPI_CS3 :
481
+ case NRF_FUN_SDP_MSPI_CS4 :
482
+ case NRF_FUN_SDP_MSPI_SCK :
483
+ case NRF_FUN_SDP_MSPI_DQ0 :
484
+ case NRF_FUN_SDP_MSPI_DQ1 :
485
+ case NRF_FUN_SDP_MSPI_DQ2 :
486
+ case NRF_FUN_SDP_MSPI_DQ3 :
487
+ case NRF_FUN_SDP_MSPI_DQ4 :
488
+ case NRF_FUN_SDP_MSPI_DQ5 :
489
+ case NRF_FUN_SDP_MSPI_DQ6 :
490
+ case NRF_FUN_SDP_MSPI_DQ7 :
491
+ NRF_PSEL_SDP_MSPI (psel );
492
+ dir = NRF_GPIO_PIN_DIR_OUTPUT ;
493
+ input = NRF_GPIO_PIN_INPUT_CONNECT ;
494
+ break ;
495
+ #endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrfe_mspi_controller) */
496
+ #endif /* CONFIG_SOC_NRF54L15_CPUAPP */
468
497
default :
469
498
return - ENOTSUP ;
470
499
}
0 commit comments