AnsweredAssumed Answered

iMX6UL Custom board QSPI Problem

Question asked by Benedick Montales on Jan 18, 2018
Latest reply on Jan 22, 2018 by Fabio Estevam

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

Outcomes