SPI SRAM on the IMX6ul

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI SRAM on the IMX6ul

287 Views
Contributor I

I am interfacing IS65WVS5128 Serial SRAM with ECSPI3 on the imx6ul. I adapted the 23K256 driver for this. The instructions are basically the same and the only hardware differences are address width, memory size and SPI frequency. The device successfully appears under /proc/mtd as mtd3:

dev: size erasesize name
mtd0: 00400000 00020000 "barebox"
mtd1: 00100000 00020000 "barebox-environment"
mtd2: 1fb00000 00020000 "root"
mtd3: 00020000 00000001 "willow_sram"

After creating an ext4 partition using `mkfs.ext4 /dev/mtdblock3` without error, I tried to mount it but it fails with "wrong fs type, bad option, bad superblock on /dev/mtdblock3 , missing codepage or helper program, or other error". Is there something I am missing? 

My dts: 

&ecspi3 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_ecspi3>;
    cs-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
    dmas = <&sdma 7 8 0>,<&sdma 8 8 0>;
    dma-names = "rx", "tx";
    status = "okay";

    sram: spi@0 {
       compatible = "issi,is6xwvs5128g";
       spi-max-frequency = <45000000>; 
       reg = <0>;
       status = "okay";
    };
};
...

pinctrl_ecspi3: ecspi3grp {
    fsl,pins = <
       MX6UL_PAD_UART2_RX_DATA__ECSPI3_SCLK   0x100b1
       MX6UL_PAD_UART2_RTS_B__ECSPI3_MISO   0x100b1
       MX6UL_PAD_UART2_CTS_B__ECSPI3_MOSI   0x100b1
      MX6UL_PAD_UART2_TX_DATA__GPIO1_IO20   0x10b0
   >;
}

Sample driver attached.

Labels (2)
0 Kudos
1 Reply

93 Views
NXP TechSupport
NXP TechSupport

Hi Chin

one can look at suggestions provided on below link, in particular try to add entry to spi_nor_ids[]

Using SRAM on SPI interface on IMX6UL 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos