From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751517AbdFGT6K (ORCPT ); Wed, 7 Jun 2017 15:58:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:45296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751190AbdFGT6I (ORCPT ); Wed, 7 Jun 2017 15:58:08 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 953C8239EF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org MIME-Version: 1.0 In-Reply-To: References: <20170523004107.536-1-palmer@dabbelt.com> <20170606230007.19101-1-palmer@dabbelt.com> <20170606230007.19101-9-palmer@dabbelt.com> <20170607101343.GC29370@leverpostej> From: Rob Herring Date: Wed, 7 Jun 2017 14:57:46 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 08/17] dts: include documentation for the RISC-V interrupt controllers 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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