From 8e73f1d497f8586271841750b800e60c054026ec Mon Sep 17 00:00:00 2001 From: Adrian Herrera Date: Mon, 19 Aug 2019 13:52:01 +0100 Subject: [PATCH] dev-arm,system-arm: missing GICv3 ranges property 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 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20255 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg Tested-by: kokoro --- src/dev/arm/Gic.py | 1 + system/arm/dt/platforms/vexpress_gem5_v2_base.dtsi | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dev/arm/Gic.py b/src/dev/arm/Gic.py index 734299f50..e1a8a78db 100644 --- a/src/dev/arm/Gic.py +++ b/src/dev/arm/Gic.py @@ -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 diff --git a/system/arm/dt/platforms/vexpress_gem5_v2_base.dtsi b/system/arm/dt/platforms/vexpress_gem5_v2_base.dtsi index b901b9279..334074050 100644 --- a/system/arm/dt/platforms/vexpress_gem5_v2_base.dtsi +++ b/system/arm/dt/platforms/vexpress_gem5_v2_base.dtsi @@ -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 -- 2.30.2