Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1121330ybk; Sat, 16 May 2020 01:34:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxylgAKxyTrfQ+mk4GzS3Ythgq8aXSqtZrfh6R1bUL0h5iSkDZnxCk9jro0POJ7rd5Hvx91 X-Received: by 2002:a17:906:407:: with SMTP id d7mr6772865eja.46.1589618082390; Sat, 16 May 2020 01:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589618082; cv=none; d=google.com; s=arc-20160816; b=ZCvWCdIfOsdsgVdoG/XusFdqIf2GVnsRRsKqFeSVDXpqTokWyQ4WGUemOC2pC5HYRz K4+E0rPcXf8URNSzUKPqiKOlQoi7pxdI7vMArhnvV70YuTk3GG7UxdYLg5geutCnpvrt 09pS5eNuinWZKPDLeYJD6h9M1tRGIjyNAQpcZ8fp0reKu2e72KmvDEpyyrqLinRFu/g6 qlbaqhK/BUCf4b4FWUpf+s93q6F0nsxaOqktG346x14T/BEe7wwSAzdW0MjXDRNT/5iu OA9Yn18GtGmyOAmZs/MimUnyZtpVFUigN5T4WZRV5AWwMefgMO1IpPSdmjmG5cJQmmC5 5jMg== 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=Q2mCxHN+NvUFBTLkDeVYdebJyqOnXcw0JPcbhMpk80c=; b=M3KJAbDJ6rRV5jnZZltEuTr68nW7SyJpr/utkoD6uaJnCH4g6yDpgkmgs2+aOCgQK9 k3iGB8Tx0jIGemt1xgoDtrWdyqsaXQgDlZSJW12WTSKNlagp6O8PgTvYYisOJM52ipA4 QGoeu62jBvSQIHMcW1r/6L5ep08APVuuMEoOWOeK51oCSNZws8JSlbSNh112B9uW+4D0 BC0bKQ152R+6SLQpUD6cVHVb3zZbczKtlyia4ASZYDuJXaFu4tnnDwUAhsFmC7R8i/H8 Pfo2OvM7fYeJkcnWy1w+xi+kOhda0gyOJsZ8wKR8882tAKl9GATOlIPEHsvYGJ1IGc0e nPWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=QXh90bHG; 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 cb25si3109022ejb.523.2020.05.16.01.34.18; Sat, 16 May 2020 01:34:42 -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=QXh90bHG; 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 S1727038AbgEPIaI (ORCPT + 99 others); Sat, 16 May 2020 04:30:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbgEPIaG (ORCPT ); Sat, 16 May 2020 04:30:06 -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 A4A44C05BD09; Sat, 16 May 2020 01:30:06 -0700 (PDT) Received: from localhost.localdomain (unknown [142.147.94.151]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 5D87A21015; Sat, 16 May 2020 08:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1589617806; bh=GSXVIXGRxApFj/PKoaIpLWYhWEtm2iFDCNfRjCDcMts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QXh90bHGGVg2O//dvO/lxguDQUlCFXYKroviBll/mt9uwvnJ9lpm1TQrCA5DoE+sS RRQfZ7E90+9PxpnVlmXoc/kruWY+yrQ5XxGWxm1yxBsaG4cug5DEE5Tr1OVbcCWvCc sSdz02Or4Aruw14Om63ZVpREVD2RL18C/LVhDZensnpU7EEwHXHkWlm6xZa7Fe8tWM sPNi//hZQt0YJSh/fIm5yQ5XVR3Pu03f+cl0kEs3IrmFO6LYDULuTx2L8rsvD0CePi XgvS1w3VLvvbJBxqvvQsegNdMH5FuLIdhMI7HVFliOaSyVQDRHZ6+ZZqKaElB9d9bN 5AD5RvBOI5eYw== 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 v4 6/6] dt-bindings: interrupt-controller: Add Loongson PCH MSI Date: Sat, 16 May 2020 16:29:06 +0800 Message-Id: <20200516082912.3673033-6-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200516082912.3673033-1-jiaxun.yang@flygoat.com> References: <20200427060551.1372591-1-jiaxun.yang@flygoat.com> <20200516082912.3673033-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 --- .../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.2