diff mbox series

[08/12] dts: Add pec targets

Message ID 20200313011939.279770-9-amitay@ozlabs.org
State Accepted
Headers show
Series Update fapi targets in device tree | expand

Commit Message

Amitay Isaacs March 13, 2020, 1:19 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 p9.dts                            | 48 +++++++++++++++++++++++++++++++
 tests/test_p9_fapi_translation.sh |  7 ++++-
 2 files changed, 54 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/p9.dts b/p9.dts
index b89e665..c6890ad 100644
--- a/p9.dts
+++ b/p9.dts
@@ -279,18 +279,42 @@ 
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0d >;
 				reg = < 0x00 0xd000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec@d000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x00 >;
+					reg = < 0x00 0xd000000 0xfffff >;
+				};
 			};
 
 			chiplet@e000000 {
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0e >;
 				reg = < 0x00 0xe000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec@e000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x01 >;
+					reg = < 0x00 0xe000000 0xfffff >;
+				};
 			};
 
 			chiplet@f000000 {
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0f >;
 				reg = < 0x00 0xf000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec@f000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x02 >;
+					reg = < 0x00 0xf000000 0xfffff >;
+				};
 			};
 
 			chiplet@10000000 {
@@ -1856,18 +1880,42 @@ 
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0d >;
 				reg = < 0x00 0xd000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec@d000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x00 >;
+					reg = < 0x00 0xd000000 0xfffff >;
+				};
 			};
 
 			chiplet@e000000 {
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0e >;
 				reg = < 0x00 0xe000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec@e000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x01 >;
+					reg = < 0x00 0xe000000 0xfffff >;
+				};
 			};
 
 			chiplet@f000000 {
 				compatible = "ibm,power9-chiplet";
 				index = < 0x0f >;
 				reg = < 0x00 0xf000000 0xfffff >;
+				#address-cells = < 0x02 >;
+				#size-cells = < 0x01 >;
+
+				pec@f000000 {
+					compatible = "ibm,power9-pec";
+					index = < 0x02 >;
+					reg = < 0x00 0xf000000 0xfffff >;
+				};
 			};
 
 			chiplet@10000000 {
diff --git a/tests/test_p9_fapi_translation.sh b/tests/test_p9_fapi_translation.sh
index e4d8233..91dda04 100755
--- a/tests/test_p9_fapi_translation.sh
+++ b/tests/test_p9_fapi_translation.sh
@@ -135,9 +135,14 @@  test_run libpdbg_p9_fapi_translation_test nv
 
 
 test_result 0 <<EOF
+Testing /proc0/pib/chiplet@d000000/pec@d000000  0
+Testing /proc0/pib/chiplet@e000000/pec@e000000  1
+Testing /proc0/pib/chiplet@f000000/pec@f000000  2
+Testing /proc1/pib/chiplet@d000000/pec@d000000  0
+Testing /proc1/pib/chiplet@e000000/pec@e000000  1
+Testing /proc1/pib/chiplet@f000000/pec@f000000  2
 EOF
 
-test_skip
 test_run libpdbg_p9_fapi_translation_test pec