Skip to content

Commit 73b4ac1

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 7d98efa commit 73b4ac1

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
@@ -552,6 +552,19 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt,
552552
input = NRF_GPIO_PIN_INPUT_DISCONNECT;
553553
break;
554554
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif) */
555+
#if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_qspi_v2)
556+
/* No PSEL for QSPI_V2, pins only controlled by CTRLSEL */
557+
case NRF_FUN_QSPI_SCK:
558+
case NRF_FUN_QSPI_CSN:
559+
case NRF_FUN_QSPI_IO0:
560+
case NRF_FUN_QSPI_IO1:
561+
case NRF_FUN_QSPI_IO2:
562+
case NRF_FUN_QSPI_IO3:
563+
nrf_gpio_pin_control_select(psel, NRF_GPIO_PIN_SEL_QSPI);
564+
dir = NRF_GPIO_PIN_DIR_OUTPUT;
565+
input = NRF_GPIO_PIN_INPUT_CONNECT;
566+
break;
567+
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_qspi_v2) */
555568
#if defined(NRF_PSEL_TWIS)
556569
case NRF_FUN_TWIS_SCL:
557570
NRF_PSEL_TWIS(reg, SCL) = psel;

0 commit comments

Comments
 (0)