xlnx,v-tpg.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Xilinx Video Test Pattern Generator (TPG)
  2. -----------------------------------------
  3. Required properties:
  4. - compatible: Must contain at least one of
  5. "xlnx,v-tpg-5.0" (TPG version 5.0)
  6. "xlnx,v-tpg-6.0" (TPG version 6.0)
  7. TPG versions backward-compatible with previous versions should list all
  8. compatible versions in the newer to older order.
  9. - reg: Physical base address and length of the registers set for the device.
  10. - clocks: Reference to the video core clock.
  11. - xlnx,video-format, xlnx,video-width: Video format and width, as defined in
  12. video.txt.
  13. - port: Video port, using the DT bindings defined in ../video-interfaces.txt.
  14. The TPG has a single output port numbered 0.
  15. Optional properties:
  16. - xlnx,vtc: A phandle referencing the Video Timing Controller that generates
  17. video timings for the TPG test patterns.
  18. - timing-gpios: Specifier for a GPIO that controls the timing mux at the TPG
  19. input. The GPIO active level corresponds to the selection of VTC-generated
  20. video timings.
  21. The xlnx,vtc and timing-gpios properties are mandatory when the TPG is
  22. synthesized with two ports and forbidden when synthesized with one port.
  23. Example:
  24. tpg_0: tpg@40050000 {
  25. compatible = "xlnx,v-tpg-6.0", "xlnx,v-tpg-5.0";
  26. reg = <0x40050000 0x10000>;
  27. clocks = <&clkc 15>;
  28. xlnx,vtc = <&vtc_3>;
  29. timing-gpios = <&ps7_gpio_0 55 GPIO_ACTIVE_LOW>;
  30. ports {
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. port@0 {
  34. reg = <0>;
  35. xlnx,video-format = <XVIP_VF_YUV_422>;
  36. xlnx,video-width = <8>;
  37. tpg_in: endpoint {
  38. remote-endpoint = <&adv7611_out>;
  39. };
  40. };
  41. port@1 {
  42. reg = <1>;
  43. xlnx,video-format = <XVIP_VF_YUV_422>;
  44. xlnx,video-width = <8>;
  45. tpg1_out: endpoint {
  46. remote-endpoint = <&switch_in0>;
  47. };
  48. }:
  49. };
  50. };