From 9999e48639b3cecb08ffb37358bcba3b48161b29 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 08:50:17 +0000
Subject: [PATCH] add ax88772_rst

---
 kernel/arch/arm/boot/dts/rk3288-evb-act8846.dts |  117 ++++++++--------------------------------------------------
 1 files changed, 17 insertions(+), 100 deletions(-)

diff --git a/kernel/arch/arm/boot/dts/rk3288-evb-act8846.dts b/kernel/arch/arm/boot/dts/rk3288-evb-act8846.dts
index 7049300..1a9e812 100644
--- a/kernel/arch/arm/boot/dts/rk3288-evb-act8846.dts
+++ b/kernel/arch/arm/boot/dts/rk3288-evb-act8846.dts
@@ -4,40 +4,23 @@
 #include "rk3288-evb.dtsi"
 
 / {
+	model = "Rockchip RK3288 EVB ACT8846";
 	compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288";
 
-	panel {
-		compatible = "simple-panel";
-		backlight = <&backlight>;
-		power-supply = <&vcc_lcd>;
-		enable-gpios = <&gpio7 RK_PA4 GPIO_ACTIVE_HIGH>;
-		prepare-delay-ms = <120>;
+	sdio_pwrseq: sdio-pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		clocks = <&hym8563>;
+		clock-names = "ext_clock";
+		pinctrl-names = "default";
+		pinctrl-0 = <&wifi_enable_h>;
 
-		display-timings {
-			native-mode = <&timing0>;
-
-			timing0: timing0 {
-				clock-frequency = <200000000>;
-				hactive = <1536>;
-				vactive = <2048>;
-				hfront-porch = <12>;
-				hsync-len = <16>;
-				hback-porch = <48>;
-				vfront-porch = <8>;
-				vsync-len = <4>;
-				vback-porch = <8>;
-				hsync-active = <0>;
-				vsync-active = <0>;
-				de-active = <0>;
-				pixelclk-active = <0>;
-			};
-		};
-
-		port {
-			panel_in_edp: endpoint {
-				remote-endpoint = <&edp_out_panel>;
-			};
-		};
+		/*
+		 * On the module itself this is one of these (depending
+		 * on the actual card populated):
+		 * - SDIO_RESET_L_WL_REG_ON
+		 * - PDN (power down when low)
+		 */
+		reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
 	};
 
 	vcc_lcd: vcc-lcd {
@@ -59,13 +42,6 @@
 		regulator-name = "vcc_wl";
 		vin-supply = <&vcc_18>;
 	};
-};
-
-&backlight {
-	enable-gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
-	pinctrl-names = "default";
-	pinctrl-0 = <&bl_en>;
-	pwms = <&pwm0 0 1000000 PWM_POLARITY_INVERTED>;
 };
 
 &i2c0 {
@@ -94,21 +70,7 @@
 		vin-supply = <&vcc_sys>;
 	};
 
-	hym8563@51 {
-		compatible = "haoyu,hym8563";
-		reg = <0x51>;
-
-		interrupt-parent = <&gpio0>;
-		interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>;
-
-		pinctrl-names = "default";
-		pinctrl-0 = <&pmic_int>;
-
-		#clock-cells = <0>;
-		clock-output-names = "xin32k";
-	};
-
-	hym8563: hym8563@51 {
+	hym8563: rtc@51 {
 		compatible = "haoyu,hym8563";
 		reg = <0x51>;
 
@@ -221,58 +183,13 @@
 			};
 		};
 	};
-
-	sdio_pwrseq: sdio-pwrseq {
-		compatible = "mmc-pwrseq-simple";
-		clocks = <&hym8563>;
-		clock-names = "ext_clock";
-		pinctrl-names = "default";
-		pinctrl-0 = <&wifi_enable_h>;
-
-		/*
-		 * On the module itself this is one of these (depending
-		 * on the actual card populated):
-		 * - SDIO_RESET_L_WL_REG_ON
-		 * - PDN (power down when low)
-		 */
-		reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
-	};
 };
 
-&edp {
-	force-hpd;
-	status = "okay";
-
-	ports {
-		port@1 {
-			reg = <1>;
-
-			edp_out_panel: endpoint {
-				remote-endpoint = <&panel_in_edp>;
-			};
-		};
-	};
-};
-
-&edp_in_vopb {
-	status = "disabled";
-};
-
-&edp_in_vopl {
-	status = "okay";
-};
-
-&pwm0 {
-	status = "okay";
+&panel {
+	power-supply = <&vcc_lcd>;
 };
 
 &pinctrl {
-	backlight {
-		bl_en: bl-en {
-			rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
-		};
-	};
-
 	lcd {
 		lcd_en: lcd-en  {
 			rockchip,pins = <7 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;

--
Gitblit v1.6.2