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