[U-Boot] [PATCH 17/20] ARM: dts: uniphier: prepare to use clock for serial

Masahiro Yamada yamada.masahiro at socionext.com
Fri Oct 13 10:22:06 UTC 2017


The serial driver is probed by SPL and/or board_init_f.  To get the
clock from the serial driver, the clock node must be marked as
u-boot,dm-pre-reloc.

Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---

 arch/arm/dts/uniphier-v7-u-boot.dtsi |  8 ++++++++
 arch/arm/dts/uniphier-v8-u-boot.dtsi | 13 +++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 arch/arm/dts/uniphier-v8-u-boot.dtsi

diff --git a/arch/arm/dts/uniphier-v7-u-boot.dtsi b/arch/arm/dts/uniphier-v7-u-boot.dtsi
index 4a0c9c0..e3854fa 100644
--- a/arch/arm/dts/uniphier-v7-u-boot.dtsi
+++ b/arch/arm/dts/uniphier-v7-u-boot.dtsi
@@ -30,6 +30,14 @@
 			};
 		};
 
+		perictrl at 59820000 {
+			u-boot,dm-pre-reloc;
+
+			clock {
+				u-boot,dm-pre-reloc;
+			};
+		};
+
 		soc-glue at 5f800000 {
 			u-boot,dm-pre-reloc;
 
diff --git a/arch/arm/dts/uniphier-v8-u-boot.dtsi b/arch/arm/dts/uniphier-v8-u-boot.dtsi
new file mode 100644
index 0000000..3d83e62
--- /dev/null
+++ b/arch/arm/dts/uniphier-v8-u-boot.dtsi
@@ -0,0 +1,13 @@
+/ {
+	soc at 0 {
+		u-boot,dm-pre-reloc;
+
+		perictrl at 59820000 {
+			u-boot,dm-pre-reloc;
+
+			clock {
+				u-boot,dm-pre-reloc;
+			};
+		};
+	};
+};
-- 
2.7.4



More information about the U-Boot mailing list