diff mbox series

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

Message ID 1550094158-29410-4-git-send-email-arbab@linux.ibm.com
State Accepted
Headers show
Series Introduce external/devicetree | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success master/apply_patch Successfully applied
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master

Commit Message

Reza Arbab Feb. 13, 2019, 9:42 p.m. UTC
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@linux.ibm.com>
---
 doc/device-tree/examples/power9-phb4.dts | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

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@2010000 {
+			reg = <0x2010000 0x4000>;
+			compatible = "ibm,power9-nx";
+		};
 	};
 
 	lpcm-opb@6030000000000 {