xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip_drm_tve.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Rockchip specific extensions to the TVE
2================================
3
4Required properties:
5- compatible: "rockchip,rk3328-tve";
6- reg: Physical base address and length of the controller's registers.
7- ports: contain a port node with endpoint definitions as defined in
8  Documentation/devicetree/bindings/media/video-interfaces.txt
9- rockchip,saturation: the value for TVE_COLOR_BUSRT_SAT(0x78)
10- rockchip,brightcontrast: the value for TVE_BRIGHTNESS_CONTRAST(0x90)
11- rockchip,adjtiming: the value for TVE_HOR_TIMING3(0x0c)
12- rockchip,lumafilter0: the value for TVE_LUMA_FILTER1(0x14)
13- rockchip,lumafilter1: the value for TVE_LUMA_FILTER2(0x18)
14- rockchip,lumafilter2: the value for TVE_LUMA_FILTER3(0x1c)
15- rockchip,daclevel: the value is used to adjust the voltage amplitude of the CVBS
16- rockchip,dac1level: only for rv1108 rk322x and rk3328
17Optional properties:
18- rockchip,tvemode: tve preferred mode, 0 for PAL, 1 for NTSC
19
20Example:
21	tve: tve@ff373e00 {
22		compatible = "rockchip,rk3328-tve";
23		reg = <0x0 0xff373e00 0x0 0x100>,
24		      <0x0 0xff420000 0x0 0x10000>;
25		rockchip,saturation = <0x00376749>;
26		rockchip,brightcontrast = <0x0000a305>;
27		rockchip,adjtiming = <0xb6c00880>;
28		rockchip,lumafilter0 = <0x01ff0000>;
29		rockchip,lumafilter1 = <0xf40200fe>;
30		rockchip,lumafilter2 = <0xf332d70c>;
31		rockchip,daclevel = <0x22>;
32		rockchip,dac1level = <0x7>;
33		rockchip,tvemode = <0>;
34		status = "disabled";
35
36		ports {
37			tve_in: port {
38				#address-cells = <1>;
39				#size-cells = <0>;
40				tve_in_vop: endpoint@0 {
41					reg = <0>;
42					remote-endpoint = <&vop_out_tve>;
43				};
44			};
45		};
46	};
47