UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Reply

mount spi flash error

Accepted Solution Solved
Adventurer
Posts: 66
Registered: ‎02-09-2017
Accepted Solution

mount spi flash error

I use zynq ps spi1 to connect a spi flash called n25q128a11.

My devicetree is as follows.

spi@e0007000 {
			compatible = "cdns,spi-r1p6";
			reg = <0xe0007000 0x1000>;
			status = "okay";
			interrupt-parent = <0x4>;
			interrupts = <0x0 0x31 0x4>;
			clocks = <0x1 0x1a 0x1 0x23>;
			clock-names = "ref_clk", "pclk";
			#address-cells = <0x1>;
			#size-cells = <0x0>;
			is-decoded-cs = <0x0>;
			num-cs = <0x1>;
			
			flash@0 {
				compatible = "n25q128a11";
				reg = <0x0>;
				spi-max-frequency = <0xf4240>;
				spi-tx-bus-width = <0x1>;
				spi-rx-bus-width = <0x1>;
				#address-cells = <0x1>;
				#size-cells = <0x1>;

				partition@test {
					label = "spi-flash";
					reg = <0x0 0x100000>;
				};
			};
		};

I also enable mtd settings in kernel config.

内核配置.JPG

 

however, when I booting the linux it goes wrong.

捕获.JPG

 

Could someone give me some help? 

Thanks very much.

 

The attachment is the devicetree.


Accepted Solutions
Adventurer
Posts: 66
Registered: ‎02-09-2017

Re: mount spi flash error


All Replies
Xilinx Employee
Posts: 184
Registered: ‎06-27-2017

Re: mount spi flash error

Hi @felven,

 

Can you please keep the compatible name as mentioned below in your spi device tree node?

 

flash@0 {
compatible = "n25q512a", "micron,m25p80";

 

Flash driver will be invoked by kernel once compatible string "m25p80" matches.

Also check for  alias name of spi@e0007000 whether it is set for alias "spi0" in your device tree or not.

 

Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.

Adventurer
Posts: 66
Registered: ‎02-09-2017

Re: mount spi flash error