From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796121739; b=VqVQ3LulwznzYH8be9ZWYus6U2ithvkFXmpOFCX7j401MTabroT2j6cDZPznI8s6oN5l 3hAQ6fZHy+f9z7VVVtlIzWOFVIgqsewZO+zl9hD+6TgTd+eYgXoqH1v10vqbwe5UhCSi3 FTdtKeLKxfU1YyIu24AuCcy7QYsVejonJ3dVgogodCetNCXZG//cgNUAksTji/EOhYzpf EF5Gbs9kRR8M+Ba9Cdet7p9l/kTuex0WiUnDIwIvbfM88iEQR8+lxyV5LZOlOJ7qdbyq6 vq3pXg+00E/8peuAST9qO/5dfyLRl34orId+gI2yrmJc9zJlD35Wr3v3xtHp0F8Qk0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796121739; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; bh=OxJ6xvU91wTruVn7ZLmgZqRbi5KtzW6tNHpMNxSewbA=; b=ZloRQAkhyPDEenU+Gvh7G/hbS8LAXPlVuDh/t2TtKcOor6U9vIaxwZWEveI6ALWxaq/L VdZoknO9xwW6+tvNf4QinMnhInfHnYxxAe0O7p4Nu0vHULL7tlLpiP87WxqRRCSlDqESC rciy0mqoEOHu6lQO725lCaj0NOqPPWuW+mLCMkGeisLYS6E/rrrckGtdLGLRGhsV6sTpH rhS99rTMtPKzbODrLk2geVFnfb7Xeg8RQswSOzGoFY1UO1vUvoUogdEn6PdYbcXaXYzJt bR6yZBZIG27i8FUH3T0myC/7s7rla/Mf+5Scc2KKOirjLYv0XvMROQItSqxdoGZWv6A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=b9g3GAjB; arc=none smtp.remote-ip=192.198.163.10 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46583606A31A; Tue, 1 Dec 2026 10:42:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46583606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; 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; 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: BnTB5wSvRqCzmbY2GtDLMw== X-CSE-MsgGUID: WDBU5xRPQbS61Erj9qS5UQ== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4876712" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="4876712" 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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.