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