mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Linus Walleij <linusw@kernel.org>
Cc: Shubham Paralikar <shubham.paralikar@mediatek.com>,
	Andy Shevchenko <andy@kernel.org>,
	Bartosz Golaszewski <brgl@kernel.org>,
	Sean Wang <sean.wang@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
	linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Arnab.Layek@mediatek.com, Fred-WY.Chen@mediatek.com
Subject: Re: [PATCH v4 0/1] pinctrl: mediatek: Add MT8901/MT8971 ACPI driver
Date: Tue, 1 Dec 2026 11:42:14 +0100	[thread overview]
Message-ID: <20261201104214.GX953667@black.igk.intel.com> (raw)
In-Reply-To: <CAD++jLn2znz5gRT9DENbzrnwD9ZaB6QaKAH0Zeao7Oe_uSrrJQ@mail.gmail.com>

Hi,

On Mon, Nov 30, 2026 at 10:52:11PM +0100, Linus Walleij wrote:
> Hi Shubham,
> 
> thanks for your patch!
> 
> On Fri, Nov 20, 2026 at 5:59 PM Shubham Paralikar
> <shubham.paralikar@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.
> >
> > 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 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.

  reply	other threads:[~2026-12-01 10:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 16:58 Shubham Paralikar
2026-11-20 16:58 ` [PATCH v4 1/1] " Shubham Paralikar
2026-11-23  9:13   ` Uwe Kleine-König
2026-11-30 21:52 ` [PATCH v4 0/1] " Linus Walleij
2026-12-01 10:42   ` Mika Westerberg [this message]
2026-12-01 11:02     ` Andy Shevchenko

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=20261201104214.GX953667@black.igk.intel.com \
    --to=mika.westerberg@linux.intel.com \
    --cc=Arnab.Layek@mediatek.com \
    --cc=Fred-WY.Chen@mediatek.com \
    --cc=andy@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=brgl@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=sean.wang@kernel.org \
    --cc=shubham.paralikar@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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®