iMX6UL Custom board QSPI Problem

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

iMX6UL Custom board QSPI Problem

1,195 Views
bentales
Contributor I

Hi,

I'm having trouble accessing QSPI (Macronix MX25L3206E) on linux user space, see details below. Any idea on how to solve this? All help will be appreciated.

dmesg output

[    0.989667] fsl-quadspi 21e0000.qspi: mx25l3205d (4096 Kbytes)
[    0.997023] fsl-quadspi 21e0000.qspi: Unsupported cmd 0x03

Device Tree Snippet

&qspi {
   pinctrl-names = "default";
   pinctrl-0 = <&pinctrl_qspi>;
   status = "okay";

   flash0: mx25l3205d@0 {
      #address-cells = <1>;
      #size-cells = <1>;
      compatible = "macronix,mx25l3205d";
      spi-max-frequency = <20000000>;
      reg = <0>;
   };
};
pinctrl_qspi: qspigrp {
   fsl,pins = <
      MX6UL_PAD_NAND_CLE__QSPI_A_DATA03 0x70a1
      MX6UL_PAD_NAND_CE1_B__QSPI_A_DATA02 0x70a1
      MX6UL_PAD_NAND_CE0_B__QSPI_A_DATA01 0x70a1
      MX6UL_PAD_NAND_READY_B__QSPI_A_DATA00 0x70a1
      MX6UL_PAD_NAND_WP_B__QSPI_A_SCLK 0x70a1
      MX6UL_PAD_NAND_DQS__QSPI_A_SS0_B 0x70a1
   >;
};

Thanks,

Ben

Labels (1)
0 Kudos
5 Replies

774 Views
1508992678
Contributor I

Hi Ben

 

I have encountered the similar problem, how did you solve it later?

 

Best regards

L r

0 Kudos

774 Views
fabio_estevam
NXP Employee
NXP Employee

Maybe you could try a recent mainline kernel such as 4.14.14. If this still fails with this kernel, then please post it to the mtd-linux list.

You can run ./scripts/get_maintainer.pl -f drivers/mtd/spi-nor/fsl-quadspi.c to know the people and lists to send the email to.

Regards,

Fabio Estevam

0 Kudos

774 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ben

please look at patch

MLK-11087: mtd:qspi: support DDR Quad mode for Macronix mx25l51245g (2ee7cdc2) · Commits · Android /... 

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

0 Kudos

774 Views
bentales
Contributor I

Hi Igor,

Thanks for the quick reply, but I've already check this and the patch has been implemented on the current source code I'm using. Its been a week and still figuring this out. Hope to have more information about this error.

Best regards,

Ben

0 Kudos

774 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ben

may be suggested to apply to NXP Professional Services to get extended support:

http://www.nxp.com/support/nxp-professional-services:PROFESSIONAL-SERVICE

Best regards
igor

0 Kudos