From patchwork Wed Apr 19 07:17:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binbin Zhou X-Patchwork-Id: 675281 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A888C6FD18 for ; Wed, 19 Apr 2023 07:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231714AbjDSHRe (ORCPT ); Wed, 19 Apr 2023 03:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbjDSHRd (ORCPT ); Wed, 19 Apr 2023 03:17:33 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CEA2E46B4; Wed, 19 Apr 2023 00:17:31 -0700 (PDT) Received: from loongson.cn (unknown [112.20.110.113]) by gateway (Coremail) with SMTP id _____8DxUOWKlT9kEtEeAA--.48173S3; Wed, 19 Apr 2023 15:17:30 +0800 (CST) Received: from localhost.localdomain (unknown [112.20.110.113]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxWb2JlT9koa8uAA--.54188S2; Wed, 19 Apr 2023 15:17: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, linux-mips@vger.kernel.org, loongarch@lists.linux.dev, devicetree@vger.kernel.org, loongson-kernel@lists.loongnix.cn, Binbin Zhou Subject: [PATCH V3 0/2] irqchip: loongson-eiointc: Add DT init support Date: Wed, 19 Apr 2023 15:17:04 +0800 Message-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0I7IYx2IY67AKxVWU CVW8JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r 1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUv cSsGvfC2KfnxnUUI43ZEXa7IU8Dl1DUUUUU== Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add EIOINTC irqchip DT support, which is needed for Loongson chips that are DT-based and support EIOINTC, such as the Loongson-2K0500 chip. --- V3: - patch(1/2) - Drop quotes; - Drop interrupt-names; - Drop loongson,eio-num-vecs; - SoC-based compatibles instead of version-based compatibles. - patch (2/2) - irq_set_handler_data() is used to get parent irq form DTS; - Set vec_count by judging compatibles. V2: - Add the dt-bindings file (1/2); - patch(2/2) - Remove forgotten debugging messages; - Change compatible string name to "loongson,eiointc-1.0". Binbin Zhou (2): dt-bindings: interrupt-controller: Add Loongson EIOINTC irqchip/loongson-eiointc: Add DT init support .../loongson,eiointc.yaml | 74 ++++++++++ drivers/irqchip/irq-loongson-eiointc.c | 129 +++++++++++++----- 2 files changed, 169 insertions(+), 34 deletions(-) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,eiointc.yaml