Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1479149ybz; Wed, 22 Apr 2020 22:49:00 -0700 (PDT) X-Google-Smtp-Source: APiQypLj3hSIT8sX/0fLYbIlNFOcBFWCl1BNYhAvQQw1iX6150/YeUmN9CvQ/lqquvPHt3n2F8Os X-Received: by 2002:a17:906:d0da:: with SMTP id bq26mr1299416ejb.344.1587620940363; Wed, 22 Apr 2020 22:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587620940; cv=none; d=google.com; s=arc-20160816; b=OQ6g/QQNfxCkWc1xZ8prhSH5u6QtkEN69jIIbMbZ6EBNpxfNkFtKeFURDiOxinUIad 0omJsE0uN/qM7g+0O7HgxtQBeiiW0qrrWlkmA4BxiuYQ3EZxw2absz640uIQrNkvJGXO v9cvgpU74lG2BIG3Xmltuo2U5hJtPhnTs77gVtCm0d5/R99HikcWWY6g6Dyn064Tb8UV KMcBYWKTCSCCZBscstGZ9Bvvsbrs93/FOJVlHdFEazrNZSfeFjgHmk+Y6d8FF/62r0dm /PV1WuN4tmfpGOxxRmQ2ylBajLXNuB6PO9UvfJm4gh3YvJwRFvf6R4lXH1Bjh/yksiQi wUJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=YIA9n3BbOJBvQz8fK79Sx7YPP5FbY1KMzzgVdpfzCAM=; b=o2qQ8pTiHbs1ivxAeMTC5IGbefdKXtXXJ1lPe2n/GqwHbXUxXqzzr0eWhae9i40Ayl JhdgGXLgY+mgOktC8DuvXMab7a7gGzY9SOHxJ9b+dy/WAaa9UnSh5fSBlmrdDmj6ubOu RaU1e467kabZb4ssooQE5zK7/+kVsK+ICkjsUQghcKrLkfrRQIdhtNEwv3dlsrIunZqs 8qPZAF33xW9981iUJuuJYB98cuzJajpC6bcTxQ3mIGMZDQr1O0nTlNab2XRQ1nC/sbNt iv86fBulSxWLRlzUgg5oVZLYGDB3Mb0JUvQywomxkf5zf/u7Rmpg4/3/eZWmwifw8yS+ ghWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc11si667283ejb.215.2020.04.22.22.48.36; Wed, 22 Apr 2020 22:49:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726593AbgDWFrO (ORCPT + 99 others); Thu, 23 Apr 2020 01:47:14 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:33850 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgDWFrO (ORCPT ); Thu, 23 Apr 2020 01:47:14 -0400 Received: by mail-io1-f68.google.com with SMTP id f3so5172373ioj.1; Wed, 22 Apr 2020 22:47:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YIA9n3BbOJBvQz8fK79Sx7YPP5FbY1KMzzgVdpfzCAM=; b=hUNtbqGOUAmOkRrK3+Wa1+zVt6vAY1gVwYl0jU3N5LVDFvbJoBpb0RZ35x59pLliWs Y/RhP2K/nGv4loeOmJS9aWNxySskEwAvkFYpd4ylMVA7K+s5NKRLGvNJr5979m3sONZp cn+pLIo/2tLxsuGcdEqoqBwg2ooBj+m2MAKRX+sxN5h31R1gu88S6Qk938TKxoK2JPYz FiDTMxWOLfEF649lY7xFTKbDAIMz0ZCblp824aEG4o+jZUb8MMyq0UN6HX5qhh3J/YMk YOfKfcA0DH4v2jihCZp0Jj3IY1I6AyahKFTw1TxlM9uJ0luEBEPWcGI/E/MTZzTBjGrF Vi6w== X-Gm-Message-State: AGi0PubAc/4CoGqmp/r6mrRjZyZzw4IUk/L4o8xqkrpkaXHc+2cIEqCE MvT+Je5UbylRSspE/Vttum97nkNfM5RLpXrwn5M= X-Received: by 2002:a6b:7317:: with SMTP id e23mr2185787ioh.72.1587620833499; Wed, 22 Apr 2020 22:47:13 -0700 (PDT) MIME-Version: 1.0 References: <20200422142428.1249684-1-jiaxun.yang@flygoat.com> <20200422142428.1249684-5-jiaxun.yang@flygoat.com> In-Reply-To: <20200422142428.1249684-5-jiaxun.yang@flygoat.com> From: Huacai Chen Date: Thu, 23 Apr 2020 13:54:32 +0800 Message-ID: Subject: Re: [PATCH 4/6] dt-bindings: interrupt-controller: Add Loongson PCH PIC To: Jiaxun Yang Cc: "open list:MIPS" , Marc Zyngier , Thomas Gleixner , Jason Cooper , Rob Herring , LKML , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jiaxun, On Wed, Apr 22, 2020 at 10:27 PM Jiaxun Yang wrote: > > Add binding for Loongson PCH PIC Controller. > > Signed-off-by: Jiaxun Yang > --- > .../loongson,pch-pic.yaml | 55 +++++++++++++++++++ > 1 file changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml > new file mode 100644 > index 000000000000..afc0c924e477 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/interrupt-controller/loongson,pch-pic.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Loongson PCH PIC Controller > + > +maintainers: > + - Jiaxun Yang > + > +allOf: > + - $ref: /schemas/interrupt-controller.yaml# > + > +description: | > + This interrupt controller is found in the Loongson-7A family of PCH for Please use "Loongson's LS7A family" here. > + transforming interrupts from on-chip devices into HyperTransport vectorized > + interrupts. > + > +properties: > + compatible: > + const: loongson,pch-pic-1.0 > + > + reg: > + maxItems: 1 > + > + loongson,pic-base-vec: > + $ref: '/schemas/types.yaml#/definitions/uint32' > + description: | > + u32 value of the base of parent HyperTransport vector allocated > + to PCH PIC. > + > + interrupt-controller: true > + > + '#interrupt-cells': > + const: 2 > + > +required: > + - compatible > + - reg > + - interrupt-controller > + - '#interrupt-cells' > + > +examples: > + - | > + #include > + pic: interrupt-controller@10000000 { > + compatible = "loongson,pch-pic-1.0"; > + reg = <0x10000000 0x400>; > + interrupt-controller; > + #interrupt-cells = <2>; > + loongson,pic-base-vec = <64>; > + interrupt-parent = <&htvec>; > + }; > +... > -- > 2.26.0.rc2 >