From 164d1ae5b0e09df8ef4a240d09335e57ab28fe0c Mon Sep 17 00:00:00 2001
From: Camelia Groza <camelia.groza@nxp.com>
Date: Fri, 16 Jun 2023 16:18:33 +0300
Subject: [PATCH] arch: arm: dts: ls1043a: tag serial nodes with bootph-all

Make sure the serial driver is initialized before relocation by tagging
the serial nodes with "bootph-all".

In order to keep the serial nodes in sync with their representation in
the Linux dts, add these u-boot specific properties to *-u-boot.dtsi
files.

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm/dts/fsl-ls1043a-rdb-u-boot.dtsi |  5 +++++
 arch/arm/dts/fsl-ls1043a-u-boot.dtsi     | 19 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 arch/arm/dts/fsl-ls1043a-rdb-u-boot.dtsi
 create mode 100644 arch/arm/dts/fsl-ls1043a-u-boot.dtsi

diff --git a/arch/arm/dts/fsl-ls1043a-rdb-u-boot.dtsi b/arch/arm/dts/fsl-ls1043a-rdb-u-boot.dtsi
new file mode 100644
index 0000000000..ef31c79fa0
--- /dev/null
+++ b/arch/arm/dts/fsl-ls1043a-rdb-u-boot.dtsi
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0+
+/* Copyright 2023 NXP */
+
+#include "fsl-ls1043a-u-boot.dtsi"
+
diff --git a/arch/arm/dts/fsl-ls1043a-u-boot.dtsi b/arch/arm/dts/fsl-ls1043a-u-boot.dtsi
new file mode 100644
index 0000000000..65a870511c
--- /dev/null
+++ b/arch/arm/dts/fsl-ls1043a-u-boot.dtsi
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
+/* Copyright 2023 NXP */
+
+&duart0 {
+	bootph-all;
+};
+
+&duart1 {
+	bootph-all;
+};
+
+&duart2 {
+	bootph-all;
+};
+
+&duart3 {
+	bootph-all;
+};
+
-- 
2.39.5