From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Tue, 27 Oct 2015 15:50:02 +0100 Subject: [U-Boot] u-boot device model SPI + SPI Flash In-Reply-To: References: <7ccbb9ae7fdb4663832167baa173d6b8@LysExc01.nanotronic.local> <0af28a07c7704451be0aa3fce01764d0@LysExc01.nanotronic.local> <320637582ef942f0b71a55d692d254e5@LysExc01.nanotronic.local> <7a85439a92f64a71a5f2b08b3fdc4576@LysExc01.nanotronic.local> <562E2FEE.60605@xilinx.com> <562F61EA.5080303@xilinx.com> Message-ID: <562F8F1A.4050903@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 at xilinx.com] >> Sent: Dienstag, 27. Oktober 2015 12:37 >> To: Hoefle Marco ; Michal Simek >> ; Jagan Teki >> Cc: u-boot at 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 at xilinx.com] >>>> Sent: Montag, 26. Oktober 2015 14:52 >>>> To: Jagan Teki ; Hoefle Marco >>>> ; Michal Simek >> >>>> Cc: u-boot at 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 >>>>> >>>> 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 > >