]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/blob - Documentation/devicetree/bindings/dma/xilinx/xilinx_frmbuf.txt
996f20e86ee57407a37a3d067a632722f805b1f5
[vajnamar/linux-xlnx.git] / Documentation / devicetree / bindings / dma / xilinx / xilinx_frmbuf.txt
1 The Xilinx framebuffer DMA engine supports two soft IP blocks: one IP
2 block is used for reading video frame data from memory (FB Read) to the device
3 and the other IP block is used for writing video frame data from the device
4 to memory (FB Write).  Both the FB Read/Write IP blocks are aware of the
5 format of the data being written to or read from memory including RGB and
6 YUV in packed, planar, and semi-planar formats.  Because the FB Read/Write
7 is format aware, only one buffer pointer is needed by the IP blocks even
8 when planar or semi-planar format are used.
9
10 FB Read Required propertie(s):
11 - compatible            : Should be "xlnx,axi-frmbuf-rd-v2"
12
13 Note: Compatible string "xlnx,axi-frmbuf-rd" and the hardware it
14 represented is no longer supported.
15
16 FB Write Required propertie(s):
17 - compatible            : Should be "xlnx,axi-frmbuf-wr-v2"
18
19 Note: Compatible string "xlnx,axi-frmbuf-wr" and the hardware it
20 represented is no longer supported.
21
22 Required Properties Common to both FB Read and FB Write:
23 - #dma-cells            : should be 1
24 - interrupt-parent      : Interrupt controller the interrupt is routed through
25 - interrupts            : Should contain DMA channel interrupt
26 - reset-gpios           : Should contain GPIO reset phandle
27 - reg                   : Memory map for module access
28 - xlnx,dma-addr-width   : Size of dma address pointer in IP (either 32 or 64)
29
30 Examples
31
32 FB Read Example:
33 ++++++++
34 v_frmbuf_rd_0: v_frmbuf_rd@80000000 {
35         #dma-cells = <1>;
36         compatible = "xlnx,axi-frmbuf-rd-v2";
37         interrupt-parent = <&gic>;
38         interrupts = <0 92 4>;
39         reset-gpios = <&gpio 80 1>;
40         reg = <0x0 0x80000000 0x0 0x10000>;
41         xlnx,dma-addr-width = <32>;
42 };
43
44 FB Write Example:
45 ++++++++
46 v_frmbuf_wr_0: v_frmbuf_wr@80000000 {
47         #dma-cells = <1>;
48         compatible = "xlnx,axi-frmbuf-wr-v2";
49         interrupt-parent = <&gic>;
50         interrupts = <0 92 4>;
51         reset-gpios = <&gpio 80 1>;
52         reg = <0x0 0x80000000 0x0 0x10000>;
53         xlnx,dma-addr-width = <64>;
54 };