Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3776187ybz; Mon, 27 Apr 2020 23:38:29 -0700 (PDT) X-Google-Smtp-Source: APiQypJWkeot3nwAC2KwlkfIvmLg5TIhqNiJf9DikwUYA4L11Am3UoyhMYUitJIc4Qccn4j0s/8P X-Received: by 2002:a17:906:1490:: with SMTP id x16mr21705295ejc.323.1588055908936; Mon, 27 Apr 2020 23:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588055908; cv=none; d=google.com; s=arc-20160816; b=DWXpBkhC3Paxh8e9qT3qj8QhJhpzYVw7eEKHfPPgQh1zukYGHhDoC5i8k1m8qpzcjL VLZ8Xd99NHDkW67Z0B/+6AF9S6Uwm/z40Pc2uGPsIzFCoaTC8k+beQVrlWsPO3sPOKxp 6NRflsndRn154yxtbKIEqLhyrgA+AbO1cEW5zYdmrPlmIGV/y+GLNPkFfMH3AIiYiuad xmcbyrCILf9yRPQaD6ys5bvtwX2o9CX9rH9Ecwd6N38ixiflFfArGDXAMMhlMdW8eSxr aTAIRyEgku95d9Sw9aaI3a5MShcA40h5cChqVF+C7VxvEcN5KENDLNlnPlhIKn/tfUM3 2SKw== 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=V1sdB1wQyEweMCTIkwS+dIiiVv/bXDbG5lrDRokWyHA=; b=ZnQFQXN1zeNp4nWXPwg+vM+s2PrZlwLNmiM9wH+K68J1scJ5nkmV3jEUiOj13eSswk V3y2HNkV01NlYxJLgJUFdMQBa6yzWLbkdm9OrH52RnJlqBFW5SgD/zoCp8j1xFvhD9Z4 2nXalikeCXYjcLjBq74xigEmsgKL6FOXyie3Y0+BWa9h3dySMkd+PI4DiRAMFL4Cp34t J2fIepK6Qt3p4qFtbe20j5Ydx9Iollo0gHUXuKxrE0XKu4Ygq9UeAS3cjPejCXEOQqjH C8mLGod4E1YFj4nOP4LCwAiArj9N/fsWdouW+yI6BpXW6iTAcieA41A3nSteBaOPejEf b+7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=AURRjPp1; 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 i5si261414eds.369.2020.04.27.23.38.06; Mon, 27 Apr 2020 23:38:28 -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=AURRjPp1; 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 S1726735AbgD1Gd6 (ORCPT + 99 others); Tue, 28 Apr 2020 02:33:58 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:60618 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbgD1Gdw (ORCPT ); Tue, 28 Apr 2020 02:33:52 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id D379420CDC; Tue, 28 Apr 2020 06:33:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1588055632; bh=UBb6voEXnZVtEz2ml1YRi2CB/X7gUz26bvIQSCyUKX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AURRjPp1sdyjFwJi8SdcR45DMiMXQvQQdGq/9fl0fLPF/aYyQC9YTUYU30wKbCk/w 6KyV6OMM7dSHLQFx1BBX+lIYMR1JC8QoONJurC5i9Ov/3tF2yH4Dl+Z/gYLC+Fc1m7 Q7Px2Bi2xkHCQr495nTo8ZXAADitIdo6cF18SDGvSBLbUghlHm5WoopYvgtsl4UPhc n0Zqon5jg7tSnfaS82GD19OBYOwCCjXCtV2YwK77OJt77c16PAL/VqI5nbqQJgk0Li rw4rF5D/m2DxvdxbOrKJs+AqFSeuxrLJS7S2R371of6LradCB2O+Zy4P0aR7gcKhyg nL5JqhskOzmVA== From: Jiaxun Yang To: maz@kernel.org Cc: Jiaxun Yang , Thomas Gleixner , Jason Cooper , Rob Herring , Huacai Chen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v2 6/6] dt-bindings: interrupt-controller: Add Loongson PCH MSI Date: Tue, 28 Apr 2020 14:32:45 +0800 Message-Id: <20200428063247.2223499-6-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200428063247.2223499-1-jiaxun.yang@flygoat.com> References: <20200422142428.1249684-1-jiaxun.yang@flygoat.com> <20200428063247.2223499-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..513ed1933035 --- /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 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: + $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