Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751515AbdFGUb6 (ORCPT ); Wed, 7 Jun 2017 16:31:58 -0400 Received: from mail-yb0-f181.google.com ([209.85.213.181]:35164 "EHLO mail-yb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751419AbdFGUb4 (ORCPT ); Wed, 7 Jun 2017 16:31:56 -0400 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: Wesley Terpstra Date: Wed, 7 Jun 2017 13:31:55 -0700 Message-ID: Subject: Re: [PATCH 08/17] dts: include documentation for the RISC-V interrupt controllers To: Rob Herring 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 Content-Length: 1087 Lines: 26 I've reread the relevant sections now, and you are correct. We should remove the address-cells from the PLIC's dts. On Wed, Jun 7, 2017 at 12:57 PM, Rob Herring wrote: > 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