Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp521215ybm; Thu, 28 May 2020 08:31:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuUiAspDSqGX7ImNJapA1HHVpjji3H1yWp9s2OQ4rz19OBc/Bsv6N3dDvt5RWq018/PFh4 X-Received: by 2002:aa7:c609:: with SMTP id h9mr3600083edq.155.1590679902343; Thu, 28 May 2020 08:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590679902; cv=none; d=google.com; s=arc-20160816; b=bUvRSge0igdwv0Ms/BmNnGY7+PsIFEaCjkcNYLy2fMbUXioBgLbBi5eFVBhaZT8BOQ Tned6gMw3xFVXIS/8B4uCgxHXb7HQunF+qIMFeK3xlV5pa17uxc+b3fKCgPgBifVXvdu dVQDN2+6zpCktT8vYPX1iDJsy++NpUqcWsQTE19edApXFBfJK151z6+OY5DJNiLWy15E AgvMlcgQs2xL/8XmkNqL94mj6v+CICMqIZDOgp3owKZgPCR1Qh3ocztc7+Q9kn9E2YiJ gwHY0TfE58Z/4sudOTYJGt3jIxBR186Sl8C8j7nQcHboaQoDz66vX2WQnOOvMj/dHUjz /fsg== 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=pVliebhOJk80bQDySPL9fXRYeQklX2RXvLTrZebNilI=; b=x6VGEiZku5aQ24qzA2x4W+qoVHyPnS/qQOt8gBwgyIyfeAhJfmn3qtjOq/REHstyoH pAaUqYYIOM/kvkoRnzW0a8l8Z2oKBRw0fZc9q2G5OhE9Jp+SbYvBcx+d6dLmb21d81tA 4Q7eb5sMamIwg9loQSEu9ZG5qoagdPTh1v7ZUwX422EtetnexXYzMJbKMGqi5kzchCNs gLvfL6+snx8H2lLuoi/DjRHkD9crPgWOta+C8TjqRSAl9tZ1aK6YD63aS8hIuqWcqpZz scPiZFtBnPDewM1jCLQYu+lM7+kIdINgp27aozqkbTAQAGhv2Rrxisk6XokjKRtILram VZdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=miEDh9vz; 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 n17si3923352ejd.437.2020.05.28.08.31.18; Thu, 28 May 2020 08:31: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=miEDh9vz; 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 S2404435AbgE1P3J (ORCPT + 99 others); Thu, 28 May 2020 11:29:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404418AbgE1P3A (ORCPT ); Thu, 28 May 2020 11:29:00 -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 2C66DC08C5C6; Thu, 28 May 2020 08:29:00 -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 4EDA620F12; Thu, 28 May 2020 15:28:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1590679740; bh=NqxmdRPeUycZfCLPTG84V3ZxjnAvqs76RNa18cYK7Ao=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=miEDh9vz5GzaD7YanDRa25KaSfXVV7UJ3y6bbu/V9/4DNKg5doxiwJXBubIrzhzNX PopyaYMpL9sXo9mMvaQBsFBxq8dYK2biQoFpBmDj1oWWQpBZN1pANuvFegeHXx+/JG KZTpfVeR5gtHmf/7WP55TsSYd5xNtoIRyMdhOIOCqK3Mor13io2whLFC9sF0JO3iD1 FklA5AmZlB1mgRVuWTrQHRGuE00jVoxRpIGwF9m6Y2NdFYd9+4BNo7fM2k691PJBYm 5cufk9wtTxQvdEaoHJFwMxQcrdNZmVPDGF8htmNsuH+tO3fN/6HZnlhSPZ2viYMoNF TvkuN10b96+jA== 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 v5 4/6] dt-bindings: interrupt-controller: Add Loongson PCH PIC Date: Thu, 28 May 2020 23:27:52 +0800 Message-Id: <20200528152757.1028711-5-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 PIC Controller. Signed-off-by: Jiaxun Yang -- v2: - Fix naming - Mark loongson,pic-base-vec as required v5: - Add range check for loongson,pic-base-vec --- .../loongson,pch-pic.yaml | 56 +++++++++++++++++++ 1 file changed, 56 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..274adea13f33 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,pch-pic.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-pic.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Loongson PCH PIC Controller + +maintainers: + - Jiaxun Yang + +description: + This interrupt controller is found in the Loongson LS7A family of PCH for + 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: + description: + u32 value of the base of parent HyperTransport vector allocated + to PCH PIC. + allOf: + - $ref: "/schemas/types.yaml#/definitions/uint32" + - minimum: 0 + maximum: 192 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + +required: + - compatible + - reg + - loongson,pic-base-vec + - 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.27.0.rc0