From 2f7c68cb55ecb7331f2381deb497c27155f32faf Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 03 Jan 2024 09:43:39 +0000
Subject: [PATCH] update kernel to 5.10.198

---
 kernel/arch/arm64/boot/dts/rockchip/rk3567-evb2-lp4x-v10-one-vp-two-single-channel-lvds.dts |   91 ++++++++++++++++++++++-----------------------
 1 files changed, 44 insertions(+), 47 deletions(-)

diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3567-evb2-lp4x-v10-dual-lvds.dts b/kernel/arch/arm64/boot/dts/rockchip/rk3567-evb2-lp4x-v10-one-vp-two-single-channel-lvds.dts
similarity index 87%
rename from kernel/arch/arm64/boot/dts/rockchip/rk3567-evb2-lp4x-v10-dual-lvds.dts
rename to kernel/arch/arm64/boot/dts/rockchip/rk3567-evb2-lp4x-v10-one-vp-two-single-channel-lvds.dts
index d50ccd3..30f9109 100644
--- a/kernel/arch/arm64/boot/dts/rockchip/rk3567-evb2-lp4x-v10-dual-lvds.dts
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3567-evb2-lp4x-v10-one-vp-two-single-channel-lvds.dts
@@ -13,9 +13,10 @@
 #include "rk3568-android.dtsi"
 
 / {
-	model = "Rockchip RK3567 EVB2 LP4X V10 Board";
-	compatible = "rockchip,rk3567-evb2-lp4x-v10", "rockchip,rk3567";
+	model = "Rockchip RK3567 EVB2 LP4X V10 Board with one vp two single channel lvds";
+	compatible = "rockchip,rk3567-evb2-lp4x-v10-one-vp-two-single-channel-lvds", "rockchip,rk3567";
 
+	/* panel: claa070wp03xg */
 	panel {
 		compatible = "simple-panel";
 		backlight = <&backlight>;
@@ -33,14 +34,14 @@
 
 			timing0: timing0 {
 				clock-frequency = <134000000>;
-				hactive = <1600>;
+				hactive = <1600>; /* each panel show 1600 / 2 = 800 pxiel */
 				vactive = <1280>;
 				hback-porch = <60>;
 				hfront-porch = <60>;
 				vback-porch = <4>;
 				vfront-porch = <2>;
 				hsync-len = <8>;
-				vsync-len = <2>;
+				vsync-len = <8>;
 				hsync-active = <0>;
 				vsync-active = <0>;
 				de-active = <0>;
@@ -74,15 +75,39 @@
 	};
 };
 
-&backlight1 {
-	status = "okay";
-};
-
 &backlight {
 	status = "okay";
 };
 
-&lvds {
+&backlight1 {
+	status = "okay";
+};
+
+&dsi0 {
+	status = "disabled";
+};
+
+&dsi0_in_vp0 {
+	status = "disabled";
+};
+
+&dsi0_in_vp1 {
+	status = "disabled";
+};
+
+&dsi1_in_vp1 {
+	status = "disabled";
+};
+
+&edp_in_vp1 {
+	status = "disabled";
+};
+
+&hdmi_in_vp1 {
+	status = "okay";
+};
+
+&lvds0 {
 	status = "okay";
 	dual-channel;
 
@@ -109,57 +134,21 @@
 	};
 };
 
-&lvds_in_vp1 {
+&lvds0_in_vp1 {
 	status = "okay";
 };
 
 &lvds1_in_vp1 {
-	status = "disabled";
+	status = "okay";
 };
 
 &lvds1_in_vp2 {
-	status = "okay";
-};
-
-/* enable hdmi */
-&hdmi_in_vp1 {
-	status = "okay";
-};
-
-/* enable video phy */
-&video_phy0 {
-	status = "okay";
-};
-
-&video_phy1 {
-	status = "okay";
-};
-
-/* disable other encoder output */
-&dsi0 {
-	status = "disabled";
-};
-
-&dsi0_in_vp0 {
-	status = "disabled";
-};
-
-&dsi0_in_vp1 {
-	status = "disabled";
-};
-
-&dsi1_in_vp1 {
-	status = "disabled";
-};
-
-&edp_in_vp1 {
 	status = "disabled";
 };
 
 &rgb_in_vp2 {
 	status = "disabled";
 };
-
 
 &vcc3v3_lcd0_n {
 	gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
@@ -170,3 +159,11 @@
 	gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
 	enable-active-high;
 };
+
+&video_phy0 {
+	status = "okay";
+};
+
+&video_phy1 {
+	status = "okay";
+};

--
Gitblit v1.6.2