From: Ian Campbell Subject: Re: [PATCH v4 16/17] libxl: build a device tree for ARM guests Date: Wed, 13 Nov 2013 10:26:43 +0000 Message-ID: <1384338403.5406.38.camel@kazak.uk.xensource.com> References: <1384277936.10204.111.camel@kazak.uk.xensource.com> <1384277960-14426-16-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Ian Jackson , julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2013-11-12 at 19:51 +0000, Stefano Stabellini wrote: > > + res = fdt_property_cell(fdt, "phandle", PHANDLE_GIC); > > + if (res) return res; > > Why are you adding this property? When you write e.g. "interrupt-parent = <&gic>" what you are actually doing is creating a cell with a reference the phandle of the node called "gic". If you decompile a dtb you'll see that the gic node has a property "phandle = N" (where N is some unique integer) and that other nodes have "interrupt-parent = ". So this is adding that phandle property so we can refer to it. Ian.