Re: [PATCH v4 0/1] pinctrl: mediatek: Add MT8901/MT8971 ACPI driver

From: Linus Walleij

Date: Mon Nov 30 2026 - 16:52:37 EST


Hi Shubham,

thanks for your patch!

On Fri, Nov 20, 2026 at 5:59 PM Shubham Paralikar
<shubham.paralikar@xxxxxxxxxxxx> wrote:

> MT8901 and MT8971 boot with ACPI firmware and both describe their
> GPIO/pinctrl controller with the same _HID, NVDA9221. The existing
> MediaTek Paris pinctrl drivers only probe from devicetree, so neither
> SoC gets pin control, GPIOs or EINT interrupts.
>
> This patch adds pinctrl-mtk-acpi, a small ACPI probe helper for Paris
> pin controllers, and two SoC drivers on top of it, pinctrl-mt8901 and
> pinctrl-mt8971. Each driver matches NVDA9221 and passes its own SoC
> data to the helper, which reads the "ChipId" from the controller's
> vendor _DSD and returns -ENODEV when the device belongs to the other
> SoC, so the matching driver binds.
>
> It also extends the shared Paris, common-v2 and EINT code for ACPI and
> for these SoCs: resources mapped by index, ACPI _AEI event interrupts,
> fixed-stride pin register layouts (MT8971), skip-listed EINTs (MT8971
> PROCHOT), wake-event EINTs, EINT-only virtual GPIOs and bus-hold bias.
>
> v4 reworks the driver structure following AngeloGioacchino's review of
> v3 and fixes the problems reported by the Sashiko AI review of v3. The
> full changelog is in the patch.
>
> Known issue: MT8971 suspend behaviour of EINT215 (PROCHOT, owned by
> firmware) is still under investigation.
>
> Build tested on arm64 with both drivers as modules and built-in, with
> W=1 for drivers/pinctrl/mediatek/.
>
> Shubham Paralikar (1):
> pinctrl: mediatek: Add MT8901/MT8971 ACPI driver

Interesting. It would be great if the ACPI experts (Andy, Mika) could
have a quick look at it at least.

I know Qualcomm have some pinctrl drivers probing from ACPI
so looping in Bartosz as well!

Yours,
Linus Walleij