Skip to content

Commit 8e8f7cd

Browse files
committed
[nrf fromtree] drivers: pinctrl: nrf: add support for MSPI
Support for new MSPI peripheral where there is no PSEL so pins are setup through CTRLSEL. Signed-off-by: David Jewsbury <[email protected]> (cherry picked from commit ac94ca7)
1 parent 21bbeaa commit 8e8f7cd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/pinctrl/pinctrl_nrf.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,19 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt,
499499
input = NRF_GPIO_PIN_INPUT_DISCONNECT;
500500
break;
501501
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif) */
502+
#if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_qspi_v2)
503+
/* No PSEL for QSPI_V2, pins only controlled by CTRLSEL */
504+
case NRF_FUN_QSPI_SCK:
505+
case NRF_FUN_QSPI_CSN:
506+
case NRF_FUN_QSPI_IO0:
507+
case NRF_FUN_QSPI_IO1:
508+
case NRF_FUN_QSPI_IO2:
509+
case NRF_FUN_QSPI_IO3:
510+
nrf_gpio_pin_control_select(psel, NRF_GPIO_PIN_SEL_QSPI);
511+
dir = NRF_GPIO_PIN_DIR_OUTPUT;
512+
input = NRF_GPIO_PIN_INPUT_CONNECT;
513+
break;
514+
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_qspi_v2) */
502515
#if defined(NRF_PSEL_TWIS)
503516
case NRF_FUN_TWIS_SCL:
504517
NRF_PSEL_TWIS(reg, SCL) = psel;

0 commit comments

Comments
 (0)