dev-arm,system-arm: missing GICv3 ranges property
authorAdrian Herrera <adrian.herrera@arm.com>
Mon, 19 Aug 2019 12:52:01 +0000 (13:52 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 22 Aug 2019 08:49:00 +0000 (08:49 +0000)
This patch adds the device tree "ranges" property to GICv3 for
the VExpress_GEM5_V2 platform. It is also included in the GICv3 DTB
auto generation.
This allows the GICv3 ITS to be specified in the device tree.

Change-Id: I00e1bb0fd45521e34820c0a23ddf047afec7aa4c
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20255
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/Gic.py
system/arm/dt/platforms/vexpress_gem5_v2_base.dtsi

index 734299f50b2450d729c216bb87ca2ac90f9f7515..e1a8a78dbdfe8064534a61ec8315cdba4926cb43 100644 (file)
@@ -235,6 +235,7 @@ class Gicv3(BaseGic):
         node.append(self._state.interruptCellsProperty())
         node.append(self._state.addrCellsProperty())
         node.append(self._state.sizeCellsProperty())
+        node.append(FdtProperty("ranges"))
         node.append(FdtProperty("interrupt-controller"))
 
         redist_stride = 0x40000 if self.gicv4 else 0x20000
index b901b92796d2dc2f4040f1200047d3b259af3cff..33407405029835752c6d4672370bd1c958838e42 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2017 ARM Limited
+ * Copyright (c) 2015-2017, 2019 ARM Limited
  * All rights reserved
  *
  * Redistribution and use in source and binary forms, with or without
@@ -39,6 +39,7 @@
                compatible = "arm,gic-v3";
                #interrupt-cells = <0x3>;
                #address-cells = <0x2>;
+               ranges;
                interrupt-controller;
                redistributor-stride = <0x0 0x40000>; // 256kB stride
                reg = <0x0 0x2c000000 0x0 0x10000