AnsweredAssumed Answered

NAND chip not detected under linux

Question asked by Harshitha K on Oct 19, 2016
Latest reply on Nov 3, 2016 by igorpadykov

Hi,

We've got a  Freescale 2012 sabreauto custom board , where we've mounted a IC FLASH 64GBIT 48TSOP NAND chip ( Mfg ID -MT29F64G08CFACAWP:C TR).  We cannot, however, seem to find an existing i.MX6 board that uses any chips like this. The NAND chip is working under u-boot as I can Erase/Read/Write the chip. But Linux is unable to load the NAND driver successfully.

Here are my dtsi settings:

 

imx6qdl-sabreauto.dtsi :-

&ecspi1 {
    fsl,spi-num-chipselects = <1>;
    cs-gpios = <&gpio3 19 0>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_ecspi1 &pinctrl_ecspi1_cs>;
    status = "disabled"; /* pin conflict with WEIM NOR */

 

    flash: m25p80@0 {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "st,m25p32";
        spi-max-frequency = <20000000>;
        reg = <0>;
    };
};

 

&gpmi {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_gpmi_nand>;
    status = "okay"; /* pin conflict with uart3 */
    nand-on-flash-bbt;
};

 

&weim {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_weim_nor &pinctrl_weim_cs0>;
    #address-cells = <2>;
    #size-cells = <1>;
    ranges = <0 0 0x08000000 0x08000000>;
    status = "disabled"; /* pin conflict with SPI NOR */

 

    nor@0,0 {
        compatible = "cfi-flash";
        reg = <0 0 0x02000000>;
        #address-cells = <1>;
        #size-cells = <1>;
        bank-width = <2>;
        fsl,weim-cs-timing = <0x00620081 0x00000001 0x1c022000
                0x0000c000 0x1404a38e 0x00000000>;
    };
};

 

Can you please help us to solve the NAND issue in linux?

Thanks In Advance.

Outcomes