Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5380434rwb; Mon, 14 Nov 2022 04:00:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf7DIdempDEmSApCniARDEYIFjDZWQbcmEIpPdgXvQMmRw4oK544Bn41zAsCw2FaYNFYrhJU X-Received: by 2002:a17:90b:4fce:b0:212:d5e6:4e38 with SMTP id qa14-20020a17090b4fce00b00212d5e64e38mr13600631pjb.160.1668427202890; Mon, 14 Nov 2022 04:00:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668427202; cv=none; d=google.com; s=arc-20160816; b=P9GDfsuRostk1GLpwY7iXnYP2Anw5lZf/P3SPJ6l/TXU5eX+2V+h025hFAU5Hr1fjY Biy/st0MDwRZF/UC+A/TSt4FcfKai/vmRlZW7aDr0v0rxlqLjrKQx5sN0wd3yN9X3f8d PbVxip7LzH8NgQvAscKFETBFF+0ahBkiJE9hi7p6JO9S2AlFwKIRKnjGyUR3TinOu6D8 ohH10o4tRoNFlzfC5yMd6R+yvgqzaonZwhEPy+uIRBC3RsldmVJ+maA3ebLeOSA3h+2y RPXnxy3st7U4RuCxiHbsf9+4TtfJrFeyfAin//+yjanGI1Ivo6aSKobPPdvBsiR1npv4 Ey6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=pT+FYg4N/A9doWXGKrd/E1n3CWUCtmpKApm4+t/2pzI=; b=aw9YL5yv7533MT/A0MIQdHhXSZrSLWECiMlJceE8YO9HQrb7C++Ed9Up88g3HW+C8q v7j7YQjUSUWyxstfnj1XioFqNvwtr2sSJWfj1pWgLlJCrY5QDTXWaEY4LLVsogNFeVzJ F1Q8HRzucws3iBGy0/8HT+8ak4E/rUeBA3c7/qFUOnXlCtls1DL1EQ0CKPpt/p7XrHGF 2t/Mf8Ir3Q8GFx8xafChTbuO/1FiybrkA7TUbwsPjNCSJcYv3TkZfO0SjEwN5Z8tLBwp alT6J03nNcA4K5gGWLeXbcwAMvkkXO5aR+ShUlNVHJemuzDEopY+wMgwCnXdeXVgGJA5 n8cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob14-20020a17090b390e00b0020d48e8ecc5si11127838pjb.115.2022.11.14.03.59.51; Mon, 14 Nov 2022 04:00:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236248AbiKNLio (ORCPT + 89 others); Mon, 14 Nov 2022 06:38:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236275AbiKNLid (ORCPT ); Mon, 14 Nov 2022 06:38:33 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5FBD3E6F; Mon, 14 Nov 2022 03:38:30 -0800 (PST) Received: from loongson.cn (unknown [10.20.42.77]) by gateway (Coremail) with SMTP id _____8Cxjdq1KHJjwOMGAA--.20508S3; Mon, 14 Nov 2022 19:38:29 +0800 (CST) Received: from loongson-PC.loongson.cn (unknown [10.20.42.77]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxTuCwKHJjCZMSAA--.50121S4; Mon, 14 Nov 2022 19:38:28 +0800 (CST) From: Liu Peibao To: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Huacai Chen , WANG Xuerui Cc: Jianmin Lv , Yinbo Zhu , wanghongliang , Liu Peibao , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: interrupt-controller: add yaml for LoongArch CPU interrupt controller Date: Mon, 14 Nov 2022 19:38:24 +0800 Message-Id: <20221114113824.1880-3-liupeibao@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221114113824.1880-1-liupeibao@loongson.cn> References: <20221114113824.1880-1-liupeibao@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxTuCwKHJjCZMSAA--.50121S4 X-CM-SenderInfo: xolx1vpled0qxorr0wxvrqhubq/1tbiAQAKCmNw3mQUVAAAso X-Coremail-Antispam: 1Uk129KBjvJXoW7CFy5Xr18Aw17Zw4fGF1kAFb_yoW8Ar4fpF W7CFsxWF40qF13Cws2ga40krnxZrnxCrn29an7tw47Gr1aga4UXay29F95JayrGr92qw17 Zw1Fq3W0q3W7JF7anT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bS8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26F4UJVW0owAa w2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2 jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262 kKe7AKxVWUAVWUtwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km 07C267AKxVWUXVWUAwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r 1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW8 JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r 1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1U YxBIdaVFxhVjvjDU0xZFpf9x07j2MKZUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Current LoongArch compatible CPUs support 14 CPU IRQs. We can describe how the 14 IRQs are wired to the platform's internal interrupt controller by devicetree. Signed-off-by: Liu Peibao --- .../loongarch,cpu-interrupt-controller.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongarch,cpu-interrupt-controller.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongarch,cpu-interrupt-controller.yaml b/Documentation/devicetree/bindings/interrupt-controller/loongarch,cpu-interrupt-controller.yaml new file mode 100644 index 000000000000..2a1cf885c99d --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongarch,cpu-interrupt-controller.yaml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/loongarch,cpu-interrupt-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LoongArch CPU Interrupt Controller + +maintainers: + - Liu Peibao + +properties: + compatible: + const: loongarch,cpu-interrupt-controller + + '#interrupt-cells': + const: 1 + + interrupt-controller: true + +additionalProperties: false + +required: + - compatible + - '#interrupt-cells' + - interrupt-controller + +examples: + - | + interrupt-controller { + compatible = "loongarch,cpu-interrupt-controller"; + #interrupt-cells = <1>; + interrupt-controller; + }; -- 2.20.1