AnsweredAssumed Answered

MPC5125 & NAND flash controller

Question asked by Massimo Ischia on Oct 1, 2017

Hello,

 

I'm trying to use a recent kernel release (4.11) with my MPC5125 based board, however if I try to use driver mpc5121_nfc I get:

   mpc5121_nfc 40000000.nfc: SoC revision 1 is not supported!

The I tryed to use driver vf610_nfc since it's declared as "compatible" even if untested. My current NFC settings are below:
        nfc@40000000 {
                compatible = "fsl,vf610-nfc";
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0x40000000 0x100000>;
                interrupts = <0x6 0x8>;
                interrupt-parent = <0x1>;
                clocks = <&clks MPC512x_CLK_NFC>;
                clock-names = "ipg";
                nand@0 {
                        compatible = "fsl,vf610-nfc-nandcs";
                        reg = <0>;
                        nand-bus-width = <8>;
                        nand-ecc-mode = "hw";
                        nand-ecc-strength = <32>;
                        nand-ecc-step-size = <2048>;
                        nand-on-flash-bbt;
                };
        };
While on my old 2.6.x kernel the DTS settings are below:

        nfc@40000000 {
                compatible = "fsl,mpc5125-nfc";
                reg = <0x40000000 0x100000>;    // 1M at 0x40000000
                interrupts = <0x6 0x8>;
                interrupt-parent = <0x1>;
                #address-cells = <0x1>;
                #size-cells = <0x1>;
                bank-width = <0x1>;
                write-size = <4096>; // Page size
                spare-size = <128>;  // OOB size
                chips = <0x1>;
                nand@0 {
                        label = "nand";
                        reg = <0x0 0x80000000>;
                };
        };

Have you any advice for me in order to succesfully run the driver on my system?

Thanks in advance for your time,

Massimo

Outcomes