similarity index 63%copy from kernel/arch/arm64/boot/dts/rockchip/rk3567-evb2-lp4x-v10-dual-lvds.dtscopy to kernel/arch/arm64/boot/dts/rockchip/rk3567-evb2-lp4x-v10-two-vp-two-separate-single-channel-lvds.dts.. | .. |
---|
13 | 13 | #include "rk3568-android.dtsi" |
---|
14 | 14 | |
---|
15 | 15 | / { |
---|
16 | | - model = "Rockchip RK3567 EVB2 LP4X V10 Board"; |
---|
17 | | - compatible = "rockchip,rk3567-evb2-lp4x-v10", "rockchip,rk3567"; |
---|
| 16 | + model = "Rockchip RK3567 EVB2 LP4X V10 Board with two vp two separate single channel lvds"; |
---|
| 17 | + compatible = "rockchip,rk3567-evb2-lp4x-v10-two-vp-two-separate-single-channel-lvds", "rockchip,rk3567"; |
---|
18 | 18 | |
---|
19 | | - panel { |
---|
| 19 | + /** |
---|
| 20 | + * VP1 -> LVDS0 -> Panel0 |
---|
| 21 | + * VP2 -> LVDS1 -> Panel1 |
---|
| 22 | + */ |
---|
| 23 | + |
---|
| 24 | + /* panel: claa070wp03xg */ |
---|
| 25 | + panel-lvds0 { |
---|
20 | 26 | compatible = "simple-panel"; |
---|
21 | 27 | backlight = <&backlight>; |
---|
22 | 28 | power-supply = <&vcc3v3_lcd0_n>; |
---|
.. | .. |
---|
30 | 36 | |
---|
31 | 37 | display-timings { |
---|
32 | 38 | native-mode = <&timing0>; |
---|
33 | | - |
---|
34 | 39 | timing0: timing0 { |
---|
35 | | - clock-frequency = <134000000>; |
---|
36 | | - hactive = <1600>; |
---|
| 40 | + clock-frequency = <67000000>; |
---|
| 41 | + hactive = <800>; |
---|
37 | 42 | vactive = <1280>; |
---|
38 | 43 | hback-porch = <60>; |
---|
39 | 44 | hfront-porch = <60>; |
---|
40 | 45 | vback-porch = <4>; |
---|
41 | 46 | vfront-porch = <2>; |
---|
42 | 47 | hsync-len = <8>; |
---|
43 | | - vsync-len = <2>; |
---|
| 48 | + vsync-len = <8>; |
---|
44 | 49 | hsync-active = <0>; |
---|
45 | 50 | vsync-active = <0>; |
---|
46 | 51 | de-active = <0>; |
---|
.. | .. |
---|
51 | 56 | ports { |
---|
52 | 57 | #address-cells = <1>; |
---|
53 | 58 | #size-cells = <0>; |
---|
54 | | - |
---|
55 | | - /** |
---|
56 | | - * Panel <----> LVDS0 |
---|
57 | | - * Panel <----> LVDS1 |
---|
58 | | - */ |
---|
59 | 59 | port@0 { |
---|
60 | 60 | reg = <0>; |
---|
61 | | - dual-lvds-left-pixels; |
---|
62 | 61 | panel_in_lvds0: endpoint { |
---|
63 | 62 | remote-endpoint = <&lvds0_out_panel>; |
---|
64 | 63 | }; |
---|
65 | 64 | }; |
---|
66 | | - port@1 { |
---|
67 | | - reg = <1>; |
---|
68 | | - dual-lvds-right-pixels; |
---|
| 65 | + }; |
---|
| 66 | + }; |
---|
| 67 | + |
---|
| 68 | + /* panel: claa070wp03xg */ |
---|
| 69 | + panel-lvds1 { |
---|
| 70 | + compatible = "simple-panel"; |
---|
| 71 | + backlight = <&backlight1>; |
---|
| 72 | + power-supply = <&vcc3v3_lcd1_n>; |
---|
| 73 | + enable-delay-ms = <20>; |
---|
| 74 | + prepare-delay-ms = <20>; |
---|
| 75 | + unprepare-delay-ms = <20>; |
---|
| 76 | + disable-delay-ms = <20>; |
---|
| 77 | + bus-format = <MEDIA_BUS_FMT_RGB666_1X7X3_SPWG>; |
---|
| 78 | + width-mm = <217>; |
---|
| 79 | + height-mm = <136>; |
---|
| 80 | + |
---|
| 81 | + display-timings { |
---|
| 82 | + native-mode = <&timing1>; |
---|
| 83 | + timing1: timing1 { |
---|
| 84 | + clock-frequency = <67000000>; |
---|
| 85 | + hactive = <800>; |
---|
| 86 | + vactive = <1280>; |
---|
| 87 | + hback-porch = <60>; |
---|
| 88 | + hfront-porch = <60>; |
---|
| 89 | + vback-porch = <4>; |
---|
| 90 | + vfront-porch = <2>; |
---|
| 91 | + hsync-len = <8>; |
---|
| 92 | + vsync-len = <8>; |
---|
| 93 | + hsync-active = <0>; |
---|
| 94 | + vsync-active = <0>; |
---|
| 95 | + de-active = <0>; |
---|
| 96 | + pixelclk-active = <0>; |
---|
| 97 | + }; |
---|
| 98 | + }; |
---|
| 99 | + |
---|
| 100 | + ports { |
---|
| 101 | + #address-cells = <1>; |
---|
| 102 | + #size-cells = <0>; |
---|
| 103 | + port@0 { |
---|
| 104 | + reg = <0>; |
---|
69 | 105 | panel_in_lvds1: endpoint { |
---|
70 | 106 | remote-endpoint = <&lvds1_out_panel>; |
---|
71 | 107 | }; |
---|
.. | .. |
---|
74 | 110 | }; |
---|
75 | 111 | }; |
---|
76 | 112 | |
---|
77 | | -&backlight1 { |
---|
78 | | - status = "okay"; |
---|
79 | | -}; |
---|
80 | | - |
---|
81 | 113 | &backlight { |
---|
82 | 114 | status = "okay"; |
---|
83 | 115 | }; |
---|
84 | 116 | |
---|
85 | | -&lvds { |
---|
86 | | - status = "okay"; |
---|
87 | | - dual-channel; |
---|
88 | | - |
---|
89 | | - ports { |
---|
90 | | - port@1 { |
---|
91 | | - reg = <1>; |
---|
92 | | - lvds0_out_panel: endpoint { |
---|
93 | | - remote-endpoint = <&panel_in_lvds0>; |
---|
94 | | - }; |
---|
95 | | - }; |
---|
96 | | - }; |
---|
97 | | -}; |
---|
98 | | - |
---|
99 | | -&lvds1 { |
---|
100 | | - status = "okay"; |
---|
101 | | - |
---|
102 | | - ports { |
---|
103 | | - port@1 { |
---|
104 | | - reg = <1>; |
---|
105 | | - lvds1_out_panel: endpoint { |
---|
106 | | - remote-endpoint = <&panel_in_lvds1>; |
---|
107 | | - }; |
---|
108 | | - }; |
---|
109 | | - }; |
---|
110 | | -}; |
---|
111 | | - |
---|
112 | | -&lvds_in_vp1 { |
---|
| 117 | +&backlight1 { |
---|
113 | 118 | status = "okay"; |
---|
114 | 119 | }; |
---|
115 | 120 | |
---|
116 | | -&lvds1_in_vp1 { |
---|
117 | | - status = "disabled"; |
---|
118 | | -}; |
---|
119 | | - |
---|
120 | | -&lvds1_in_vp2 { |
---|
121 | | - status = "okay"; |
---|
122 | | -}; |
---|
123 | | - |
---|
124 | | -/* enable hdmi */ |
---|
125 | | -&hdmi_in_vp1 { |
---|
126 | | - status = "okay"; |
---|
127 | | -}; |
---|
128 | | - |
---|
129 | | -/* enable video phy */ |
---|
130 | | -&video_phy0 { |
---|
131 | | - status = "okay"; |
---|
132 | | -}; |
---|
133 | | - |
---|
134 | | -&video_phy1 { |
---|
135 | | - status = "okay"; |
---|
136 | | -}; |
---|
137 | | - |
---|
138 | | -/* disable other encoder output */ |
---|
139 | 121 | &dsi0 { |
---|
140 | 122 | status = "disabled"; |
---|
141 | 123 | }; |
---|
.. | .. |
---|
156 | 138 | status = "disabled"; |
---|
157 | 139 | }; |
---|
158 | 140 | |
---|
159 | | -&rgb_in_vp2 { |
---|
| 141 | +&hdmi_in_vp1 { |
---|
| 142 | + status = "okay"; |
---|
| 143 | +}; |
---|
| 144 | + |
---|
| 145 | +&lvds0 { |
---|
| 146 | + status = "okay"; |
---|
| 147 | + ports { |
---|
| 148 | + port@1 { |
---|
| 149 | + reg = <1>; |
---|
| 150 | + lvds0_out_panel: endpoint { |
---|
| 151 | + remote-endpoint = <&panel_in_lvds0>; |
---|
| 152 | + }; |
---|
| 153 | + }; |
---|
| 154 | + }; |
---|
| 155 | +}; |
---|
| 156 | + |
---|
| 157 | +&lvds0_in_vp1 { |
---|
| 158 | + status = "okay"; |
---|
| 159 | +}; |
---|
| 160 | + |
---|
| 161 | +&lvds1 { |
---|
| 162 | + status = "okay"; |
---|
| 163 | + ports { |
---|
| 164 | + port@1 { |
---|
| 165 | + reg = <1>; |
---|
| 166 | + lvds1_out_panel: endpoint { |
---|
| 167 | + remote-endpoint = <&panel_in_lvds1>; |
---|
| 168 | + }; |
---|
| 169 | + }; |
---|
| 170 | + }; |
---|
| 171 | +}; |
---|
| 172 | + |
---|
| 173 | +&lvds1_in_vp1 { |
---|
160 | 174 | status = "disabled"; |
---|
161 | 175 | }; |
---|
162 | 176 | |
---|
| 177 | +&lvds1_in_vp2 { |
---|
| 178 | + status = "okay"; |
---|
| 179 | +}; |
---|
| 180 | + |
---|
| 181 | +&rgb_in_vp2 { |
---|
| 182 | + status = "disabled"; |
---|
| 183 | +}; |
---|
163 | 184 | |
---|
164 | 185 | &vcc3v3_lcd0_n { |
---|
165 | 186 | gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; |
---|
.. | .. |
---|
170 | 191 | gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; |
---|
171 | 192 | enable-active-high; |
---|
172 | 193 | }; |
---|
| 194 | + |
---|
| 195 | +&video_phy0 { |
---|
| 196 | + status = "okay"; |
---|
| 197 | +}; |
---|
| 198 | + |
---|
| 199 | +&video_phy1 { |
---|
| 200 | + status = "okay"; |
---|
| 201 | +}; |
---|