From: atull <atull@opensource.altera.com>
To: Moritz Fischer <moritz.fischer@ettus.com>
Cc: Rob Herring <robh+dt@kernel.org>, Josh Cartwright <joshc@ni.com>,
Greg KH <gregkh@linuxfoundation.org>,
Michal Simek <monstr@monstr.eu>,
Michal Simek <michal.simek@xilinx.com>,
Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
Jonathan Corbet <corbet@lwn.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Devicetree List <devicetree@vger.kernel.org>,
linux-doc@vger.kernel.org,
Pantelis Antoniou <pantelis.antoniou@konsulko.com>,
Alan Tull <delicious.quinoa@gmail.com>,
"dinguyen@opensource.altera.com" <dinguyen@opensource.altera.com>
Subject: Re: [PATCH v15 1/6] fpga: add bindings document for fpga area and fpga bus
Date: Thu, 21 Jan 2016 11:21:08 -0600 [thread overview]
Message-ID: <alpine.DEB.2.02.1601211114160.8804@linuxheads99> (raw)
In-Reply-To: <CAAtXAHfkQnxZtphRyjUn6qgW=9RMpcJ_CDa4vKgzATsw_NVYWQ@mail.gmail.com>
On Thu, 21 Jan 2016, Moritz Fischer wrote:
> Hi Alan,
>
> I tried getting a simple example to work with overlays, however so far
> I failed getting
> the child nodes to probe drivers, maybe you have an idea? The fpga
> image is loaded just fine.
>
> in dts:
>
> fpga_bus@0 {
> compatible = "altr,fpga-bus", "simple-bus";
> #address-cells = <1>;
> #size-cells = <1>;
> ranges;
>
> fpga_mgr0: devcfg@f8007000 {
> compatible = "xlnx,zynq-devcfg-1.0",
> "simple-bus";
> reg = <0xf8007000 0x100>;
> interrupt-parent = <&intc>;
> interrupts = <0 8 4>;
> clocks = <&clkc 12>;
> clock-names = "ref_clk";
> syscon = <&slcr>;
>
> #address-cells = <1>;
> #size-cells = <1>;
> ranges;
> };
> };
>
> overlay:
>
> fragment@0 {
> target-path = "/amba/devcfg@f8007000";
Hi Moritz,
target-path = "/amba/fpga_bus@0/devcfg@f8007000";
should work, I hope. If it doesn't, turn on debugging for
fpga-area.c and maybe add more printk's in the probe function.
Hopefully you get to the fpga-area's probe function and can
see which step is bailing out. If you get as far as
of_platform_populate, but your axidma's probe isn't getting
called then you could add some debug to drivers/of/platform.c
to see why it's not getting populated.
Alan
> __overlay__ {
> #address-cells = <1>;
> #size-cells = <1>;
>
> area@0 {
> compatible = "fpga-area";
> #address-cells = <1>;
> #size-cells = <1>;
> ranges;
>
> firmware-name = "dmac.bin";
>
> axi_dma0: axidma@40000000 {
> compatible = "xlnx,axi-dma-1.00.a";
> reg = <0x40000000 0x10000>;
> #dma-cells = <1>;
> xlnx,include-sg = <1>;
> xlnx,include-dre = <1>;
> status = "okay";
> [...]
> };
> };
> };
> };
>
>
> I also stumbled across those while looking through the examples:
>
> > +Example:
> > +
> > +/dts-v1/;
> > +/plugin/;
>
> /dts-v1/ / plugin/; the above syntax is deprecated:
>
> Warning (deprecated_plugin_syntax): Use '/dts-v1/ /plugin/'; syntax.
> /dts-v1/; /plugin/; is going to be removed in next versions
>
> > +Device Tree Example: Partial Reconfiguration with no Bridges
> > +============================================================
> > +
> > +Live Device Tree contains:
> > + fpgamgr@ffd03000 {
> > + compatible = "altr,socfpga-a10-fpga-mgr", "simple-bus";
> > + clocks = <&l4_mp_clk>;
> > + resets = <&rst FPGAMGR_RESET>;
> > + reset-names = "fpgamgr";
> > + reg = <0xffd03000 0x1000
> > + 0xffcfe400 0x1000>;
> > +
> > + #address-cells = <0x1>;
> > + #size-cells = <0x1>;
> > + ranges;
> > + };
> > +
> > +DT Overlay contains:
> > +/dts-v1/;
> > +/plugin/;
Yes, thanks! I will adjust the documentation to reflect that.
Alan
>
> see above
>
> Cheers,
>
> Moritz
>
next prev parent reply other threads:[~2016-01-21 17:21 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-20 19:24 [PATCH v15 0/6] altera fpga area and fpga bus atull
2016-01-20 19:24 ` [PATCH v15 1/6] fpga: add bindings document for " atull
2016-01-21 15:00 ` Moritz Fischer
2016-01-21 17:21 ` atull [this message]
2016-01-21 20:33 ` Moritz Fischer
2016-01-25 16:53 ` Rob Herring
2016-01-27 20:24 ` atull
2016-01-27 21:15 ` Moritz Fischer
2016-01-20 19:24 ` [PATCH v15 2/6] add sysfs document for fpga bridge class atull
2016-01-21 12:17 ` Måns Rullgård
2016-01-21 12:20 ` Moritz Fischer
[not found] ` <1453317867-10422-3-git-send-email-atull-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org>
2016-01-21 16:32 ` atull
2016-01-20 19:24 ` [PATCH v15 3/6] ARM: socfpga: add bindings document for fpga bridge drivers atull
2016-01-20 19:24 ` [PATCH v15 4/6] fpga: add fpga bridge framework atull
2016-01-20 19:24 ` [PATCH v15 5/6] fpga: fpga-area and fpga-bus: device tree control for FPGA atull
2016-01-21 14:44 ` Moritz Fischer
2016-01-21 17:23 ` atull
2016-01-22 11:01 ` Moritz Fischer
2016-01-22 16:37 ` atull
2016-01-23 0:07 ` Moritz Fischer
2016-01-25 16:17 ` Rob Herring
2016-01-27 18:59 ` atull
2016-01-20 19:24 ` [PATCH v15 6/6] ARM: socfpga: fpga bridge driver support atull
[not found] ` <1453317867-10422-1-git-send-email-atull-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org>
2016-01-21 9:48 ` [PATCH v15 0/6] altera fpga area and fpga bus Moritz Fischer
2016-01-21 16:42 ` atull
2016-01-21 20:38 ` Moritz Fischer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.02.1601211114160.8804@linuxheads99 \
--to=atull@opensource.altera.com \
--cc=corbet@lwn.net \
--cc=delicious.quinoa@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@opensource.altera.com \
--cc=galak@codeaurora.org \
--cc=gregkh@linuxfoundation.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=joshc@ni.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=michal.simek@xilinx.com \
--cc=monstr@monstr.eu \
--cc=moritz.fischer@ettus.com \
--cc=pantelis.antoniou@konsulko.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).