Qspi cypress cy15b104 f-ram

Environment
Verdin-iMX8M Plus
EVA board
Linux BSP5.4

Our customer wants to use CY15B104QSN F-RAM with QSPI.
I don’t know how to write a device tree.
Is there a driver to add from the default?

Best regards.

Hello @developer0916,
For general information about how to customize and build device trees you can check these two links:

In the imx8mp-verdin.dtsi file (located at arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi) inside the kernel source, you’ll find an example of the QSPI interface use:

/* Verdin QSPI_1 */                                                                                                                                            
&flexspi {                                                                                                                                                     
        pinctrl-names = "default";                                                                                                                             
        pinctrl-0 = <&pinctrl_flexspi0>;                                                                                                                       
        flash0: mt25qu256aba@0 {                                                                                                                               
                #address-cells = <1>;                                                                                                                          
                #size-cells = <1>;                                                                                                                             
                compatible = "micron,mt25qu256aba";                                                                                                            
                reg = <0>;                                                                                                                                     
                spi-max-frequency = <80000000>;                                                                                                                
                spi-nor,ddr-quad-read-dummy = <6>;                                                                                                             
        };                                                                                                                                                     
};

According to this document, FRAM memories behave just like SPI NOR flash.
You may need to add the ID of your specific FRAM chip to the spi-nor.c file (drivers/mtd/spi-nor/spi-nor.c) like it’s mentioned on that article, so that the driver can detect the FRAM chip correctly.

Best regards,
Rafael Beims

Thank you for the good information.

Best regards.