Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp650199rwr; Fri, 5 May 2023 03:00:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4X4E5S+nZSxTk83EwA32wEwHsdhDQBhfltrLGLSIBGIn4X3ZC3eB+mOMpBwuiAWm7ykiBG X-Received: by 2002:a05:6a00:1492:b0:643:53b6:d841 with SMTP id v18-20020a056a00149200b0064353b6d841mr1818780pfu.2.1683280816669; Fri, 05 May 2023 03:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683280816; cv=none; d=google.com; s=arc-20160816; b=RCybVisHNp96vIkDmWUskZ5QFTadu6xDTP8wnvgk+wMxAaoNAVak5odIMV2koYFUyM Hn+QXcWaYO1LJAJOtsZy93966g+/lsf7HvNSalfigfqZDxT+cP1RHcG0gtmUZFtoAVnZ 7tEs65nZ+u7hJCIrTxujxrbLy587KVg2dU2dfZqNF5HMMAsyyM+PoC7OnLuyw/XqTOit lyTf1TOXSp3iRUeXjEP9FbUbVd3QXCS5wJjgiZ12i1uRQEmPhLT6sGcwKq3hlNfiBPjU uhGQqAy46BOU9BefHuZJtFTYP6gdaHN2n34ph6saWJajYepyBkIdsqderOed1/moS7Va o4Vg== 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=uDbf0O6ZBzgPhTEJRt8M6c9vM0EmynP9RbOfA4NbS08=; b=BAykEt4JKyU7QF6Rh6tL1FIr6xv9DwrT59YkXRkH5kslPUnSRKIhSxkN9NKJsGUtH8 EO5iApqnp8Wt0nH0+4av9i7EbClzX5HdPxshploC07Q0f9soCKJ4OsVmEPk+RUlgVB3p AbBlnZ0s+hzwrPcE+Ux+aaRWnoyKMM2yjX1wolM/pzrn+xh2KxfqJLn/qqC4rkWRkNlX e8m9RXsszAQhTr39MrvuqiIZcg+mPpyn3jgDZxlfktUgBrUAlmx522iX8F3sci+G0HW5 DG/sV4rcj57exsDLDWhlr7KDRQqp2xDBzcMSsoqazbRMLlAYRxAVh87711OmrIJ5cBPj Ln3A== 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 y1-20020aa79ae1000000b0063b8f2e770esi1688313pfp.211.2023.05.05.03.00.03; Fri, 05 May 2023 03:00:16 -0700 (PDT) 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 S231842AbjEEJrm (ORCPT + 99 others); Fri, 5 May 2023 05:47:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231841AbjEEJre (ORCPT ); Fri, 5 May 2023 05:47:34 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7486019401; Fri, 5 May 2023 02:47:32 -0700 (PDT) Received: from loongson.cn (unknown [112.20.110.102]) by gateway (Coremail) with SMTP id _____8Cx9eiz0FRkVSQFAA--.8471S3; Fri, 05 May 2023 17:47:31 +0800 (CST) Received: from localhost.localdomain (unknown [112.20.110.102]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxKL2u0FRkQKZLAA--.7843S3; Fri, 05 May 2023 17:47:29 +0800 (CST) From: Binbin Zhou To: Huacai Chen , WANG Xuerui , Jiaxun Yang , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski Cc: Jianmin Lv , Huacai Chen , linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, devicetree@vger.kernel.org, loongson-kernel@lists.loongnix.cn, Binbin Zhou , Rob Herring Subject: [PATCH V5 1/2] dt-bindings: interrupt-controller: Add Loongson EIOINTC Date: Fri, 5 May 2023 17:46:48 +0800 Message-Id: <4369959615eda101e612c450b8974d76ce7e8821.1683279769.git.zhoubinbin@loongson.cn> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxKL2u0FRkQKZLAA--.7843S3 X-CM-SenderInfo: p2kr3uplqex0o6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBjvJXoW7CF4kCFWfGr1DAry8CF4UJwb_yoW8ury3pF W7CanxWF40qF13A39xKFy0k3W5ZrZ8AwnrCws7A3yUtr9rKa4jqr4akF95J3W3Cr97Xa42 vFyF93W8KasrJaUanT9S1TB71UUUUjDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bS8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26F4UJVW0owAa w2AFwI0_JF0_Jw1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2 jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262 kKe7AKxVWUtVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km 07C267AKxVWUAVWUtwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r 1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW8 JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r 1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1U YxBIdaVFxhVjvjDU0xZFpf9x07jr9NsUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Add Loongson Extended I/O Interrupt controller binding with DT schema format using json-schema. Signed-off-by: Binbin Zhou Reviewed-by: Rob Herring --- .../loongson,eiointc.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,eiointc.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongson,eiointc.yaml b/Documentation/devicetree/bindings/interrupt-controller/loongson,eiointc.yaml new file mode 100644 index 000000000000..393c128a41d8 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,eiointc.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/loongson,eiointc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson Extended I/O Interrupt Controller + +maintainers: + - Binbin Zhou + +description: | + This interrupt controller is found on the Loongson-3 family chips and + Loongson-2K series chips and is used to distribute interrupts directly to + individual cores without forwarding them through the HT's interrupt line. + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +properties: + compatible: + enum: + - loongson,ls2k0500-eiointc + - loongson,ls2k2000-eiointc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - '#interrupt-cells' + +unevaluatedProperties: false + +examples: + - | + eiointc: interrupt-controller@1fe11600 { + compatible = "loongson,ls2k0500-eiointc"; + reg = <0x1fe10000 0x10000>; + + interrupt-controller; + #interrupt-cells = <1>; + + interrupt-parent = <&cpuintc>; + interrupts = <3>; + }; + +... -- 2.39.1