Correct way to configure 3-wire SPI in nRF Connect SDK

We are developing a board with an nRF54L15 module that interfaces with a SPI device. We want to use 3-wire spi, so the MISO and MOSI lines are shorted (according to the datasheet of the device), and connected to a SDO port on the MCU. We don't use a SDI port. How to correctly configure 3-wire spi in the pinctrl file?

Should it be like this:

    spi20_default: spi00_default {
        group1 {
            psels = <NRF_PSEL(SPIM_SCK, 1, 10)>,
                    <NRF_PSEL(SPIM_MOSI, 1, 9)>,
                    <NRF_PSEL_DISCONNECTED(SPIM_MISO)>;
        };
    };


Or like this:
    spi20_default: spi00_default {
        group1 {
            psels = <NRF_PSEL(SPIM_SCK, 1, 10)>,
                    <NRF_PSEL(SPIM_MOSI, 1, 9)>,
                    <NRF_PSEL(SPIM_MISO, 1, 9))>;
        };
    };


Or something completely different?

Parents Reply Children
Related