From 0e5790ecce7c991f3b8e0efb2900e958e0e7baba Mon Sep 17 00:00:00 2001
From: lin <lin@kickpi.com>
Date: Tue, 15 Apr 2025 03:52:51 +0000
Subject: [PATCH] feat(uart): add uart7 support

---
 longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts |   24 ++++++++++++++----------
 longan/brandy/arisc/ar100s/system/daemon/daemon.c         |    2 +-
 2 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/longan/brandy/arisc/ar100s/system/daemon/daemon.c b/longan/brandy/arisc/ar100s/system/daemon/daemon.c
index 8996d5c..043d765 100644
--- a/longan/brandy/arisc/ar100s/system/daemon/daemon.c
+++ b/longan/brandy/arisc/ar100s/system/daemon/daemon.c
@@ -94,7 +94,7 @@
 
 	/* daemon & message & user defined task loop process */
 	LOG("daemon service setup...\n");
-	while (1) {
+	while (0) {
 		/* message loop process */
 		message_process_loop();
 
diff --git a/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts b/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
index 0c402bd..a57df67 100755
--- a/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
+++ b/longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
@@ -1315,6 +1315,10 @@
 		uart4: uart@05001000 {
 			status = "okay";
 		};
+
+		uart7: uart@07080000 {
+			status = "okay";
+		};
 	};
 	gpu: gpu@0x01800000 {
 			gpu_idle = <1>;/*ic version ctrl*/
@@ -1390,17 +1394,17 @@
 				linux,default_trigger = "default-on";
 			};
 
-			PL2 {
-				label = "PL2";
-				gpios = <&r_pio PL 2 1 0 1 0>;
-				linux,default_trigger = "default-on";
-			};
+			// PL2 {
+			// 	label = "PL2";
+			// 	gpios = <&r_pio PL 2 1 0 1 0>;
+			// 	linux,default_trigger = "default-on";
+			// };
 
-			PL3 {
-				label = "PL3";
-				gpios = <&r_pio PL 3 1 0 1 0>;
-				linux,default_trigger = "default-on";
-			};
+			// PL3 {
+			// 	label = "PL3";
+			// 	gpios = <&r_pio PL 3 1 0 1 0>;
+			// 	linux,default_trigger = "default-on";
+			// };
 
 			PL4 {
 				label = "PL4";

--
Gitblit v1.6.2