From 10ebd8556b7990499c896a550e3d416b444211e6 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 02:23:07 +0000
Subject: [PATCH] add led

---
 kernel/arch/arm64/boot/dts/rockchip/rk3399-evb-ind-lpddr4-android-avb.dts |   86 +-----------------------------------------
 1 files changed, 3 insertions(+), 83 deletions(-)

diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3399-evb-ind-lpddr4-android-avb.dts b/kernel/arch/arm64/boot/dts/rockchip/rk3399-evb-ind-lpddr4-android-avb.dts
index e575789..34a9b66 100644
--- a/kernel/arch/arm64/boot/dts/rockchip/rk3399-evb-ind-lpddr4-android-avb.dts
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3399-evb-ind-lpddr4-android-avb.dts
@@ -12,7 +12,7 @@
 	model = "Rockchip RK3399 EVB IND LPDDR4 Board edp (Android)";
 	compatible = "rockchip,android", "rockchip,rk3399-evb-ind-lpddr4-android", "rockchip,rk3399";
 	chosen: chosen {
-		bootargs = "earlycon=uart8250,mmio32,0xff1a0000 console=ttyFIQ0 androidboot.baseband=N/A androidboot.veritymode=enforcing androidboot.hardware=rk30board androidboot.console=ttyFIQ0 init=/init initrd=0x62000001,0x00800000 coherent_pool=1m";
+		bootargs = "earlycon=uart8250,mmio32,0xff1a0000 console=ttyFIQ0 init=/init initrd=0x62000001,0x00800000 coherent_pool=1m";
 	};
 
 	iram: sram@ff8d0000 {
@@ -31,13 +31,6 @@
 		vin-supply = <&vcc5v0_sys>;
 	};
 
-	ext_cam_clk: external-camera-clock {
-		compatible = "fixed-clock";
-		clock-frequency = <27000000>;
-		clock-output-names = "CLK_CAMERA_27MHZ";
-		#clock-cells = <0>;
-	};
-
 	panel: panel {
 		compatible = "simple-panel";
 		backlight = <&backlight>;
@@ -46,6 +39,8 @@
 		prepare-delay-ms = <20>;
 		reset-delay-ms = <20>;
 		enable-delay-ms = <20>;
+		width-mm = <120>;
+		height-mm = <160>;
 
 		display-timings {
 			native-mode = <&timing0>;
@@ -147,29 +142,6 @@
 		rockchip,camera-module-facing = "back";
 	};
 
-	gc8034: gc8034@37 {
-		compatible = "galaxycore,gc8034";
-		status = "okay";
-		reg = <0x37>;
-		clocks = <&cru SCLK_CIF_OUT>;
-		clock-names = "xvclk";
-		pinctrl-names = "rockchip,camera_default";
-		pinctrl-0 = <&cif_clkout>;
-		reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
-		pwdn-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
-		rockchip,camera-module-index = <0>;
-		rockchip,camera-module-facing = "back";
-		rockchip,camera-module-name = "LH-RK-8034-v1.0";
-		rockchip,camera-module-lens-name = "CK8401";
-		lens-focus = <&vm149c>;
-		port {
-			gc8034_out: endpoint {
-				remote-endpoint = <&mipi_in_gc8034>;
-				data-lanes = <1 2 3 4>;
-			};
-		};
-	};
-
 	gc2145: gc2145@3c{
 		status = "okay";
 		compatible = "galaxycore,gc2145";
@@ -251,35 +223,6 @@
 			};
 		};
 	};
-
-	/delete-node/ tc358749x@0f;
-
-	tc35874x: tc35874x@0f {
-		status = "disabled";
-		reg = <0x0f>;
-		compatible = "toshiba,tc358749";
-		clocks = <&ext_cam_clk>;
-		clock-names = "refclk";
-		reset-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
-		/* interrupt-parent = <&gpio2>; */
-		/* interrupts = <12 IRQ_TYPE_LEVEL_HIGH>; */
-		pinctrl-names = "default";
-		pinctrl-0 = <&tc35874x_gpios>;
-		rockchip,camera-module-index = <0>;
-		rockchip,camera-module-facing = "back";
-		rockchip,camera-module-name = "TC358749XBG";
-		rockchip,camera-module-lens-name = "NC";
-
-		port {
-			hdmiin_out0: endpoint {
-				remote-endpoint = <&hdmi_to_mipi_in>;
-				data-lanes = <1 2 3 4>;
-				clock-noncontinuous;
-				link-frequencies =
-					/bits/ 64 <297000000>;
-			};
-		};
-	};
 };
 
 &i2s2 {
@@ -312,11 +255,6 @@
 				remote-endpoint = <&ucam_out0>;
 				data-lanes = <1 2>;
 			};
-			mipi_in_gc8034: endpoint@0 {
-				reg = <0>;
-				remote-endpoint = <&gc8034_out>;
-				data-lanes = <1 2 3 4>;
-			};
 		};
 
 		port@1 {
@@ -344,11 +282,6 @@
 			#address-cells = <1>;
 			#size-cells = <0>;
 
-			hdmi_to_mipi_in: endpoint@0 {
-				reg = <0>;
-				remote-endpoint = <&hdmiin_out0>;
-				data-lanes = <1 2 3 4>;
-			};
 			mipi_in_ucam1: endpoint@1 {
 				reg = <1>;
 				remote-endpoint = <&ucam_out1>;
@@ -449,19 +382,6 @@
 };
 
 &pinctrl {
-	hdmiin {
-		tc35874x_gpios: tc35874x_gpios {
-			rockchip,pins =
-				/* PWREN_3.3 */
-				<0 RK_PB5 RK_FUNC_GPIO &pcfg_output_high>,
-				/* HDMIIN_RST */
-				<0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>,
-				/* HDMIIN_STBY */
-				<3 RK_PD1 RK_FUNC_GPIO &pcfg_output_high>,
-				/* HDMIIN_INT */
-				<4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
-		};
-	};
 	lcd-panel {
 		lcd_panel_reset: lcd-panel-reset {
 			rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;

--
Gitblit v1.6.2