Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1314256
| From | Moritz Fischer <moritz.fischer@ettus.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v15 1/6] fpga: add bindings document for fpga area and fpga bus |
| Date | 2016-01-21 16:10 +0100 |
| Message-ID | <qTp22-6YC-31@gated-at.bofh.it> (permalink) |
| References | <qTk2m-3oR-11@gated-at.bofh.it> <qTp22-6YC-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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";
__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/;
see above
Cheers,
Moritz
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH v15 1/6] fpga: add bindings document for fpga area and fpga bus Moritz Fischer <moritz.fischer@ettus.com> - 2016-01-21 16:10 +0100 Re: [PATCH v15 1/6] fpga: add bindings document for fpga area and fpga bus Moritz Fischer <moritz.fischer@ettus.com> - 2016-01-21 21:40 +0100
csiph-web