From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B7E4606A32C for ; Tue, 1 Dec 2026 10:42:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=pjyDR7Rf; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=b9g3GAjB DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=OxJ6xvU91wTruVn7ZLmgZqRbi5KtzW6tNHpMNxSewbA=; b=pjyDR7Rf1G6dADJ5QEdQiqzd5J LvNi0fRtszOK6m9PAG2v8wu5YPr6FthtS20pI8nqbDYox0A4mt2rxHS5VGuj4FS9oHqkn9Q/HEaiZ aHWgSfZ9sjLiJqki83CWelJXmxec8CUZfbIp2nUyPWCC38o/Xph8aSnLdTSgbq1uuyOTpgBtKitaq mGrqWzPnEb6uXrLGCev3H+uX3OKPIbmMbVuZJiJaWg6D8qAMkrJoXOacPGFlDuD2pKx/vAuyXH/ZC /LCCSrNM2EBig1VAykgenLGcxoAqDaomSfDlIdbivSXrPjPNPZkpWzlx0dAGcVHEg17aEBuPY8ddv rdYMortA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYLJY-00000007RTl-0zRq; Tue, 01 Dec 2026 10:42:24 +0000 Received: from mgamail.intel.com ([192.198.163.10]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYLJT-00000007RSA-163I; Tue, 01 Dec 2026 10:42:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796121739; x=1827657739; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=OxJ6xvU91wTruVn7ZLmgZqRbi5KtzW6tNHpMNxSewbA=; b=b9g3GAjBRlwylQ3UYsWuEHoNsvwAF5rLv18vyFDfNsdiCWIEbW43M+e5 s8lsN8cf23WkO3iLrTBiKfiFAg5euwOTLoVk9UHGvK20b5zvW3cgqDZU9 f/kIFazBKp2ABpjfzDQMwcUuhLghZp8x9H3dDvdxda9F1aEN/HYDbank5 6NC42PoH35blEaAQL34aEqmSFwRRHBYxuNnqBwCfuA44HVHw8kAFybdHZ ejK1ordUtVvg0USRpZBWWCwPWa9H0XLCxb/QlS+kCyxazIARbUGIiu49j cTMyksjC97/vswD/exjRFeHySYRsMfvejp7KxNJdQGTRmjf17rqyzoNIR w==; X-CSE-ConnectionGUID: C35nvaESTh+EBHT610+mpg== X-CSE-MsgGUID: n76IV0dPQ5Cmrdckm55bvg== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4876710" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="4876710" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 02:42:18 -0800 X-CSE-ConnectionGUID: xphT8zp9So6P4TLoh0FvtQ== X-CSE-MsgGUID: bU1KtF4eTi+N/qq1uDka+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="13498452" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa006.fm.intel.com with ESMTP; 01 Dec 2026 02:42:16 -0800 Received: by black.igk.intel.com (Postfix, from userid 1001) id EC9DF98; Tue, 01 Dec 2026 11:42:14 +0100 (CET) Date: Tue, 1 Dec 2026 11:42:14 +0100 From: Mika Westerberg To: Linus Walleij Cc: Shubham Paralikar , Andy Shevchenko , Bartosz Golaszewski , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , 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 Message-ID: <20261201104214.GX953667@black.igk.intel.com> References: <20261120165908.3204369-1-shubham.paralikar@mediatek.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_024219_348838_9DB8BCEA X-CRM114-Status: GOOD ( 26.91 ) X-Spam-Score: -4.2 (----) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 > 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.