[17/20] ARM: dts: uniphier: prepare to use clock for serial

Message ID 1507890129-1543-18-git-send-email-yamada.masahiro@socionext.com
State New
Headers show
Series
  • ARM: uniphier: various refactoring for v2017.11-rc2
Related show

Commit Message

Masahiro Yamada Oct. 13, 2017, 10:22 a.m.
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@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

Patch

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@59820000 {
+			u-boot,dm-pre-reloc;
+
+			clock {
+				u-boot,dm-pre-reloc;
+			};
+		};
+
 		soc-glue@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@0 {
+		u-boot,dm-pre-reloc;
+
+		perictrl@59820000 {
+			u-boot,dm-pre-reloc;
+
+			clock {
+				u-boot,dm-pre-reloc;
+			};
+		};
+	};
+};