From: Jonas Karlman <jonas@kwiboo.se>
Date: Tue, 30 Apr 2024 15:30:22 +0000 (+0000)
Subject: rockchip: rk3399-puma: Move uart0 bootph to board u-boot.dtsi
X-Git-Tag: v2025.01-rc5-pxa1908~481^2~45
X-Git-Url: http://git.dujemihanovic.xyz/img/static//%22brlog.php?a=commitdiff_plain;h=cc87730e404c7e65ecf19af89a8b80063494a296;p=u-boot.git

rockchip: rk3399-puma: Move uart0 bootph to board u-boot.dtsi

rk3399-puma is the only supported board that use uart0 for serial
console, other RK3399 boards typically use uart2 for serial console
and may use uart0 for bluetooth.

Move setting bootph prop to board u-boot.dtsi to only include the uart0
node in TPL/SPL control FDT for the rk3399-puma target.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
---

diff --git a/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi b/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi
index 2b3ea6da88..390cf24152 100644
--- a/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi
@@ -110,3 +110,7 @@
 &sdmmc_cmd {
 	bootph-all;
 };
+
+&uart0 {
+	bootph-all;
+};
diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi
index 496f25d9fb..9815dc53e8 100644
--- a/arch/arm/dts/rk3399-u-boot.dtsi
+++ b/arch/arm/dts/rk3399-u-boot.dtsi
@@ -134,10 +134,6 @@
 	bootph-all;
 };
 
-&uart0 {
-	bootph-all;
-};
-
 &uart2 {
 	bootph-all;
 };