[Skiboot] [PATCH 4/6] devicetree: Move power9-phb4.dts

Reza Arbab arbab at linux.ibm.com
Thu Feb 14 08:42:36 AEDT 2019


Clean up the formatting of power9-phb4.dts and move it to
external/devicetree/p9.dts. This sets us up to include it as the basis
for other trees.

Signed-off-by: Reza Arbab <arbab at linux.ibm.com>
---
 doc/device-tree/examples/power9-phb4.dts | 235 -------------------------------
 external/devicetree/p9.dts               | 221 +++++++++++++++++++++++++++++
 2 files changed, 221 insertions(+), 235 deletions(-)
 delete mode 100644 doc/device-tree/examples/power9-phb4.dts
 create mode 100644 external/devicetree/p9.dts

diff --git a/doc/device-tree/examples/power9-phb4.dts b/doc/device-tree/examples/power9-phb4.dts
deleted file mode 100644
index a6acd533970c..000000000000
--- a/doc/device-tree/examples/power9-phb4.dts
+++ /dev/null
@@ -1,235 +0,0 @@
-/dts-v1/;
-
-/ {
-	compatible = "ibm,powernv";
-	model = "BML";
-	#size-cells = <0x2>;
-	#address-cells = <0x2>;
-
-	chosen {
-		linux,pci-assign-all-buses = <0x1>;
-		linux,pci-probe-only = <0x0>;
-		linux,platform = <0x100>;
-		ibm,architecture-vec-5 = <0x0 0x800000>;
-		linux,initrd-start = <0x0 0x28000000>;
-		linux,initrd-end = <0x0 0x30000000>;
-	};
-
-	memory at 0 {
-		reg = <0x0 0x0 0x0 0x80000000>;
-		ibm,chip-id = <0x0>;
-		device_type = "memory";
-	};
-
-	cpus {
-		#size-cells = <0x0>;
-		#address-cells = <0x1>;
-
-		PowerPC,POWER9 at 0 {
-			device_type = "cpu";
-			status = "okay";
-			ibm,chip-id = <0x0>;
-			ibm,pir = <0x0>;
-			timebase-frequency = <0x1c4fecc0>;
-			clock-frequency = <0xe27f6600>;
-			ibm,segment-page-sizes = <0xc 0x0 0x1 0xc 0x0 0x10 0x110 0x1 0x10 0x1 0x14 0x111 0x1 0x14 0x2 0x18 0x100 0x1 0x18 0x0 0x22 0x120 0x1 0x22 0x3>;
-			ibm,processor-segment-sizes = <0x1c 0xffffffff 0xffffffff 0xffffffff>;
-			ibm,pa-features = <0x600f63f 0xc70080c0>;
-			i-cache-size = <0x8000>;
-			d-cache-size = <0x8000>;
-			i-cache-line-size = <0x80>;
-			d-cache-line-size = <0x80>;
-			ibm,slb-size = <0x20>;
-			ibm,vmx = <0x2>;
-			reg = <0x0>;
-//			ibm,ppc-interrupt-server#s = <0x0 0x01>;
-			ibm,ppc-interrupt-server#s = <0x0>;
-		};
-	};
-
-	xscom at 603fc00000000 {
-		compatible = "ibm,xscom", "ibm,power9-xscom";
-		ibm,chip-id = <0x0>;
-		#size-cells = <0x1>;
-		#address-cells = <0x1>;
-		reg = <0x603fc 0x0 0x8 0x0>;
-
-
-		/* PE#0 supports only one stack */
-		pbcq at 4010c00 {
-			ibm,pec-index = <0x0>;
-			reg = <0x4010c00 0x100 0xd010800 0x200>;
-			compatible = "ibm,power9-pbcq";
-
-			/* child address is stack number */
-			#address-cells = <1>;
-			#size-cells = <0>;
-			stack at 0 {
-			      /* Stack number */
-			      reg = <0>;
-			      /* Chip-scope PHB index */
-			      ibm,phb-index = <0x0>;
-			      compatible = "ibm,power9-phb-stack";
-			      /* ibm,lane-eq = < ????? >; */
-			      status = "okay";
-			};
-		};
-		/* PE#1 supports two stacks */
-
-		pbcq at 4011000 {
-			ibm,pec-index = <0x1>;
-			reg = <0x4011000 0x100 0xe010800 0x200>;
-			compatible = "ibm,power9-pbcq";
-
-			/* child address is stack number */
-			#address-cells = <1>;
-			#size-cells = <0>;
-			stack at 0 {
-			      /* Stack number */
-			      reg = <0>;
-			      /* Chip-scope PHB index */
-			      ibm,phb-index = <0x1>;
-			      compatible = "ibm,power9-phb-stack";
-			      /* ibm,lane-eq = < ????? >; */
-			      status = "okay";
-			};
-			stack at 1 {
-			      /* Stack number */
-			      reg = <1>;
-			      /* Chip-scope PHB index */
-			      ibm,phb-index = <0x2>;
-			      compatible = "ibm,power9-phb-stack";
-			      /* ibm,lane-eq = < ????? >; */
-			      status = "okay";
-			};
-		};
-
-		/* PE#2 supports three stacks */
-		pbcq at 4011400 {
-			ibm,pec-index = <0x2>;
-			reg = <0x4011400 0x100 0xf010800 0x200>;
-			compatible = "ibm,power9-pbcq";
-
-			/* child address is stack number */
-			#address-cells = <1>;
-			#size-cells = <0>;
-			stack at 0 {
-			      /* Stack number */
-			      reg = <0>;
-			      /* Chip-scope PHB index */
-			      ibm,phb-index = <0x3>;
-			      compatible = "ibm,power9-phb-stack";
-			      /* ibm,lane-eq = < ????? >; */
-			      status = "disabled";
-			};
-			stack at 1 {
-			      /* Stack number */
-			      reg = <1>;
-			      /* Chip-scope PHB index */
-			      ibm,phb-index = <0x4>;
-			      compatible = "ibm,power9-phb-stack";
-			      /* ibm,lane-eq = < ????? >; */
-			      status = "disabled";
-			};
-			stack at 2 {
-			      /* Stack number */
-			      reg = <2>;
-			      /* Chip-scope PHB index */
-			      ibm,phb-index = <0x5>;
-			      compatible = "ibm,power9-phb-stack";
-			      /* ibm,lane-eq = < ????? >; */
-			      status = "disabled";
-			};
-		};
-
-		chiptod at 40000 {
-			primary;
-			reg = <0x40000 0x34>;
-			compatible = "ibm,power-chiptod", "ibm,power9-chiptod";
-		};
-
-		xive at 5013400 {
-			reg = <0x5013000 0x300>;
-			compatible = "ibm,power9-xive-x";
-		};
-
-		PSI_X0: psihb at 5012900 {
-			reg = <0x5012900 0x100>;
-			compatible = "ibm,power9-psihb-x", "ibm,psihb-x";
-
-		        /* This acts as an interrupt remapper for the 16
-			 * interrupts coming into the PSI HB.
-			 * OPAL will generate the corresponding interrupt-map
-			 * property with the final XIVE numbers
-			 */
-			 #interrupt-cells = <1>;
-			 #address-cells = <0>;
-			 #interrupt-map-mask = < 0xff >;
-		};
-
-		nx at 2010000 {
-			reg = <0x2010000 0x4000>;
-			compatible = "ibm,power9-nx";
-		};
-	};
-
-	lpcm-opb at 6030000000000 {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		compatible = "ibm,power9-lpcm-opb", "simple-bus";
-		ibm,chip-id = <0x0>;
-		ranges = < 0x00000000 0x60300 0x00000000 0x80000000
-		           0x80000000 0x60300 0x80000000 0x80000000 >;
-		opb-master at c0010000 {
-		    compatible = "ibm,power9-lpcm-opb-master";
-		    reg = < 0xc0010000 0x60 >;
-		};
-		opb-arbiter at c0011000 {
-		    compatible = "ibm,power9-lpcm-opb-arbiter";
-		    reg = < 0xc0011000 0x8 >;
-		};
-		lpc-controller at c0012000 {
-		    compatible = "ibm,power9-lpc-controller";
-		    reg = < 0xc0012000 0x100 >;
-		};
-		lpc at f0000000 {
-		    compatible = "ibm,power9-lpc";
-		    #address-cells = <2>;
-		    #size-cells = <1>;
-		    ranges = < 3 0 0xf0000000 0x10000000 /* FW space */
-		               0 0 0xe0000000 0x10000000 /* MEM space */
-		               1 0 0xd0010000 0x00010000 /* IO space */ >;
-
-		    /* We currently only support level interrupts on the LPC,
-		     * we use 1 cell.
-		     */
-	            #interrupt-cells = <1>;
-
-		    /* Route the LPC interrupts to one of the 4 supported
-		     * PSI interrupt inputs [7...10].
-		     */
-		    interrupt-map = < 0 0  4 &PSI_X0 8
-				      0 0 10 &PSI_X0 9>;
-		    interrupt-map-mask = < 0 0 0xff >;
-
-		    /*
-		     * Devices on the LPC bus go here
-		     */
-
-		    serial at i3f8 {
-		        compatible = "ns16550";
-		        reg = < 1 0x3f8 0x10 >;
-			current-speed = < 115200 >;
-			clock-frequency = < 1843200 >;
-			interrupts = <4>;
-		    };
-
-		    ipmi at ie4 {
-			compatible = "ipmi-bt";
-			reg = < 1 0xe4 0x3 >;
-			interrupts = <10>;
-		    };
-		};
-	};
-
-};
diff --git a/external/devicetree/p9.dts b/external/devicetree/p9.dts
new file mode 100644
index 000000000000..905e33d57aae
--- /dev/null
+++ b/external/devicetree/p9.dts
@@ -0,0 +1,221 @@
+/dts-v1/;
+
+/ {
+	compatible = "ibm,powernv";
+	model = "BML";
+	#size-cells = <0x2>;
+	#address-cells = <0x2>;
+
+	chosen {
+		linux,pci-assign-all-buses = <0x1>;
+		linux,pci-probe-only = <0x0>;
+		linux,platform = <0x100>;
+		ibm,architecture-vec-5 = <0x0 0x800000>;
+		linux,initrd-start = <0x0 0x28000000>;
+		linux,initrd-end = <0x0 0x30000000>;
+	};
+
+	memory at 0 {
+		reg = <0x0 0x0 0x0 0x80000000>;
+		ibm,chip-id = <0x0>;
+		device_type = "memory";
+	};
+
+	cpus {
+		#size-cells = <0x0>;
+		#address-cells = <0x1>;
+
+		PowerPC,POWER9 at 0 {
+			device_type = "cpu";
+			status = "okay";
+			ibm,chip-id = <0x0>;
+			ibm,pir = <0x0>;
+			timebase-frequency = <0x1c4fecc0>;
+			clock-frequency = <0xe27f6600>;
+			ibm,segment-page-sizes = <0xc 0x0 0x1 0xc 0x0 0x10 0x110 0x1 0x10 0x1 0x14 0x111 0x1 0x14 0x2 0x18 0x100 0x1 0x18 0x0 0x22 0x120 0x1 0x22 0x3>;
+			ibm,processor-segment-sizes = <0x1c 0xffffffff 0xffffffff 0xffffffff>;
+			ibm,pa-features = <0x600f63f 0xc70080c0>;
+			i-cache-size = <0x8000>;
+			d-cache-size = <0x8000>;
+			i-cache-line-size = <0x80>;
+			d-cache-line-size = <0x80>;
+			ibm,slb-size = <0x20>;
+			ibm,vmx = <0x2>;
+			reg = <0x0>;
+			ibm,ppc-interrupt-server#s = <0x0>;
+		};
+	};
+
+	xscom at 603fc00000000 {
+		compatible = "ibm,xscom", "ibm,power9-xscom";
+		ibm,chip-id = <0x0>;
+		#size-cells = <0x1>;
+		#address-cells = <0x1>;
+		reg = <0x603fc 0x0 0x8 0x0>;
+
+		/* PE#0 supports only one stack */
+		pbcq at 4010c00 {
+			ibm,pec-index = <0x0>;
+			reg = <0x4010c00 0x100 0xd010800 0x200>;
+			compatible = "ibm,power9-pbcq";
+			#address-cells = <0x1>;
+			#size-cells = <0x0>;
+
+			stack at 0 {
+				/* Stack number */
+				reg = <0x0>;
+				/* Chip-scope PHB index */
+				ibm,phb-index = <0x0>;
+				compatible = "ibm,power9-phb-stack";
+				status = "okay";
+			};
+		};
+
+		/* PE#1 supports two stacks */
+		pbcq at 4011000 {
+			ibm,pec-index = <0x1>;
+			reg = <0x4011000 0x100 0xe010800 0x200>;
+			compatible = "ibm,power9-pbcq";
+			#address-cells = <0x1>;
+			#size-cells = <0x0>;
+
+			stack at 0 {
+				reg = <0x0>;
+				ibm,phb-index = <0x1>;
+				compatible = "ibm,power9-phb-stack";
+				status = "okay";
+			};
+
+			stack at 1 {
+				reg = <0x1>;
+				ibm,phb-index = <0x2>;
+				compatible = "ibm,power9-phb-stack";
+				status = "okay";
+			};
+		};
+
+		/* PE#2 supports three stacks */
+		pbcq at 4011400 {
+			ibm,pec-index = <0x2>;
+			reg = <0x4011400 0x100 0xf010800 0x200>;
+			compatible = "ibm,power9-pbcq";
+			#address-cells = <0x1>;
+			#size-cells = <0x0>;
+
+			stack at 0 {
+				reg = <0x0>;
+				ibm,phb-index = <0x3>;
+				compatible = "ibm,power9-phb-stack";
+				status = "disabled";
+			};
+
+			stack at 1 {
+				reg = <0x1>;
+				ibm,phb-index = <0x4>;
+				compatible = "ibm,power9-phb-stack";
+				status = "disabled";
+			};
+
+			stack at 2 {
+				reg = <0x2>;
+				ibm,phb-index = <0x5>;
+				compatible = "ibm,power9-phb-stack";
+				status = "disabled";
+			};
+		};
+
+		chiptod at 40000 {
+			primary;
+			reg = <0x40000 0x34>;
+			compatible = "ibm,power-chiptod", "ibm,power9-chiptod";
+		};
+
+		xive at 5013400 {
+			reg = <0x5013000 0x300>;
+			compatible = "ibm,power9-xive-x";
+		};
+
+		PSI_X0: psihb at 5012900 {
+			reg = <0x5012900 0x100>;
+			compatible = "ibm,power9-psihb-x", "ibm,psihb-x";
+
+			/*
+			 * This acts as an interrupt remapper for the 16
+			 * interrupts coming into the PSI HB.
+			 * OPAL will generate the corresponding interrupt-map
+			 * property with the final XIVE numbers
+			 */
+			#interrupt-cells = <0x1>;
+			#address-cells = <0x0>;
+			#interrupt-map-mask = <0xff>;
+		};
+
+		nx at 2010000 {
+			reg = <0x2010000 0x4000>;
+			compatible = "ibm,power9-nx";
+		};
+	};
+
+	lpcm-opb at 6030000000000 {
+		#address-cells = <0x1>;
+		#size-cells = <0x1>;
+		compatible = "ibm,power9-lpcm-opb", "simple-bus";
+		ibm,chip-id = <0x0>;
+		ranges = <0x00000000 0x60300 0x00000000 0x80000000
+			  0x80000000 0x60300 0x80000000 0x80000000>;
+
+		opb-master at c0010000 {
+			compatible = "ibm,power9-lpcm-opb-master";
+			reg = <0xc0010000 0x60>;
+		};
+
+		opb-arbiter at c0011000 {
+			compatible = "ibm,power9-lpcm-opb-arbiter";
+			reg = <0xc0011000 0x8>;
+		};
+
+		lpc-controller at c0012000 {
+			compatible = "ibm,power9-lpc-controller";
+			reg = <0xc0012000 0x100>;
+		};
+
+		lpc at f0000000 {
+			compatible = "ibm,power9-lpc";
+			#address-cells = <0x2>;
+			#size-cells = <0x1>;
+			ranges = <0x3 0x0 0xf0000000 0x10000000 /* FW space */
+				  0x0 0x0 0xe0000000 0x10000000 /* MEM space */
+				  0x1 0x0 0xd0010000 0x00010000 /* IO space */ >;
+
+			/*
+			 * We currently only support level interrupts on the LPC,
+			 * we use 1 cell.
+			 */
+			#interrupt-cells = <0x1>;
+
+			/*
+			 * Route the LPC interrupts to one of the 4 supported
+			 * PSI interrupt inputs [7...10].
+			 */
+			interrupt-map = <0x0 0x0 0x4 &PSI_X0 0x8
+					 0x0 0x0 0xa &PSI_X0 0x9>;
+			interrupt-map-mask = <0x0 0x0 0xff>;
+
+			/* Devices on the LPC bus go here */
+
+			serial at i3f8 {
+				compatible = "ns16550";
+				reg = <0x1 0x3f8 0x10>;
+				current-speed = <0x1c200>;
+				clock-frequency = <0x1c2000>;
+				interrupts = <0x4>;
+			};
+
+			ipmi at ie4 {
+				compatible = "ipmi-bt";
+				reg = <0x1 0xe4 0x3>;
+				interrupts = <0x10>;
+			};
+		};
+	};
+};
-- 
1.8.3.1



More information about the Skiboot mailing list