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

Andy Shevchenko andy.shevchenko at gmail.com
Tue Dec 1 03:02:20 PST 2026


On Tue, Dec 1, 2026 at 12:42 PM Mika Westerberg
<mika.westerberg at linux.intel.com> wrote:
> On Mon, Nov 30, 2026 at 10:52:11PM +0100, Linus Walleij wrote:
> > On Fri, Nov 20, 2026 at 5:59 PM Shubham Paralikar
> > <shubham.paralikar at mediatek.com> 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.
> >
> > Interesting. It would be great if the ACPI experts (Andy, Mika) could
> > have a quick look at it at least.
>
> I looked at the pinctrl-mtk-acpi.c parts and one thing that stands out is
> the custom _DSD parsing. MediaTek really should be using the device
> property UUID but if that's not possible (e.g the systems are shipped out
> there already to customers) then you should add them to
> drivers/acpi/property.c::prp_guids[] table (as a separate patch) and then
> use the regular device property functions to parse it. Then you may
> possibly get rid of the pinctrl-mtk-acpi.c completely.

Thanks, Mika!
I would urge MediaTek to admit that they made a mistake with that and
they have to fix it in the next version of firmware / platform.


-- 
With Best Regards,
Andy Shevchenko



More information about the linux-arm-kernel mailing list