From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH 08/17] dts: include documentation for the RISC-V interrupt controllers Date: Wed, 7 Jun 2017 14:57:46 -0500 Message-ID: References: <20170523004107.536-1-palmer@dabbelt.com> <20170606230007.19101-1-palmer@dabbelt.com> <20170606230007.19101-9-palmer@dabbelt.com> <20170607101343.GC29370@leverpostej> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-arch-owner@vger.kernel.org To: Wesley Terpstra Cc: Mark Rutland , Geert Uytterhoeven , Palmer Dabbelt , Linux-Arch , "linux-kernel@vger.kernel.org" , Arnd Bergmann , Olof Johansson , Albert Ou , patches@groups.riscv.org, Thomas Gleixner , Jason Cooper , Marc Zyngier , "devicetree@vger.kernel.org" List-Id: devicetree@vger.kernel.org On Wed, Jun 7, 2017 at 1:57 PM, Wesley Terpstra wrote: > On Wed, Jun 7, 2017 at 3:13 AM, Mark Rutland wrote: >>> > +RISC-V Hart-Level Interrupt Controller (HLIC) >>> > +--------------------------------------------- [...] >>> > + plic: interrupt-controller@c000000 { >>> > + #address-cells = <0>; >> >> This can go, given you don't have sub-nodes, nor a #size-cells property. > > The device-tree-specification seems to indicate that this is mandatory > for an interrupt-controller. Or have I understood this wrongly? When > you use interrupts-extended, doesn't it use the address-cells of the > interrupt controller? We should add that size-cells = 0, though. It's only needed if you have an interrupt-map property AIUI. #size-cells should never be needed (unless you have child nodes of this one). Rob