From patchwork Fri Nov 18 10:06:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 1898 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp104349wrr; Fri, 18 Nov 2022 02:15:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf5rLwOjM8AloUw5dXkX3Lvlwjeu/Uwu6NOjiwYyC33KZ2TWQygwC+nhe+fAQtgXW+C5LUqV X-Received: by 2002:a17:907:c081:b0:78b:5182:7ffa with SMTP id st1-20020a170907c08100b0078b51827ffamr5307950ejc.244.1668766540757; Fri, 18 Nov 2022 02:15:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668766540; cv=none; d=google.com; s=arc-20160816; b=nQiGRqiUAGjGgd1RX4qXjegzYc8Kf8PZ9XQ8ZWeZBSk7sFop9BUIfSvuymgGf/ERg+ T55yH9yVtS01phHvOUORsAGBr1X1OJdSinkmUmWmfKXwRLkG03gnLyH/kR+5VG9hFblC H1myJ9vQ+fNb8I0ShGc4BJfFhJnA6KuDcETY7YsQGBTwWL9TQEobqiygPJ4C5qXHa0w9 20rdZxkTUrshm42ye4U+EWOloGMQFRGUPfDhF763HQRJb6wNYu2fvCupNJM22V5F/oKL uhhw102djuJ4tDdTCUPcL7pN4geuW9J3nwPc8pXPP5gxgZeN4UpGGvuNhORb/ymsuUDK waSw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=OnvI20sHujXOUhD95iGzttvd6aewDqGbx7A4jm3vXKc=; b=my9qHfFw2MRaICNIsASIfEDQSTiCpxK47uD6WkZy267Irz84W32I5NXxjO/mLcgD8k kpMr5I2Rqe24jPRPlZiXnhxkDYbIxu6uqhBKSfR0P/Fb/+8knC/lxdhBQXvTIUrE/X4x taFJgjdzBIXrzM4jzLdGYZFlq/Dcx1tHIQZyJzUZeIxge5hWHOSHoqtkZ6DLFUukEn1N ZNOgcbkjD8WPI81HA3hb1bg+naOfOCG9//5w0t4uFntYooX73s7SOTZvxokkhJ2uEKts 2FY6HjoVEHc4v81wafLr+8SBXQd+fvCIXWezkuJeGyUQtlWtzksdxxrHWzQuZLz/3oCq eH+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KfO8rte2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020aa7d5cb000000b00462e7873c10si2567332eds.337.2022.11.18.02.15.14; Fri, 18 Nov 2022 02:15:40 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=KfO8rte2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241918AbiKRKHL (ORCPT + 99 others); Fri, 18 Nov 2022 05:07:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234664AbiKRKGw (ORCPT ); Fri, 18 Nov 2022 05:06:52 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0562C8FB0C; Fri, 18 Nov 2022 02:06:49 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id D3C556602A94; Fri, 18 Nov 2022 10:06:47 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1668766008; bh=gNMF9FUnsHl1tClZCnynz5bAOkfDS1T9IfVFHk+eg0A=; h=From:To:Cc:Subject:Date:From; b=KfO8rte2j+APGO/WGZA16lqXuuA0MD8OW+xMTmUBmaL53n1QaAdsRbFqVLeTL5V3O gFrCylI/34JWH5AbcTFEfNMYOnad+pNVBXssX8KhfsBPIKPplesXF+4apIDn2LZVjv tGGE8fsPwcYj5IGG5DzUtD3tKDWw8uBhrwrTDt0J/zaXvfu8aYInqcdlXAPhYPwGqp N4fmsHCawQf+PKkbBsCbFCMANdGhPRaPPqsF4JtWk+nPjjcfxulYznG6WGVkSQl/+j 2C74Zmm5/Ix/34qH2hPL561OWzGPAe7y1ze9kadkFVDrgWd7I3L5nRlHqzoR1MqZAE gDYZyF+K+pbAw== From: AngeloGioacchino Del Regno To: tglx@linutronix.de Cc: maz@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, youlin.pei@mediatek.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, AngeloGioacchino Del Regno Subject: [PATCH v1 0/4] MediaTek CIRQ: new register layout and schema Date: Fri, 18 Nov 2022 11:06:35 +0100 Message-Id: <20221118100639.33704-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749828543901247561?= X-GMAIL-MSGID: =?utf-8?q?1749828543901247561?= On newer SoCs (like MT8192/95 and also other non-chromebook chips), the MediaTek CIRQ controller has a new register layout: this series adds some more flexibility to the irq-mtk-cirq driver, allowing to select the register layout based on a SoC-specific compatible. While at it, I've also performed a schema conversion .. because why not. This was tested on MT8173 Elm, MT8192 Asurada, MT8195 Tomato (where the latter require devicetree work to actually make use of the CIRQ, not included in this series). AngeloGioacchino Del Regno (4): dt-bindings: interrupt-controller: mediatek,cirq: Migrate to dt schema dt-bindings: interrupt-controller: mediatek,cirq: Document MT8192 irqchip: irq-mtk-cirq: Move register offsets to const array irqchip: irq-mtk-cirq: Add support for System CIRQ on MT8192 .../interrupt-controller/mediatek,cirq.txt | 33 -------- .../mediatek,mtk-cirq.yaml | 71 ++++++++++++++++ drivers/irqchip/irq-mtk-cirq.c | 81 ++++++++++++++----- 3 files changed, 134 insertions(+), 51 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,mtk-cirq.yaml