[Skiboot] [PATCH 3/6] devicetree: Add nx node to power9-phb4.dts

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


A (non-qemu) p9 without an nx node will assert in p9_darn_init():

  dt_for_each_compatible(dt_root, nx, "ibm,power9-nx")
          break;
  if (!nx) {
          if (!dt_node_is_compatible(dt_root, "qemu,powernv"))
                assert(nx);
          return;
  }

Since NX is this essential, add it to the device tree.

Signed-off-by: Reza Arbab <arbab at linux.ibm.com>
---
 doc/device-tree/examples/power9-phb4.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/device-tree/examples/power9-phb4.dts b/doc/device-tree/examples/power9-phb4.dts
index daf71fcaf9e1..a6acd533970c 100644
--- a/doc/device-tree/examples/power9-phb4.dts
+++ b/doc/device-tree/examples/power9-phb4.dts
@@ -166,6 +166,11 @@
 			 #address-cells = <0>;
 			 #interrupt-map-mask = < 0xff >;
 		};
+
+		nx at 2010000 {
+			reg = <0x2010000 0x4000>;
+			compatible = "ibm,power9-nx";
+		};
 	};
 
 	lpcm-opb at 6030000000000 {
-- 
1.8.3.1



More information about the Skiboot mailing list