cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1,229 Views
Registered: ‎09-30-2011

Can QSPI0 and QSPI1 be used independently on Zynq?

I have studied the TRM and I am still perplexed about whether I can use QSPI0 and QSPI1 as two independent QSPI ports post boot and if so, how do I tell Linux in the device tree that is what I am doing. 

 

Specifically, I want to boot from QSPI0 in Single SS, 4 bit mode. That should happen automatically because, according to the TRM, the configuration logic will read QSPI0, find the necessary sentinel bits and start the boot sequence without going to QSPI1 at all (at least, that is how I understood it).

 

Then, if that works, I want to access QSPI1 as a separate memory at run time. But I don't see how to define the device tree to distinguish QSPI0 and QSPI1.

 

I am starting to believe the only way to accomplish this is to go to Dual SS, 4 bit stacked-IO mode but I see conflicting capability indications in the TRM like this:

 

Each side of the dual controller port can be individually enabled or operate together as an 8-bit I/O
interface. (Section 12.5.3)

 

Can anyone illuminate me?

0 Kudos
5 Replies
glena
Moderator
Moderator
1,178 Views
Registered: ‎03-19-2014

QSPI is designed to be used 1 of 3 ways, QSPI single, QSPI dual-parallel or QSPI dual-stacked.    For Dual-Parallel operation, Xilinx software assumes the parts are used together to create an 8-bit data bus.    From what you described for your design goals, I would suggest QSPI dual-stacked, which creates a linear QSPI address space, use only the lower QSPI for boot and map the upper QSPI for your application needs.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
1,154 Views
Registered: ‎09-30-2011

Thanks for your response. So the sentence in the TRM that states that:

 

Each side of the dual controller port can be individually enabled (Section 12.5.3)

 

is incorrect and should be deleted?

 

0 Kudos
glena
Moderator
Moderator
1,148 Views
Registered: ‎03-19-2014

The controller allows for separate control, the Xilinx provided software does not.   You are more than welcome to write your own driver to use the QSPI devices independently. 

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
1,128 Views
Registered: ‎09-30-2011

Thanks for the clarification.

0 Kudos
一切還好
Newbie
Newbie
143 Views
Registered: ‎06-15-2021

Hi  glena,I have a problem with QSPI interface。

On the circuit board I designed, I connected the flash to the qspi1 channel, and the qspi0 channel is used to configure the resistance. But I later found that the single flash in vivado can only enable the qspi0 channel. How can I enable the flash from the qspi1 channel? Please help me, thank you!

0 Kudos