
Hello Michal, ok I will then stop trying to get SPI working on mainline and watch your commits on https://github.com/Xilinx/u-boot-xlnx
We have a custom Artix Board here and I would be happy to test your commits on our hardware. Thanks, Marco
________________________________________ Von: Michal Simek michal.simek@xilinx.com Gesendet: Dienstag, 27. Oktober 2015 15:50 An: Hoefle Marco; Michal Simek; Jagan Teki Cc: u-boot@lists.denx.de Betreff: Re: [U-Boot] u-boot device model SPI + SPI Flash
Hi Marco,
petalinux 2015.4 will be released with SPI DM model. I have just debug it and it is working fine but it requires some changes in the mainline to get it work properly. It is not working properly on Microblaze. I expect there is no problem to use this driver on zynq.
Just give me some time to send all I have in our tree. I will push that core changes to xilinx git tree soon too.
Thanks, Michal
On 10/27/2015 01:52 PM, Hoefle Marco wrote:
Ok renaming it worked and I could extract the petalinux bsp. Thanks for the hint. The dts I found is very similar to the one we use successfully in the mainline Linux Kernel. There SPI + SPI Flash are working.
However, I think (please correct me if I am wrong) the petalinux u-boot config does not use driver model + dts. I think the previous method does not work anymore in mainline u-boot as the spi driver has already been ported. If I do not use these defines: # define CONFIG_DM # define CONFIG_DM_SPI # define CONFIG_OF_SPI
I'l get a compilation error. So I think it would be a good change to test the u-boot driver model with the Xilinx SPI driver. I am happy to play the guinea pic ;-)
I think currently it is something with the u-boot dts parsing as none of the functions provided by xilinx_spi.c are called. I attached the currently used u-boot configuration + u-boot dts.
-----Original Message----- From: Michal Simek [mailto:michal.simek@xilinx.com] Sent: Dienstag, 27. Oktober 2015 12:37 To: Hoefle Marco Marco.Hoefle@nanotronic.ch; Michal Simek michal.simek@xilinx.com; Jagan Teki jteki@openedev.com Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] u-boot device model SPI + SPI Flash
On 10/27/2015 12:12 PM, Hoefle Marco wrote:
-----Original Message----- From: Michal Simek [mailto:michal.simek@xilinx.com] Sent: Montag, 26. Oktober 2015 14:52 To: Jagan Teki jteki@openedev.com; Hoefle Marco Marco.Hoefle@nanotronic.ch; Michal Simek
Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] u-boot device model SPI + SPI Flash
On 10/23/2015 12:20 PM, Jagan Teki wrote:
On 23 October 2015 at 15:42, Hoefle Marco Marco.Hoefle@nanotronic.ch
wrote:
Maybe somebody has a valid u-boot dts file for a microblaze system with
an SPI core? That would helpful.
We want to move from a parallel nor flash to a SPI flash for FPGA config,
u-boot, Linux Kernel and rootfs.
The last missing part is u-boot. The kernel dts file is ok and the mtd
partitions are set up correctly.
I even grepped on linux/arch/microblaze couldn't get much info, So added Michal he well aware of this may be he can help.
http://www.xilinx.com/support/download/index.html/content/xilinx/en/d
o wnloadNav/embedded-design-tools/2015-2.html
ac701 bsp and I expect also Kc705.
I downloaded the AC701 bsp file but it is not a valid archive. Do I need to
use (and learn how to use) the 3 GB pertalinux tools to build u-boot for Microblaze?
The u-boot config for the AC701 and the dts file would probably sufficient.
it is tar.gz just rename it.
Thanks, Michal