]> rtime.felk.cvut.cz Git - zynq/linux.git/blob - Documentation/devicetree/bindings/media/xilinx/xlnx,v-tpg.txt
e4df35baa797f2f30757b0693a1d5e9a3b6c4c62
[zynq/linux.git] / Documentation / devicetree / bindings / media / xilinx / xlnx,v-tpg.txt
1 Xilinx Video Test Pattern Generator (TPG)
2 -----------------------------------------
3
4 Required properties:
5
6 - compatible: Must contain at least one of
7
8     "xlnx,v-tpg-5.0" (TPG version 5.0)
9     "xlnx,v-tpg-6.0" (TPG version 6.0)
10     "xlnx,v-tpg-7.0" (TPG version 7.0)
11
12   TPG versions backward-compatible with previous versions should list all
13   compatible versions in the newer to older order.
14
15 - reg: Physical base address and length of the registers set for the device.
16
17 - clocks: Reference to the video core clock.
18
19 - xlnx,video-format, xlnx,video-width: Video format and width, as defined in
20   video.txt.
21
22 - port: Video port, using the DT bindings defined in ../video-interfaces.txt.
23   The TPG has a single output port numbered 0.
24
25 Optional properties:
26
27 - xlnx,vtc: A phandle referencing the Video Timing Controller that generates
28   video timings for the TPG test patterns.
29
30 - timing-gpios: Specifier for a GPIO that controls the timing mux at the TPG
31   input. The GPIO active level corresponds to the selection of VTC-generated
32   video timings.
33
34 - reset-gpios: Specifier for a GPIO that assert TPG (AP_RST_N) reset.
35   This property is mandatory for TPG v7.0.
36
37 The xlnx,vtc and timing-gpios properties are mandatory when the TPG is
38 synthesized with two ports and forbidden when synthesized with one port.
39
40 Example:
41
42         tpg_0: tpg@40050000 {
43                 compatible = "xlnx,v-tpg-6.0", "xlnx,v-tpg-5.0";
44                 reg = <0x40050000 0x10000>;
45                 clocks = <&clkc 15>;
46
47                 xlnx,vtc = <&vtc_3>;
48                 timing-gpios = <&ps7_gpio_0 55 GPIO_ACTIVE_LOW>;
49
50                 ports {
51                         #address-cells = <1>;
52                         #size-cells = <0>;
53
54                         port@0 {
55                                 reg = <0>;
56
57                                 xlnx,video-format = <XVIP_VF_YUV_422>;
58                                 xlnx,video-width = <8>;
59
60                                 tpg_in: endpoint {
61                                         remote-endpoint = <&adv7611_out>;
62                                 };
63                         };
64                         port@1 {
65                                 reg = <1>;
66
67                                 xlnx,video-format = <XVIP_VF_YUV_422>;
68                                 xlnx,video-width = <8>;
69
70                                 tpg1_out: endpoint {
71                                         remote-endpoint = <&switch_in0>;
72                                 };
73                         }:
74                 };
75         };