]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
dt-bindings: media: vpss-csc: Make max width and height mandatory properties
authorVishal Sagar <vishal.sagar@xilinx.com>
Thu, 14 Mar 2019 10:55:53 +0000 (03:55 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 15 Mar 2019 09:32:52 +0000 (10:32 +0100)
This patch makes the xlnx,max-width and xlnx,max-height mandatory dt
properties. This breaks backward compatibility.

Signed-off-by: Vishal Sagar <vishal.sagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Documentation/devicetree/bindings/media/xilinx/xlnx,v-vpss-csc.txt

index 491f7dbd2b6171841039f4f542f274cb9778c793..b3627af85e6e1ec664a2a1ea486aa24b9e803245 100644 (file)
@@ -11,6 +11,12 @@ Required properties:
 
 - clocks: Reference to the clock that drives the ap_clk signal.
 
+- xlnx,max-height: Maximum number of lines.
+  Valid range from 64 to 4320.
+
+- xlnx,max-width: Maximum number of pixels in a line.
+  Valid range from 64 to 8192.
+
 - reset-gpios: Specifier for a GPIO that assert VPSS CSC (AP_RST_N) reset.
 
 - ports: Video ports, using the DT bindings defined in ../video-interfaces.txt.
@@ -24,17 +30,14 @@ Required port properties:
 
 - xlnx,video-width: Video width as defined in video.txt. Must be either 8 or 10.
 
-Optional properties:
-
-- xlnx,max-height: Maximum number of lines.
-- xlnx,max-width: Maximum number of pixels in a line.
-
 Example:
        csc_1:csc@a0040000 {
                compatible = "xlnx,v-vpss-csc";
                reg = <0x0 0xa0040000 0x0 0x10000>;
                clocks = <&vid_stream_clk>;
                reset-gpios = <&gpio 84 1>;
+               xlnx,max-width = <3840>;
+               xlnx,max-height = <2160>;
 
                ports {
                        #address-cells = <1>;