Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp521789ybm; Thu, 28 May 2020 08:32:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHXtCaQhXB3pED078i+WK8rZUZ+oo+JnkkYrODt3UejBo9YRANk9xLydqGt+kf1WVu+Rgt X-Received: by 2002:a05:6402:14d5:: with SMTP id f21mr3737494edx.327.1590679942335; Thu, 28 May 2020 08:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590679942; cv=none; d=google.com; s=arc-20160816; b=RMgqf9ce/xxzCVQQbKGDFVMUznRsaaL+H7vRTs5nxghWAi0XR11lVxLkPdVRyhHGRO mcUnueWaD7fNjipqNLPdq6W+DcbF68f8pkI+VC0S5bwPF27x/qTACT8F8umZMtmuIhj8 gns7AK1DU4/U2nH/MYu1zp8PZx6B/OCUXyYFwy+e6fv64R7ayZNxihB7nX20PRPepAl2 NN5hPK6kO2pe9bhWwYIgScFt776OT+pixxEqxXgEPv1h0SCRcMco4tEzsaAuGM0lcOe7 XYvlMp5P7oPdeG+j4d8XqPs+o3gMP8J61q3ay6SugzTSbRA+ivehUeQQaGxEQe3wUnZ2 eTwQ== 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=lz3zn73WapgOjoGdBDGtX9hJ7mO7VCzVrCfYRMIAaVc=; b=EsDu0lZgaM56cFv+vpbPhATfCQ5+FEv2Kc7vf0Bewj2qO4liRxm4ktW+cey2wDzqdB cWU+8l9JxgsBFa5Lukj2T9TyJsSyqR63jgUWsMWvy9SpFZjGlm5ED83vFIwEqhqKY9me hkfqyDol/tyMuS5aEt7fR294GGPhitpkuDnyGNEW681Qdyij+t8Ld1a5Xz6OGLZOb5Db YlVDR1oJRvflFpit0fh11nUb/DNQZ/IQtMD3UpJFkxRCcWcfPvdeO/QC7NeeiuC9oGrI Gy7LZhd9pj/X9fpwLdx5Kkhgx5J9l1ZJcp5HouEuOJ98rtaVU2cAvAN6iEj2fKW88Ysj EsaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=mn9kjRnf; 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 k1si3930669ejb.562.2020.05.28.08.31.56; Thu, 28 May 2020 08:32:22 -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=mn9kjRnf; 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 S2404218AbgE1P32 (ORCPT + 99 others); Thu, 28 May 2020 11:29:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404434AbgE1P3I (ORCPT ); Thu, 28 May 2020 11:29:08 -0400 Received: from vultr.net.flygoat.com (vultr.net.flygoat.com [IPv6:2001:19f0:6001:3633:5400:2ff:fe8c:553]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7562BC08C5C6; Thu, 28 May 2020 08:29:08 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 67D9A20F12; Thu, 28 May 2020 15:29:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1590679748; bh=LejHwNodx3fB5Z1MeLQOLJbRfsFmSQx2wh+M5DswtoA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mn9kjRnfol0AZFx++gXZ7/2uZZDkLmsWj9YmVwW7zlmJoFGj0/SpV1Kbhaf/+7QTq RxNEyAcvaQ2imXfqTG7mBJALKLpgG8rx5NrY4wS9VsYNFziLkOYt08FTwPz5pohXNL IpXa1SWKl8/tr3KN5nhBP79U5REpl2QI/pE4BRwSr3H7iXzS13/Hx1RgU2ZLi+OZED FUu08tJ+N/g4nawqIqL4gS9MABD/fEFfvcmkzMGi72a6RURg109FQw0om+2V+u2eB9 StyU3CKQrMIq0r6YkgsWx6VyjdWj2EzJtRlwLFidB+6s+ZQUDZFEFe6oKy/8IMUJXR X1JUotaZlsPvQ== From: Jiaxun Yang To: maz@kernel.org Cc: Jiaxun Yang , Rob Herring , Thomas Gleixner , Jason Cooper , Rob Herring , Huacai Chen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v5 6/6] dt-bindings: interrupt-controller: Add Loongson PCH MSI Date: Thu, 28 May 2020 23:27:54 +0800 Message-Id: <20200528152757.1028711-7-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.27.0.rc0 In-Reply-To: <20200528152757.1028711-1-jiaxun.yang@flygoat.com> References: <20200528152757.1028711-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 Reviewed-by: Rob Herring -- v5: Add range check for msi-base-vec & msi-num-vecs --- .../loongson,pch-msi.yaml | 62 +++++++++++++++++++ 1 file changed, 62 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..1a5ebbdd219a --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-msi.yaml @@ -0,0 +1,62 @@ +# 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 LS7A 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: + description: + u32 value of the base of parent HyperTransport vector allocated + to PCH MSI. + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint32" + - minimum: 0 + maximum: 255 + + loongson,msi-num-vecs: + description: + u32 value of the number of parent HyperTransport vectors allocated + to PCH MSI. + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint32" + - minimum: 1 + maximum: 256 + + 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.27.0.rc0