From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 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 <angelogioacchino.delregno@collabora.com> Subject: [PATCH v3 0/4] MediaTek CIRQ: new register layout and schema Date: Mon, 28 Nov 2022 10:22:13 +0100 [thread overview] Message-ID: <20221128092217.36552-1-angelogioacchino.delregno@collabora.com> (raw) 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 (both MT8192 and MT8195 require devicetree work to actually make use of the CIRQ, not included in this series - while MT8173 has it already). Changes in v3: - Renamed mtk_cirq_regs_xxx to mtk_cirq_regoffs_xxx Changes in v2: - Used the right base patches, as something went wrong in v1 (sorry!) - [1/4] Fixed items for mediatek,ext-irq-range - [3/4] Renamed `regs` to `offsets`, as it's effectively a register offsets (and not registers) array - [3/4] Added mtk_cirq_reg() accessor - [3/4] Added all supported compatible strings to of_device_id - [3/4] Fixed mtk_cirq_reg_index enumeration to not assign 0 to the first index (as it's 0 by default), removed meaningless CIRQ_MAX index - [4/4] Now this patch only adds the `v2` offsets and a compatible string "mediatek,mt8192-cirq". 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 | 68 +++++++++++++ drivers/irqchip/irq-mtk-cirq.c | 95 +++++++++++++++---- 3 files changed, 146 insertions(+), 50 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,mtk-cirq.yaml -- 2.38.1
WARNING: multiple messages have this Message-ID (diff)
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 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 <angelogioacchino.delregno@collabora.com> Subject: [PATCH v3 0/4] MediaTek CIRQ: new register layout and schema Date: Mon, 28 Nov 2022 10:22:13 +0100 [thread overview] Message-ID: <20221128092217.36552-1-angelogioacchino.delregno@collabora.com> (raw) 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 (both MT8192 and MT8195 require devicetree work to actually make use of the CIRQ, not included in this series - while MT8173 has it already). Changes in v3: - Renamed mtk_cirq_regs_xxx to mtk_cirq_regoffs_xxx Changes in v2: - Used the right base patches, as something went wrong in v1 (sorry!) - [1/4] Fixed items for mediatek,ext-irq-range - [3/4] Renamed `regs` to `offsets`, as it's effectively a register offsets (and not registers) array - [3/4] Added mtk_cirq_reg() accessor - [3/4] Added all supported compatible strings to of_device_id - [3/4] Fixed mtk_cirq_reg_index enumeration to not assign 0 to the first index (as it's 0 by default), removed meaningless CIRQ_MAX index - [4/4] Now this patch only adds the `v2` offsets and a compatible string "mediatek,mt8192-cirq". 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 | 68 +++++++++++++ drivers/irqchip/irq-mtk-cirq.c | 95 +++++++++++++++---- 3 files changed, 146 insertions(+), 50 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,mtk-cirq.yaml -- 2.38.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-11-28 9:22 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-28 9:22 AngeloGioacchino Del Regno [this message] 2022-11-28 9:22 ` [PATCH v3 0/4] MediaTek CIRQ: new register layout and schema AngeloGioacchino Del Regno 2022-11-28 9:22 ` [PATCH v3 1/4] dt-bindings: interrupt-controller: mediatek,cirq: Migrate to dt schema AngeloGioacchino Del Regno 2022-11-28 9:22 ` AngeloGioacchino Del Regno 2022-11-28 11:53 ` [irqchip: irq/irqchip-next] " irqchip-bot for AngeloGioacchino Del Regno 2022-11-29 16:24 ` [PATCH v3 1/4] " Alexandre Mergnat 2022-11-29 16:24 ` Alexandre Mergnat 2022-11-28 9:22 ` [PATCH v3 2/4] dt-bindings: interrupt-controller: mediatek,cirq: Document MT8192 AngeloGioacchino Del Regno 2022-11-28 9:22 ` AngeloGioacchino Del Regno 2022-11-28 11:53 ` [irqchip: irq/irqchip-next] " irqchip-bot for AngeloGioacchino Del Regno 2022-11-28 9:22 ` [PATCH v3 3/4] irqchip: irq-mtk-cirq: Move register offsets to const array AngeloGioacchino Del Regno 2022-11-28 9:22 ` AngeloGioacchino Del Regno 2022-11-28 11:53 ` [irqchip: irq/irqchip-next] irqchip/irq-mtk-cirq: " irqchip-bot for AngeloGioacchino Del Regno 2022-11-28 9:22 ` [PATCH v3 4/4] irqchip: irq-mtk-cirq: Add support for System CIRQ on MT8192 AngeloGioacchino Del Regno 2022-11-28 9:22 ` AngeloGioacchino Del Regno 2022-11-28 11:53 ` [irqchip: irq/irqchip-next] irqchip/irq-mtk-cirq: " irqchip-bot for AngeloGioacchino Del Regno
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221128092217.36552-1-angelogioacchino.delregno@collabora.com \ --to=angelogioacchino.delregno@collabora.com \ --cc=devicetree@vger.kernel.org \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mediatek@lists.infradead.org \ --cc=matthias.bgg@gmail.com \ --cc=maz@kernel.org \ --cc=robh+dt@kernel.org \ --cc=tglx@linutronix.de \ --cc=youlin.pei@mediatek.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.