i.MX8M Plus access Quad SPI NOR Flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8M Plus access Quad SPI NOR Flash

519 Views
JasonFSYang
Contributor II

Is there any documents or guides regarding how to read/write Quad SPI NOR flash?

I enabled kernel config

CONFIG_MTD_SPI_NOR=y

CONFIG_SPI_FSL_QUADSPI=y

in imx8mp-evk.dts 

the node is created,

&flexspi {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flexspi0>;
status = "okay";

flash0: mt25qu256aba@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
spi-max-frequency = <80000000>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>;
};
};

however I can see any mtdblock device if I "cat /proc/mtd"
Do I miss something?

0 Kudos
Reply
1 Reply

494 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Need to add nor flash name in dts, for example, add "mt25qu256a".

Zhiming_Liu_2-1731559789097.png

Zhiming_Liu_3-1731559800796.png

Then you can use mtdinfo to check device.


Best Regards,
Zhiming

0 Kudos
Reply