]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commitdiff
dt: bindings: drm: xilinx: adjust dma-names property assumptions
authorJean-Francois Dagenais <jeff.dagenais@gmail.com>
Fri, 7 Jul 2017 13:00:41 +0000 (09:00 -0400)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 12 Jul 2017 07:40:18 +0000 (09:40 +0200)
The improved xilinx_drm_plane dma loop frees the bindings from the
constraint of naming the dmas: "dma0", "dma1", etc.

Developers are not free to use a meaningful string of their choosing.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Documentation/devicetree/bindings/drm/xilinx/xilinx_drm.txt

index de4109977a96e944430b56730d95a4722dd24e84..9734bc2d523ecc50b4a2efa10eceaa45ae052c10 100644 (file)
@@ -58,8 +58,7 @@ Required planes properties:
 
 Required plane properties:
  - dmas: the phandle list of DMA specifiers
- - dma-names: the indentifier strings for DMAs. The value should be "dma"
-   followed by the index: "dma0", "dma1".
+ - dma-names: the identifier strings for DMAs.
  - xlnx,rgb2yuv: the phandle for rgb2ycrcb IP if used for plane
  - xlnx,cresample: the phandle for chroma resampler IP if used for plane
 
@@ -78,7 +77,7 @@ vdma - [remap] - rgb2yuv - cresample - [axi2vid] - adv7511
                        xlnx,pixel-format = "yuv422";
                        plane0 {
                                dma = <&axi_vdma_0>;
-                               dma-names = "dma0";
+                               dma-names = "axi_vdma_0";
                                xlnx,rgb2yuv = <&v_rgb2ycrcb_0>;
                                xlnx,cresample = <&v_cresample_0>;
                        };
@@ -102,11 +101,11 @@ vdma - [remap] - rgb2yuv -|                               |
                        xlnx,pixel-format = "yuv422";
                        plane0 {
                                dma = <&axi_vdma_0>;
-                               dma-names = "dma0";
+                               dma-names = "axi_vdma_0";
                        };
                        plane1 {
                                dma = <&axi_vdma_1>;
-                               dma-names = "dma0";
+                               dma-names = "axi_vdma_1";
                                xlnx,rgb2yuv = <&v_rgb2ycrcb_0>;
                        };
                };
@@ -125,13 +124,15 @@ dpdma - ZynqMP DP subsystem - DP
                        xlnx,pixel-format = "rgb565";
                        plane0 {
                                dmas = <&xlnx_dpdma 3>;
-                               dma-names = "dma0";
+                               dma-names = "xlnx_dpdma";
                        };
                        plane1 {
                                dmas = <&xlnx_dpdma 0>,
                                       <&xlnx_dpdma 1>,
                                       <&xlnx_dpdma 2>;
-                               dma-names = "dma0", "dma1", "dma2";
+                               dma-names = "xlnx_dpdma_0",
+                                           "xlnx_dpdma_1",
+                                           "xlnx_dpdma_2";
                        };
                };
        };
@@ -154,7 +155,7 @@ vdma - Xilinx MIPI DSI
                        xlnx,pixel-format = "rgb888";
                        plane0 {
                                dmas = <&axi_vdma_0 0>;
-                               dma-names = "dma0";
+                               dma-names = "axi_vdma_0";
                        };
                };
        };