Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp758129ybz; Wed, 22 Apr 2020 07:29:56 -0700 (PDT) X-Google-Smtp-Source: APiQypIUy+19oHtVoHKOeK9o1/NzpRXpisafjGW+E5sZ4ioRo4F8hHvXuSJE3ydh3sHj/nXKjGxY X-Received: by 2002:a17:906:5c43:: with SMTP id c3mr25795891ejr.3.1587565796081; Wed, 22 Apr 2020 07:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587565796; cv=none; d=google.com; s=arc-20160816; b=UyciZf0AoNsTb4L1J1ZXu3SGEu37ZRLcNuH+ui7Kx8WLi2uYXACG7WIA5IPf9UO+hO XeayM6Gg35ei7cVIlvVxD3Kxn7RIKpiLOSOtofkMB1YJdwtGoMxZuKdmRSi48IM68K70 07TIBHOUPlanuZ2lg1BK+I4/iAslJylGLMKSxzF0hO4qmuFFXmoCt1t/qxAedKWtlqKr eWnN4miPxskl+xvoSBBIjeiVa4FcDAbhWeDwY3lBw/mE2/LBxdbaCizQIwX83C4n2503 22jNpg0/mNuxs7+Tzwl8fRhmwD1BwehNRUv3DSNnzgJ/QD59pt9gIT9qVDRiuiFx8Uu2 Y0lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qy25BYEdz18dBZs3LTiyeTC+Wa4QzFl27HmZ/Km8nN8=; b=VNkYCRlRtyl4ql3i7ufbJjI9/+C65OX7+CQpbJGNG9sjK+K7DGQIY3fr8Hol3V6CJ5 rrjch7HwK/BCE/skEUN1Y8wBVKi525YIXl5jeTJyR8WeVQ37ZKrRHbOs36DId0r/JfbF hy2BbZlCPXCUuCMAFI1K++s2N8GzbphHU+wQJjuk6P4r3mIzhLRwjEhrfnf/6Ui7JpTl EB0WXLixjhEcf6cJcAHps/qsnMUJQ6NmSLn3TLZ9YXNlB/d7pHLaG4VG80kSZK3qAubH 0IUqw9v4QixF632fYipmgZu3MkBjhOYeZu7td4nRt6ikoO5x3ZDCsgy/I2sWQm6VspVJ rShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=p78a3N7V; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si3488831edr.281.2020.04.22.07.29.24; Wed, 22 Apr 2020 07:29:56 -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; dkim=fail header.i=@flygoat.com header.s=vultr header.b=p78a3N7V; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728012AbgDVO0m (ORCPT + 99 others); Wed, 22 Apr 2020 10:26:42 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:59336 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727933AbgDVO0l (ORCPT ); Wed, 22 Apr 2020 10:26:41 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 1287820CD7; Wed, 22 Apr 2020 14:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1587565589; bh=p5gnRIZ0/bXq2CwVeK3wJszOYSy/wquMYCbBmYV8dBU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p78a3N7VO3xp7N0BySi1ZbKQiCW0BH819CFCjPTso4wJbaMgdXdGrhXgdl9/A3ixZ 0IUAHGI9PLpK6bpRgxl3ZlfWWUNphp9h8dYsfMCGh6D0yd90OBws1+F7JVkEBAUNR6 7w2kiRjOhk4sl0VD0qHuzaeS6hYtE9AcfMXeYg8YCOYWVp4lAa7H7ZP5062uB/qVZR 7+NJsYEIddLiPz+dmOYT0cSz/6D9EJei7TJD3LREeqVMqDVNIFAD91W/gBguDJDaH8 GAZi9VdrV00DxNthO9e7ShlernKT+pAezi3zG60HiJyjSlPaAcimR4/GZcT6qkyxiD PN8Ws/TpyT5ww== From: Jiaxun Yang To: linux-mips@vger.kernel.org, maz@kernel.org Cc: Jiaxun Yang , Thomas Gleixner , Jason Cooper , Rob Herring , Huacai Chen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 6/6] dt-bindings: interrupt-controller: Add Loongson PCH MSI Date: Wed, 22 Apr 2020 22:24:26 +0800 Message-Id: <20200422142428.1249684-7-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200422142428.1249684-1-jiaxun.yang@flygoat.com> References: <20200422142428.1249684-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding for Loongson PCH MSI controller. Signed-off-by: Jiaxun Yang --- .../loongson,pch-msi.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,pch-msi.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-msi.yaml b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-msi.yaml new file mode 100644 index 000000000000..dfb9cecacba0 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-msi.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/interrupt-controller/loongson,pch-msi.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Loongson PCH MSI Controller + +maintainers: + - Jiaxun Yang + +description: | + This interrupt controller is found in the Loongson-7A family of PCH for + transforming interrupts from PCIe MSI into HyperTransport vectorized + interrupts. + +properties: + compatible: + const: loongson,pch-msi-1.0 + + reg: + maxItems: 1 + + loongson,msi-base-vec: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: | + u32 value of the base of parent HyperTransport vector allocated + to PCH MSI. + + loongson,msi-num-vecs: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: | + u32 value of the number of parent HyperTransport vectors allocated + to PCH MSI. + + msi-controller: true + +required: + - compatible + - reg + - msi-controller + - loongson,msi-base-vec + - loongson,msi-num-vecs + +examples: + - | + #include + msi: msi-controller@2ff00000 { + compatible = "loongson,pch-msi-1.0"; + reg = <0x2ff00000 0x4>; + msi-controller; + loongson,msi-base-vec = <64>; + loongson,msi-num-vecs = <64>; + interrupt-parent = <&htvec>; + }; +... -- 2.26.0.rc2