[Pdbg] [PATCH 4/6] dts: Add device trees for cronus backend

Amitay Isaacs amitay at ozlabs.org
Wed Jul 3 19:13:52 AEST 2019


Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 Makefile.am      |  2 +-
 p8-cronus.dts.m4 | 45 +++++++++++++++++++++++++++++++++++++++++++++
 p9-cronus.dts.m4 | 43 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 89 insertions(+), 1 deletion(-)
 create mode 100644 p8-cronus.dts.m4
 create mode 100644 p9-cronus.dts.m4

diff --git a/Makefile.am b/Makefile.am
index 6d4ad23..c193052 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -68,7 +68,7 @@ if TARGET_PPC
 ARCH_FLAGS="-DTARGET_PPC=1"
 endif
 
-DT = fake.dts $(DT_ARM) $(DT_PPC)
+DT = fake.dts p8-cronus.dts p9-cronus.dts $(DT_ARM) $(DT_PPC)
 
 DT_sources = $(DT:.dts=.dtb.S)
 DT_headers = $(DT:.dts=.dt.h)
diff --git a/p8-cronus.dts.m4 b/p8-cronus.dts.m4
new file mode 100644
index 0000000..4b62b9a
--- /dev/null
+++ b/p8-cronus.dts.m4
@@ -0,0 +1,45 @@
+/dts-v1/;
+
+/ {
+       #address-cells = <0x1>;
+       #size-cells = <0x0>;
+
+       fsi0: kernelfsi at 0 {
+	       #address-cells = <0x2>;
+	       #size-cells = <0x1>;
+	       compatible = "ibm,cronus-fsi";
+	       reg = <0x0 0x0 0x0>;
+
+	       index = <0x0>;
+	       status = "mustexist";
+
+	       pib at 1000 {
+			#address-cells = <0x2>;
+			#size-cells = <0x1>;
+			reg = <0x0 0x1000 0x7>;
+			index = <0x0>;
+			compatible = "ibm,cronus-pib";
+			include(p8-pib.dts.m4)dnl
+	       };
+
+	       hmfsi at 100000 {
+		       #address-cells = <0x2>;
+		       #size-cells = <0x1>;
+		       compatible = "ibm,cronus-hmfsi";
+		       reg = <0x0 0x100000 0x8000>;
+		       port = <0x1>;
+		       index = <0x1>;
+
+		       pib at 1000 {
+				#address-cells = <0x2>;
+				#size-cells = <0x1>;
+				reg = <0x0 0x1000 0x7>;
+				compatible = "ibm,cronus-pib";
+				index = <0x1>;
+				include(p8-pib.dts.m4)dnl
+		       };
+
+	       };
+       };
+};
+
diff --git a/p9-cronus.dts.m4 b/p9-cronus.dts.m4
new file mode 100644
index 0000000..d30d10e
--- /dev/null
+++ b/p9-cronus.dts.m4
@@ -0,0 +1,43 @@
+/dts-v1/;
+
+/ {
+	#address-cells = <0x1>;
+	#size-cells = <0x0>;
+
+	fsi0: kernelfsi at 0 {
+		#address-cells = <0x2>;
+		#size-cells = <0x1>;
+		compatible = "ibm,cronus-fsi";
+		reg = <0x0 0x0 0x0>;
+
+		index = <0x0>;
+		status = "mustexist";
+
+		pib at 1000 {
+			#address-cells = <0x2>;
+			#size-cells = <0x1>;
+			reg = <0x0 0x1000 0x7>;
+			index = <0x0>;
+			compatible = "ibm,cronus-pib";
+			include(p9-pib.dts.m4)dnl
+		};
+
+		hmfsi at 100000 {
+			#address-cells = <0x2>;
+			#size-cells = <0x1>;
+			compatible = "ibm,cronus-hmfsi";
+			reg = <0x0 0x100000 0x8000>;
+			port = <0x1>;
+			index = <0x1>;
+
+			pib at 1000 {
+				#address-cells = <0x2>;
+				#size-cells = <0x1>;
+				 reg = <0x0 0x1000 0x7>;
+				 index = <0x1>;
+				 compatible = "ibm,cronus-pib";
+				 include(p9-pib.dts.m4)dnl
+			};
+		};
+	};
+};
-- 
2.21.0



More information about the Pdbg mailing list