AnsweredAssumed Answered

imx6ul ecspi4 w25q32

Question asked by xinjian lu on Aug 13, 2017
Latest reply on Aug 14, 2017 by igorpadykov

在imx6ul下设置挂载W25Q32FV(备注支持SPI nor)

设备树配置如下:

&ecspi4 {
 fsl,spi-num-chipselects = <4>;
 cs-gpios = <&gpio2 15 0>;
 pinctrl-names = "default";
 pinctrl-0 = <&pinctrl_ecspi4_1 &pinctrl_ecspi4_cs_1>;
 status = "okay";
 flash: m25p80@0 {
  compatible = "sst,w25q32","spi-nor";
  spi-max-frequency = <30000000>;
  reg = <0>;
 };

};

 

烧写完启动如下信息

m25p80 spi3.0: unrecognized JEDEC id bytes: 00,  0,  0

 

应该是 JEDEC ID 没有识别,请问设备树是否配置正确?

ecspi3下挂载的spi nor芯片的空间如何挂载 到mtd下

&ecspi4 {
 fsl,spi-num-chipselects = <4>;
 cs-gpios = <&gpio2 15 0>;
 pinctrl-names = "default";
 pinctrl-0 = <&pinctrl_ecspi4_1 &pinctrl_ecspi4_cs_1>;
 status = "okay";
 flash: m25p80@0 {
  compatible = "sst,w25q32","spi-nor";
  spi-max-frequency = <30000000>;
  reg = <0>;

   partition@6 {
  label = "w25q32";
  reg = <0x20000000 0x800000>;
 };

/*

在原512Mbyte的NAND FLASH下扩8Mbyte的spi nor空间

*/
 };

};

请帮指导!!!!

Outcomes