@@ -94,6 +94,13 @@ static const nrf_gpio_pin_drive_t drive_modes[NRF_DRIVE_COUNT] = {
9494#define NRF_PSEL_QSPI (reg , line ) ((NRF_QSPI_Type *)reg)->PSEL.line
9595#endif
9696
97+ #if defined(CONFIG_SOC_NRF54L15_CPUAPP )
98+ #if DT_HAS_COMPAT_STATUS_OKAY (nordic_nrfe_mspi_controller ) || defined(CONFIG_MSPI_NRFE )
99+ #define NRF_PSEL_SDP_MSPI (psel ) \
100+ nrf_gpio_pin_control_select(psel, NRF_GPIO_PIN_SEL_VPR);
101+ #endif
102+ #endif
103+
97104int pinctrl_configure_pins (const pinctrl_soc_pin_t * pins , uint8_t pin_cnt ,
98105 uintptr_t reg )
99106{
@@ -347,6 +354,28 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt,
347354 input = NRF_GPIO_PIN_INPUT_CONNECT ;
348355 break ;
349356#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_can) */
357+ #if defined(CONFIG_SOC_NRF54L15_CPUAPP )
358+ #if DT_HAS_COMPAT_STATUS_OKAY (nordic_nrfe_mspi_controller )
359+ case NRF_FUN_SDP_MSPI_CS0 :
360+ case NRF_FUN_SDP_MSPI_CS1 :
361+ case NRF_FUN_SDP_MSPI_CS2 :
362+ case NRF_FUN_SDP_MSPI_CS3 :
363+ case NRF_FUN_SDP_MSPI_CS4 :
364+ case NRF_FUN_SDP_MSPI_SCK :
365+ case NRF_FUN_SDP_MSPI_DQ0 :
366+ case NRF_FUN_SDP_MSPI_DQ1 :
367+ case NRF_FUN_SDP_MSPI_DQ2 :
368+ case NRF_FUN_SDP_MSPI_DQ3 :
369+ case NRF_FUN_SDP_MSPI_DQ4 :
370+ case NRF_FUN_SDP_MSPI_DQ5 :
371+ case NRF_FUN_SDP_MSPI_DQ6 :
372+ case NRF_FUN_SDP_MSPI_DQ7 :
373+ NRF_PSEL_SDP_MSPI (psel );
374+ dir = NRF_GPIO_PIN_DIR_OUTPUT ;
375+ input = NRF_GPIO_PIN_INPUT_CONNECT ;
376+ break ;
377+ #endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrfe_mspi_controller) */
378+ #endif /* CONFIG_SOC_NRF54L15_CPUAPP */
350379 default :
351380 return - ENOTSUP ;
352381 }
0 commit comments