ti,da850-vpif.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Texas Instruments VPIF
  2. ----------------------
  3. The TI Video Port InterFace (VPIF) is the primary component for video
  4. capture and display on the DA850/AM18x family of TI DaVinci/Sitara
  5. SoCs.
  6. TI Document reference: SPRUH82C, Chapter 35
  7. http://www.ti.com/lit/pdf/spruh82
  8. Required properties:
  9. - compatible: must be "ti,da850-vpif"
  10. - reg: physical base address and length of the registers set for the device;
  11. - interrupts: should contain IRQ line for the VPIF
  12. Video Capture:
  13. VPIF has a 16-bit parallel bus input, supporting 2 8-bit channels or a
  14. single 16-bit channel. It should contain one or two port child nodes
  15. with child 'endpoint' node. If there are two ports then port@0 must
  16. describe the input and port@1 output channels. Please refer to the
  17. bindings defined in
  18. Documentation/devicetree/bindings/media/video-interfaces.txt.
  19. Example using 2 8-bit input channels, one of which is connected to an
  20. I2C-connected TVP5147 decoder:
  21. vpif: vpif@217000 {
  22. compatible = "ti,da850-vpif";
  23. reg = <0x217000 0x1000>;
  24. interrupts = <92>;
  25. port@0 {
  26. vpif_input_ch0: endpoint@0 {
  27. reg = <0>;
  28. bus-width = <8>;
  29. remote-endpoint = <&composite_in>;
  30. };
  31. vpif_input_ch1: endpoint@1 {
  32. reg = <1>;
  33. bus-width = <8>;
  34. data-shift = <8>;
  35. };
  36. };
  37. port@1 {
  38. vpif_output_ch0: endpoint {
  39. bus-width = <8>;
  40. remote-endpoint = <&composite_out>;
  41. };
  42. };
  43. };
  44. [ ... ]
  45. &i2c0 {
  46. tvp5147@5d {
  47. compatible = "ti,tvp5147";
  48. reg = <0x5d>;
  49. port {
  50. composite_in: endpoint {
  51. hsync-active = <1>;
  52. vsync-active = <1>;
  53. pclk-sample = <0>;
  54. /* VPIF channel 0 (lower 8-bits) */
  55. remote-endpoint = <&vpif_input_ch0>;
  56. bus-width = <8>;
  57. };
  58. };
  59. };
  60. adv7343@2a {
  61. compatible = "adi,adv7343";
  62. reg = <0x2a>;
  63. port {
  64. composite_out: endpoint {
  65. adi,dac-enable = <1 1 1>;
  66. adi,sd-dac-enable = <1>;
  67. remote-endpoint = <&vpif_output_ch0>;
  68. bus-width = <8>;
  69. };
  70. };
  71. };
  72. };
  73. Alternatively, an example when the bus is configured as a single
  74. 16-bit input (e.g. for raw-capture mode):
  75. vpif: vpif@217000 {
  76. compatible = "ti,da850-vpif";
  77. reg = <0x217000 0x1000>;
  78. interrupts = <92>;
  79. port {
  80. vpif_ch0: endpoint {
  81. bus-width = <16>;
  82. };
  83. };
  84. };