diff mbox series

[v2,20/20] dts: Add ocmb targets to p10.dts

Message ID 20201001070814.102735-21-amitay@ozlabs.org
State New
Headers show
Series Add p10 support to libpdbg | expand

Commit Message

Amitay Isaacs Oct. 1, 2020, 7:08 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
---
 p10.dts.m4 | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
diff mbox series

Patch

diff --git a/p10.dts.m4 b/p10.dts.m4
index 76bbc4d..15ecc08 100644
--- a/p10.dts.m4
+++ b/p10.dts.m4
@@ -217,6 +217,20 @@  define(`id', eval(`$2 % 2'))dnl
 		index = <$2>;
 ')
 
+dnl
+dnl OCMB([index])
+dnl
+define(`OCMB',
+`
+	CONCAT(ocmb@, $1) {
+		#address-cells = <0x02>;
+		#size-cells = <0x01>;
+		reg = <0x00 0x08010000 0x3c00>;
+		compatible = "ibm,power-ocmb", "ibm,power10-ocmb";
+		index = <$1>;
+	};
+')
+
 dnl
 dnl PEC_([chiplet], [index])
 dnl
@@ -341,14 +355,18 @@  define(`CHIP',
 					MI_(c,0)
 						MCC_(c,0)
 							OMI_(c,0)
+								OCMB(0)
 							};
 							OMI_(c,1)
+								OCMB(1)
 							};
 						};
 						MCC_(c,1)
 							OMI_(c,2)
+								OCMB(2)
 							};
 							OMI_(c,3)
+								OCMB(3)
 							};
 						};
 					};
@@ -362,14 +380,18 @@  define(`CHIP',
 					MI_(d,1)
 						MCC_(d,2)
 							OMI_(d,4)
+								OCMB(4)
 							};
 							OMI_(d,5)
+								OCMB(5)
 							};
 						};
 						MCC_(d,3)
 							OMI_(d,6)
+								OCMB(6)
 							};
 							OMI_(d,7)
+								OCMB(7)
 							};
 						};
 					};