hc
2023-11-20 0d8657dd3056063fb115946b10157477b5c70451
enable lvds 1280x800
1 files modified
41 ■■■■■ changed files
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi 41 ●●●●● patch | view | raw | blame | history
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -191,24 +191,18 @@
191191 panel: panel {
192192 compatible = "simple-panel";
193193 backlight = <&backlight>;
194
- power-supply = <&vcc3v3_lcd0_n>;
195
- enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4
196
- reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1
197
- edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
194
+ power-supply = <&vcc3v3_lcd1_n>;
195
+ enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4
196
+ edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_PWBLK_H_GPIO0_B7
198197 edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
199198 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
200199 bpc = <8>;
201200 prepare-delay-ms = <200>;
202201 enable-delay-ms = <20>;
203
- lvds-gpio0 = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; //7511_GPIO0-GPIO3_D2
204
- lvds-gpio1 = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>; //7511_GPIO1-GPIO3_D3
205
- lvds-gpio2 = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //7511_GPIO2-GPIO3_D4
206
- lvds-gpio3 = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; //7511_GPIO3-GPIO3_D5
207
- nodka-lvds = <15>;
208202
209203 display-timings {
210
- native-mode = <&timing0>;
211
- timing0: timing0 {
204
+ native-mode = <&timing>;
205
+ timing: timing {
212206 clock-frequency = <72500000>;
213207 hactive = <1280>;
214208 vactive = <800>;
....@@ -225,8 +219,8 @@
225219 };
226220 };
227221 ports {
228
- panel_in: endpoint {
229
- remote-endpoint = <&edp_out>;
222
+ panel_in_lvds: endpoint {
223
+ remote-endpoint = <&lvds_out>;
230224 };
231225 };
232226 };
....@@ -331,16 +325,29 @@
331325 &edp {
332326 //hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
333327 force-hpd;
328
+ status = "disabled";
329
+};
330
+
331
+&lvds {
334332 status = "okay";
335333 ports {
336334 port@1 {
337335 reg = <1>;
338
- edp_out: endpoint {
339
- remote-endpoint = <&panel_in>;
336
+ lvds_out: endpoint {
337
+ remote-endpoint = <&panel_in_lvds>;
340338 };
341339 };
342340
343341 };
342
+};
343
+
344
+&route_lvds{
345
+ status = "okay";
346
+ connect = <&vp2_out_lvds>;
347
+};
348
+
349
+&lvds_in_vp2 {
350
+ status = "okay";
344351 };
345352
346353 &edp_phy {
....@@ -516,7 +523,7 @@
516523 };
517524
518525 &video_phy0 {
519
- status = "disabled";
526
+ status = "okay";
520527 };
521528
522529 &video_phy1 {
....@@ -614,7 +621,7 @@
614621
615622
616623 &route_edp {
617
- status = "okay";
624
+ status = "disabled";
618625 connect = <&vp1_out_edp>;
619626 };
620627