spi flash

Hi,I am working with W25Q32JW flash using nrf54l15.I saw that at present there is no support for qspi we need to try with sQspi but right i just want to check with spi communication whether i can able to read,write,and erase sample data just to check it's working or not but when i am checking with device ready or not i am getting failed.I am using  spi flash sample code.I have attached my overlay file for spi.CAn you help me with that.

/ {
    pin-controller {
        spi00_default: spi00_default {
            group1 {
                psels = <NRF_PSEL(QSPI_SCK,  2, 01)>,  // SCK  - P0.19
                        <NRF_PSEL(QSPI_CSN,  2, 05)>,  // CS   - P0.16
                        // <NRF_PSEL(QSPI_IO0,  2, 02)>,  // IO0  - P0.14 (MOSI)
                        // <NRF_PSEL(QSPI_IO1,  2, 04)>,  // IO1  - P0.23 (MISO)
                        // <NRF_PSEL(QSPI_IO2,  2, 03)>,  // IO2  - P0.13 (flash hld)
                        // <NRF_PSEL(QSPI_IO3,  2, 00)>;  // IO3  - P0.15 (flash write protect)
                        <NRF_PSEL(SPIM_MOSI, 2, 2)>,
                        <NRF_PSEL(SPIM_MISO, 2, 4)>;
            };
        };

        spi00_sleep: spi00_sleep {
            group1 {
                psels = <NRF_PSEL(QSPI_SCK,  2, 01)>,  // SCK  - P0.19
                <NRF_PSEL(QSPI_CSN,  2, 05)>,  // CS   - P0.16
                // <NRF_PSEL(QSPI_IO0,  2, 02)>,  // IO0  - P0.14 (MOSI)
                // <NRF_PSEL(QSPI_IO1,  2, 04)>,  // IO1  - P0.23 (MISO)
                // <NRF_PSEL(QSPI_IO2,  2, 03)>,  // IO2  - P0.13 (flash hld)
                // <NRF_PSEL(QSPI_IO3,  2, 00)>;  // IO3  - P0.15 (flash write protect)
                <NRF_PSEL(SPIM_MOSI, 2, 2)>,
                <NRF_PSEL(SPIM_MISO, 2, 4)>;
            };
        };
    };
};	

&spi00{
    status = "okay";

	pinctrl-0 = <&spi00_default>;
    pinctrl-1 = <&spi00_sleep>;

	cs-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
    pinctrl-names = "default", "sleep";


	flash0: flash@0 {
        status = "okay";
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <80000000>; 
		// spi-cpol;
		// spi-cpha;
		size = <33554432>; 
		jedec-id = [EF 60 16];
        // has-dpd;
        // t-enter-dpd = <10000>; 
        // t-exit-dpd = <35000>;
        // duplex=<2048>;
   
	};
};

Regards,

Kashyap

Related