Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp85722imm; Wed, 5 Sep 2018 19:15:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdblTq3toCfVkfR4hI5KD4lb5bBrTPrWXiVCCfPgRex/2F7Shynh4wtTvMvJsUboiA52oVN1 X-Received: by 2002:a17:902:7287:: with SMTP id d7-v6mr603013pll.54.1536200100470; Wed, 05 Sep 2018 19:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536200100; cv=none; d=google.com; s=arc-20160816; b=xVa32vXAPuj07aDzdQ5//FYDkkuGrglOHuqSvKSzuDMIoO7u8Dwkd8whMkTYVPDdI8 16mjYEgsxuHw6EPfH1Zw9jL6u0VVr0TAVBkv7Wb6ChUgtgeD5jA+WZiUJpbjflXRyNNJ qKJamfzgTjD9D73gKVfOXBVMwHhXlx10A9MkPS0bjlNQ/1jh8crlylOmi/YGkVKuhs49 w+FgQCXGBpA7LgB0Lax6gD+GevdN6cDbrWkSZZJ91NqmZk0LfV4QN8hXKBiZPUa68YHp 04Uz+nQlqDo+CEpym1R+4OAQMsBEWTe/gz1rRpprbmQAyKAS3gR8E5hAkzavh3Uh2ptt Uw+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=58ou9jkFKFAo2Q5pATH5ylM8xZ+2UB+bd4j9CckuvdQ=; b=p8tTImxQfNcowHsp3HZEGGHynnw4OjcUFBTJ2eY8Axx2fIQOGtsDhJYSNNySWlLFkL ymRE9ID1gB1ACwUBzW0Ix1D9ETKmgjX0jjFG2EvoK1xTHqDNfhuiGpEaCsIIm/GKrsWe myV+29WxGyWqqj7o7K++wf0WNJKdizDDCQklI/jwiG+V5X7DDG7b2oA8gV/i1pZDRm/7 tbEHoiPeG5o+HyBEYyA5kEatZZ1Mo1xLgF1Wq4QGcb5ubSRLhibdE7a6/B0MH1qs85oC JDArDFm6f9Ec0hE6siPYDiZF2qRXFo56rptI2LUFHCMS74qgV8n9TZrMKcEX9PvfnX10 ujjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2-v6si3606471plp.276.2018.09.05.19.14.45; Wed, 05 Sep 2018 19:15:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726506AbeIFGqJ (ORCPT + 99 others); Thu, 6 Sep 2018 02:46:09 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:38007 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725850AbeIFGqJ (ORCPT ); Thu, 6 Sep 2018 02:46:09 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08469427|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01l07440;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=12;RT=12;SR=0;TI=SMTPD_---.Cn4WQaU_1536199974; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.Cn4WQaU_1536199974) by smtp.aliyun-inc.com(10.147.42.198); Thu, 06 Sep 2018 10:12:54 +0800 Date: Thu, 6 Sep 2018 10:12:54 +0800 From: Guo Ren To: Rob Herring Cc: linux-arch@vger.kernel.org, Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , Arnd Bergmann , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org, Greentime Hu Subject: Re: [PATCH V3 21/26] dt-bindings: interrupt-controller: C-SKY APB intc Message-ID: <20180906021254.GC29405@guoren-Inspiron-7460> References: <62dae1828ade759584bbf1507fe4a9e69d247a50.1536138304.git.ren_guo@c-sky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 05, 2018 at 07:43:10PM -0500, Rob Herring wrote: > On Wed, Sep 5, 2018 at 7:10 AM Guo Ren wrote: > > > > Signed-off-by: Guo Ren > > --- > > .../interrupt-controller/csky,apb-intc.txt | 45 ++++++++++++++++++++++ > > 1 file changed, 45 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt > > > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt > > new file mode 100644 > > index 0000000..faa482c > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt > > @@ -0,0 +1,45 @@ > > +============================== > > +C-SKY APB Interrupt Controller > > +============================== > > + > > +C-SKY APB Interrupt Controller is a simple soc interrupt controller > > +on the apb bus and we only use it as root irq controller. > > + > > + - csky,apb-intc is used in a lot of csky fpgas and socs, it support 64 irq nums. > > + - csky,dual-apb-intc consists of 2 apb-intc and 128 irq nums supported. > > Can't this be described in DT as 2 csky,apb-intc nodes? In detail, dual-apb-intc is not the same as two apb-intc, so I still want to name them separately, so I will keep this and it is clearer. > > + - compatible > > + Usage: required > > + Value type: > > + Definition: must be "csky,apb-intc" > > + "csky,dual-apb-intc" > > + "csky,gx6605s-intc" > > + - interrupt-cells > > #interrupt-cells Yes, I forgot #. - #interrupt-cells > > + Usage: required > > + Value type: > > + Definition: must be <1> > > No edge or level configuration? No, also no support in hardware. > > + > > + intc: interrupt-controller { > > Needs a unit-address. Ok, change it to: intc: interrupt-controller@0x00500000 { Guo Ren