* [PATCH] ARM: dts: zynq: Enable PL clocks for Parallella @ 2014-11-06 17:22 Andreas Färber 2014-11-06 17:33 ` Sören Brinkmann 2014-11-07 6:44 ` Michal Simek 0 siblings, 2 replies; 5+ messages in thread From: Andreas Färber @ 2014-11-06 17:22 UTC (permalink / raw) To: Michal Simek Cc: Olof Johansson, Sören Brinkmann, linux-arm-kernel, Andreas Olofsson, Matteo Vit, Sean Rickerd, Andreas Färber, stable, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Russell King, open list:OPEN FIRMWARE AND..., open list The Parallella board comes with a U-Boot bootloader that loads one of two predefined FPGA bitstreams before booting the kernel. Both define an AXI interface to the on-board Epiphany processor. Enable clocks FCLK0..FCLK3 for the Programmable Logic by default. Otherwise accessing, e.g., the ESYSRESET register freezes the board, as seen with the Epiphany SDK tools e-reset and e-hw-rev, using /dev/mem. Cc: <stable@vger.kernel.org> # 3.17.x Signed-off-by: Andreas Färber <afaerber@suse.de> --- Michal/Olof, please consider this trivial patch as a fix for 3.18. arch/arm/boot/dts/zynq-parallella.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/zynq-parallella.dts b/arch/arm/boot/dts/zynq-parallella.dts index e1f51ca127fe..0429bbd89fba 100644 --- a/arch/arm/boot/dts/zynq-parallella.dts +++ b/arch/arm/boot/dts/zynq-parallella.dts @@ -34,6 +34,10 @@ }; }; +&clkc { + fclk-enable = <0xf>; +}; + &gem0 { status = "okay"; phy-mode = "rgmii-id"; -- 2.1.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: zynq: Enable PL clocks for Parallella 2014-11-06 17:22 [PATCH] ARM: dts: zynq: Enable PL clocks for Parallella Andreas Färber @ 2014-11-06 17:33 ` Sören Brinkmann 2014-11-06 18:34 ` Andreas Färber 2014-11-07 6:44 ` Michal Simek 1 sibling, 1 reply; 5+ messages in thread From: Sören Brinkmann @ 2014-11-06 17:33 UTC (permalink / raw) To: Andreas Färber Cc: Mark Rutland, open list:OPEN FIRMWARE AND..., Russell King, Pawel Moll, Andreas Olofsson, Ian Campbell, Michal Simek, stable, open list, Rob Herring, Matteo Vit, Sean Rickerd, Olof Johansson, Kumar Gala, linux-arm-kernel Hi Andreas, On Thu, 2014-11-06 at 06:22PM +0100, Andreas Färber wrote: > The Parallella board comes with a U-Boot bootloader that loads one of > two predefined FPGA bitstreams before booting the kernel. Both define an > AXI interface to the on-board Epiphany processor. > > Enable clocks FCLK0..FCLK3 for the Programmable Logic by default. > > Otherwise accessing, e.g., the ESYSRESET register freezes the board, > as seen with the Epiphany SDK tools e-reset and e-hw-rev, using /dev/mem. Yeah, this is the problem. Bypassing the kernel banging on memory directly through /dev/mem does not leave any chance of enabling clocks on demand through the proper interfaces. Though, this is a valid workaround for the immediate problem, longer term, you should consider adding some kind of proper kernel driver for this interface that would then use the clock framework to control the required clocks dynamically. Sören _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: zynq: Enable PL clocks for Parallella 2014-11-06 17:33 ` Sören Brinkmann @ 2014-11-06 18:34 ` Andreas Färber 0 siblings, 0 replies; 5+ messages in thread From: Andreas Färber @ 2014-11-06 18:34 UTC (permalink / raw) To: Sören Brinkmann Cc: Michal Simek, Olof Johansson, linux-arm-kernel, Andreas Olofsson, Matteo Vit, Sean Rickerd, stable, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Russell King, OPEN FIRMWARE AND..., LKML [-- Attachment #1: Type: text/plain, Size: 2118 bytes --] Hi Sören, Am 06.11.2014 um 18:33 schrieb Sören Brinkmann: > On Thu, 2014-11-06 at 06:22PM +0100, Andreas Färber wrote: >> The Parallella board comes with a U-Boot bootloader that loads one of >> two predefined FPGA bitstreams before booting the kernel. Both define an >> AXI interface to the on-board Epiphany processor. >> >> Enable clocks FCLK0..FCLK3 for the Programmable Logic by default. >> >> Otherwise accessing, e.g., the ESYSRESET register freezes the board, >> as seen with the Epiphany SDK tools e-reset and e-hw-rev, using /dev/mem. > > Yeah, this is the problem. Bypassing the kernel banging on memory > directly through /dev/mem does not leave any chance of enabling clocks on > demand through the proper interfaces. > > Though, this is a valid workaround for the immediate problem, longer > term, you should consider adding some kind of proper kernel driver for > this interface that would then use the clock framework to control the > required clocks dynamically. Yes, Adapteva has a new char driver, and I have a proof-of-concept platform driver on the branch I mentioned (where I had experimented with enabling the wrong clock: adi,axi-clkgen-2.00a). https://github.com/afaerber/linux/commits/parallella-next But as there is no such driver in 3.17 or 3.18, I consider this patch the right short-term fix according to your earlier message. Apart from fixing functionality for users, it buys us more time to find a consensus on how the kernel driver(s) should actually look like. ;) My goal is having the DT describe the chip rather than some userspace text/XML file and to have all chip-specific quirks in the driver. I've been reading up on remoteproc, but it doesn't quite seem to match the deployment model for Epiphany AFAICT. Also, as discussed during the initial submission, we'll need to split and reorganize the .dts file once we start adding nodes beyond the common Epiphany IP. Regards, Andreas -- SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 21284 AG Nürnberg [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: zynq: Enable PL clocks for Parallella 2014-11-06 17:22 [PATCH] ARM: dts: zynq: Enable PL clocks for Parallella Andreas Färber 2014-11-06 17:33 ` Sören Brinkmann @ 2014-11-07 6:44 ` Michal Simek [not found] ` <eca8ae5de8184151b03d3fd8d23c62a7-neA4ZlFjCT2P1V7ZRuPZVmYJ4DzVTqeXkX/xN29GLwg@public.gmane.org> 1 sibling, 1 reply; 5+ messages in thread From: Michal Simek @ 2014-11-07 6:44 UTC (permalink / raw) To: Andreas Färber, Michal Simek, Olof Johansson, Arnd Bergmann Cc: Mark Rutland, open list:OPEN FIRMWARE AND..., Russell King, Pawel Moll, Andreas Olofsson, Ian Campbell, open list, stable, Rob Herring, Sören Brinkmann, Matteo Vit, Sean Rickerd, Kumar Gala, linux-arm-kernel On 11/06/2014 06:22 PM, Andreas Färber wrote: > The Parallella board comes with a U-Boot bootloader that loads one of > two predefined FPGA bitstreams before booting the kernel. Both define an > AXI interface to the on-board Epiphany processor. > > Enable clocks FCLK0..FCLK3 for the Programmable Logic by default. > > Otherwise accessing, e.g., the ESYSRESET register freezes the board, > as seen with the Epiphany SDK tools e-reset and e-hw-rev, using /dev/mem. > > Cc: <stable@vger.kernel.org> # 3.17.x > Signed-off-by: Andreas Färber <afaerber@suse.de> > --- > Michal/Olof, please consider this trivial patch as a fix for 3.18. Acked-by: Michal Simek <michal.simek@xilinx.com> Olof, Arnd: Can you please pick this directly? Thanks, Michal _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <eca8ae5de8184151b03d3fd8d23c62a7-neA4ZlFjCT2P1V7ZRuPZVmYJ4DzVTqeXkX/xN29GLwg@public.gmane.org>]
* Re: [PATCH] ARM: dts: zynq: Enable PL clocks for Parallella [not found] ` <eca8ae5de8184151b03d3fd8d23c62a7-neA4ZlFjCT2P1V7ZRuPZVmYJ4DzVTqeXkX/xN29GLwg@public.gmane.org> @ 2014-11-09 0:58 ` Olof Johansson 0 siblings, 0 replies; 5+ messages in thread From: Olof Johansson @ 2014-11-09 0:58 UTC (permalink / raw) To: Michal Simek Cc: Andreas Färber, Arnd Bergmann, Sören Brinkmann, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Andreas Olofsson, Matteo Vit, Sean Rickerd, stable-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Russell King, open list:OPEN FIRMWARE AND..., open list On Fri, Nov 07, 2014 at 07:44:16AM +0100, Michal Simek wrote: > On 11/06/2014 06:22 PM, Andreas Färber wrote: > > The Parallella board comes with a U-Boot bootloader that loads one of > > two predefined FPGA bitstreams before booting the kernel. Both define an > > AXI interface to the on-board Epiphany processor. > > > > Enable clocks FCLK0..FCLK3 for the Programmable Logic by default. > > > > Otherwise accessing, e.g., the ESYSRESET register freezes the board, > > as seen with the Epiphany SDK tools e-reset and e-hw-rev, using /dev/mem. > > > > Cc: <stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org> # 3.17.x > > Signed-off-by: Andreas Färber <afaerber-l3A5Bk7waGM@public.gmane.org> > > --- > > Michal/Olof, please consider this trivial patch as a fix for 3.18. > > Acked-by: Michal Simek <michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org> > > Olof, Arnd: Can you please pick this directly? Done, applied to fixes. -Olof -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-11-09 0:58 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-11-06 17:22 [PATCH] ARM: dts: zynq: Enable PL clocks for Parallella Andreas Färber 2014-11-06 17:33 ` Sören Brinkmann 2014-11-06 18:34 ` Andreas Färber 2014-11-07 6:44 ` Michal Simek [not found] ` <eca8ae5de8184151b03d3fd8d23c62a7-neA4ZlFjCT2P1V7ZRuPZVmYJ4DzVTqeXkX/xN29GLwg@public.gmane.org> 2014-11-09 0:58 ` Olof Johansson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).