hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/rockchip/rk3567-evb2-lp4x-v10-dual-lvds.dts
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,10 +13,16 @@
1313 #include "rk3568-android.dtsi"
1414
1515 / {
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";
1818
19
- panel {
19
+ /**
20
+ * VP1 -> LVDS0 -> Panel0
21
+ * VP2 -> LVDS1 -> Panel1
22
+ */
23
+
24
+ /* panel: claa070wp03xg */
25
+ panel-lvds0 {
2026 compatible = "simple-panel";
2127 backlight = <&backlight>;
2228 power-supply = <&vcc3v3_lcd0_n>;
....@@ -30,17 +36,16 @@
3036
3137 display-timings {
3238 native-mode = <&timing0>;
33
-
3439 timing0: timing0 {
35
- clock-frequency = <134000000>;
36
- hactive = <1600>;
40
+ clock-frequency = <67000000>;
41
+ hactive = <800>;
3742 vactive = <1280>;
3843 hback-porch = <60>;
3944 hfront-porch = <60>;
4045 vback-porch = <4>;
4146 vfront-porch = <2>;
4247 hsync-len = <8>;
43
- vsync-len = <2>;
48
+ vsync-len = <8>;
4449 hsync-active = <0>;
4550 vsync-active = <0>;
4651 de-active = <0>;
....@@ -51,21 +56,52 @@
5156 ports {
5257 #address-cells = <1>;
5358 #size-cells = <0>;
54
-
55
- /**
56
- * Panel <----> LVDS0
57
- * Panel <----> LVDS1
58
- */
5959 port@0 {
6060 reg = <0>;
61
- dual-lvds-left-pixels;
6261 panel_in_lvds0: endpoint {
6362 remote-endpoint = <&lvds0_out_panel>;
6463 };
6564 };
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>;
69105 panel_in_lvds1: endpoint {
70106 remote-endpoint = <&lvds1_out_panel>;
71107 };
....@@ -74,68 +110,14 @@
74110 };
75111 };
76112
77
-&backlight1 {
78
- status = "okay";
79
-};
80
-
81113 &backlight {
82114 status = "okay";
83115 };
84116
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 {
113118 status = "okay";
114119 };
115120
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 */
139121 &dsi0 {
140122 status = "disabled";
141123 };
....@@ -156,10 +138,49 @@
156138 status = "disabled";
157139 };
158140
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 {
160174 status = "disabled";
161175 };
162176
177
+&lvds1_in_vp2 {
178
+ status = "okay";
179
+};
180
+
181
+&rgb_in_vp2 {
182
+ status = "disabled";
183
+};
163184
164185 &vcc3v3_lcd0_n {
165186 gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
....@@ -170,3 +191,11 @@
170191 gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
171192 enable-active-high;
172193 };
194
+
195
+&video_phy0 {
196
+ status = "okay";
197
+};
198
+
199
+&video_phy1 {
200
+ status = "okay";
201
+};