xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/rockchip/rockchip-rgb.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Rockchip RGB interface
2================================
3
4Required properties:
5- compatible: matching the soc type:
6	- "rockchip,px30-rgb";
7	- "rockchip,rk1808-rgb";
8	- "rockchip,rk3066-rgb";
9	- "rockchip,rk3128-rgb";
10	- "rockchip,rk3288-rgb";
11	- "rockchip,rk3308-rgb";
12	- "rockchip,rk3368-rgb";
13	- "rockchip,rv1108-rgb";
14	- "rockchip,rv1126-rgb";
15
16Optional properties:
17- phys : phandle for the PHY device
18- phy-names : should be "phy"
19- pinctrl-names: the pin control state names; should contain "default"
20- pinctrl-0: the default pinctrl state (active)
21- pinctrl-1: the "sleep" pinctrl state
22- rockchip,data-sync-bypass: bypass the vop data-sync logic from io
23
24The rgb has two video ports described by:
25	Documentation/devicetree/bindings/media/video-interfaces.txt
26Their connections are modeled using the OF graph bindings specified in
27	Documentation/devicetree/bindings/graph.txt.
28
29- video port 0 for the VOP input
30- video port 1 for either a panel or bridge
31
32Example:
33
34&grf {
35	rgb: rgb {
36		compatible = "rockchip,rk3288-rgb";
37		pinctrl-names = "default", "sleep";
38		pinctrl-0 = <&lcdc_rgb_pins>;
39		pinctrl-1 = <&lcdc_sleep_pins>;
40		phys = <&video_phy>;
41		phy-names = "phy";
42		status = "disabled";
43
44		ports {
45			#address-cells = <1>;
46			#size-cells = <0>;
47
48			port@0 {
49				reg = <0>;
50				#address-cells = <1>;
51				#size-cells = <0>;
52
53				rgb_in_vopb: endpoint@0 {
54					reg = <0>;
55					remote-endpoint = <&vopb_out_rgb>;
56				};
57
58				rgb_in_vopl: endpoint@1 {
59					reg = <1>;
60					remote-endpoint = <&vopl_out_rgb>;
61				};
62			};
63		};
64	};
65};
66