From 25c72f09e887f85fcff4a3f978d294da97ab1420 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 13 Mar 2023 02:12:05 +0000
Subject: [PATCH] 修改默认LVDS为1280x800

---
 kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi |   40 +++++++++-------------------------------
 1 files changed, 9 insertions(+), 31 deletions(-)

diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
index 83cde4b..ea2fb31 100755
--- a/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi
@@ -273,6 +273,8 @@
 	vcc5v0_otg: vcc5v0-otg-regulator {
 		compatible = "regulator-fixed";
 		regulator-name = "vcc5v0_otg";
+		egulator-boot-on;
+		regulator-always-on;
 		regulator-min-microvolt = <5000000>;
 		regulator-max-microvolt = <5000000>;
 		enable-active-high;
@@ -289,7 +291,7 @@
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;
 		enable-active-high;
-		gpio = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
+		gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;  //VCC3_IO_EN_GPIO0_C4_3V3
 		vin-supply = <&vcc3v3_sys>;
 
 		regulator-state-mem {
@@ -1068,28 +1070,7 @@
 	status = "okay";
 };
 
-&hdmi {
-	status = "okay";
-	rockchip,phy-table =
-		<92812500  0x8009 0x0000 0x0270>,
-		<165000000 0x800b 0x0000 0x026d>,
-		<185625000 0x800b 0x0000 0x01ed>,
-		<297000000 0x800b 0x0000 0x01ad>,
-		<594000000 0x8029 0x0000 0x0088>,
-		<000000000 0x0000 0x0000 0x0000>;
-};
 
-&hdmi_in_vp0 {
-	status = "okay";
-};
-
-&hdmi_in_vp1 {
-	status = "disabled";
-};
-
-&hdmi_sound {
-	status = "okay";
-};
 
 &i2c0 {
 	status = "okay";
@@ -1689,10 +1670,7 @@
 	status = "okay";
 };
 
-&route_hdmi {
-	status = "okay";
-	connect = <&vp0_out_hdmi>;
-};
+
 
 &saradc {
 	status = "okay";
@@ -1789,15 +1767,15 @@
 };
 
 &usbhost_dwc3 {
-	phys = <&u2phy0_host>;
-	phy-names = "usb2-phy";
-	maximum-speed = "high-speed";
-	snps,dis_u2_susphy_quirk;
+//	phys = <&u2phy0_host>;
+//	phy-names = "usb2-phy";
+//	maximum-speed = "high-speed";
+//	snps,dis_u2_susphy_quirk;
 	status = "okay";
 };
 
 &combphy1_usq {
-	rockchip,dis-u3otg1-port;
+//	rockchip,dis-u3otg1-port;
 	status = "okay";
 };
 

--
Gitblit v1.6.2