@@ -112,6 +112,13 @@ static const nrf_gpio_pin_drive_t drive_modes[NRF_DRIVE_COUNT] = {
112112#define  NRF_PSEL_TDM (reg , line ) ((NRF_TDM_Type *)reg)->PSEL.line
113113#endif 
114114
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+ 
115122int  pinctrl_configure_pins (const  pinctrl_soc_pin_t  * pins , uint8_t  pin_cnt ,
116123			   uintptr_t  reg )
117124{
@@ -465,6 +472,28 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt,
465472			input  =  NRF_GPIO_PIN_INPUT_CONNECT ;
466473			break ;
467474#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 */ 
468497		default :
469498			return  - ENOTSUP ;
470499		}
0 commit comments