Processors
Intel® Processors, Tools, and Utilities
14533 Discussions

Why can't I see my flash partitions in /proc/mtd

JMurr12
Novice
976 Views

I have the following in my .dts file:

 

flash@0xff705000 {

            compatible = "cadence,qspi-14.0", "cadence,qspi";

            reg = <0xff705000 0x1000 0xffa00000 0x1000>;

            reg-names = "axi_slave0", "axi_slave1";

            interrupt-parent = <0x3>;

            interrupts = <0x0 0x97 0x4>;

            clocks = <0x22>;

            bus-num = <0x2>;

            fifo-depth = <0x80>;

            num-chipselect = <0x4>;

            status = "okay";

            bank-width = <0x2>;

            device-width = <0x1>;

            #address-cells = <0x1>;

            #size-cells = <0x0>;

            master-ref-clk = <0x17d78400>;

            ext-decoder = <0x0>;

 

 

            n25q00@0 {

                compatible = "n25q00";

                #address-cells = <0x1>;

                #size-cells = <0x1>;

                reg = <0x0>;

                spi-max-frequency = <0x5f5e100>;

                page-size = <0x100>;

                block-size = <0x10>;

                m25p,fast-read;

                read-delay = <0x4>;

                tshsl-ns = <0x32>;

                tsd2d-ns = <0x32>;

                tchsh-ns = <0x4>;

                tslch-ns = <0x4>;

 

                partition@0 {

                    label = "Flash 0 Raw Data";

                    reg = <0x0 0x800000>;

                };

 

                partition@800000 {

                    label = "Flash 1 jffs2 Filesystem";

                    reg = <0x800000 0x1000000>;

                };

 

                partition@1800000 {

                    label = "FPGA Image";

                    reg = <0x1800000 0x800000>;

                };

            };

        };

 

 

0 Kudos
2 Replies
JMurr12
Novice
937 Views

Built with latest version of Linux.

 

Now the bootlog shows the cadence-qspi driver but says the chip has unrecognized JEDEC id bytes (not ffff).

 

Suspect I still have this configured incorrectly.

 

Does anyone have dts entry for this?

 

My dts is now:

 

        spi@0xff705000 {

            compatible = "cdns,qspi-nor";

            #address-cells = <0x1>;

            #size-cells = <0x0>;

            reg = <0xff705000 0x1000>, <0xffa00000 0x1000>;

            interrupt-parent = <0x3>;

            interrupts = <0x0 0x97 0x4>;

            clocks = <0x22>;

            cdns,fifo-depth = <0x80>;

            cdns,fifo-width = <0x4>;

            cdns,trigger-address = <0x0>;

            resets = <0x26 0x25>;

            status = "okay";

 

            n25q00@0 {

                #address-cells = <0x1>;

                #size-cells = <0x1>;

                compatible = "n25q00";

                reg = <0x0>;

                spi-max-frequency = <0x5f5e100>;

                m25p,fast-read;

                cdns,page-size = <0x100>;

                cdns,block-size = <0x10>;

                cdns,read-delay = <0x4>;

                cdns,tshsl-ns = <0x32>;

                cdns,tsd2d-ns = <0x32>;

                cdns,tchsh-ns = <0x4>;

                cdns,tslch-ns = <0x4>;

 

                partition@0 {

                    label = "Flash 0 Raw Data";

                    reg = <0x0 0x800000>;

                };

 

                partition@800000 {

                    label = "Flash 1 jffs2 Filesystem";

                    reg = <0x800000 0x7800000>;

                };

 

            };

        };

 

 

 

0 Kudos
JMurr12
Novice
937 Views

Got this working.

 

Changed read-delay to 3.

 

0 Kudos
Reply