lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250426231127.190090-1-ariel@simulevski.at>
Date: Sun, 27 Apr 2025 01:11:27 +0200
From: Ariel Simulevski <ariel@...ulevski.at>
To: mika.westerberg@...ux.intel.com,
	andy@...nel.org,
	linus.walleij@...aro.org
Cc: linux-gpio@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Ariel Simulevski <ariel@...ulevski.at>,
	Guido Trentalancia <guido2022@...ntalancia.com>
Subject: [PATCH] pinctrl: alderlake: Add missing I2C2/I2C3/I2C4 pin definitions

The PixArt I2C touchpad (PIXA3848) found on several Alder Lake
laptops is not detected unless the Tiger Lake pinctrl driver is used.

This patch adds missing I2C2, I2C3, and I2C4 pin definitions
to the Alder Lake pinctrl driver, based on Tiger Lake mappings,
with corrected pin numbering and proper community assignment.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=220056
Co-developed-by: Guido Trentalancia <guido2022@...ntalancia.com>
Signed-off-by: Ariel Simulevski <ariel@...ulevski.at>
Signed-off-by: Guido Trentalancia <guido2022@...ntalancia.com>
---
 drivers/pinctrl/intel/pinctrl-alderlake.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/pinctrl/intel/pinctrl-alderlake.c b/drivers/pinctrl/intel/pinctrl-alderlake.c
index 108eac205aa9..bf0d910a7c2a 100644
--- a/drivers/pinctrl/intel/pinctrl-alderlake.c
+++ b/drivers/pinctrl/intel/pinctrl-alderlake.c
@@ -677,6 +677,14 @@ static const struct pinctrl_pin_desc adls_pins[] = {
 	PINCTRL_PIN(301, "JTAG_TCK"),
 	PINCTRL_PIN(302, "DBG_PMODE"),
 	PINCTRL_PIN(303, "CPU_TRSTB"),
+
+	/* Missing I2C buses based on TigerLake: fixes #220056 */
+	PINCTRL_PIN(79, "I2C2_SDA"),
+	PINCTRL_PIN(80, "I2C2_SCL"),
+	PINCTRL_PIN(81, "I2C3_SDA"),
+	PINCTRL_PIN(82, "I2C3_SCL"),
+	PINCTRL_PIN(83, "I2C4_SDA"),
+	PINCTRL_PIN(84, "I2C4_SCL"),
 };
 
 static const struct intel_padgroup adls_community0_gpps[] = {
@@ -709,6 +717,7 @@ static const struct intel_padgroup adls_community4_gpps[] = {
 static const struct intel_padgroup adls_community5_gpps[] = {
 	ADL_GPP(0, 270, 294, 448),			/* GPP_D */
 	ADL_GPP(1, 295, 303, INTEL_GPIO_BASE_NOMAP),	/* JTAG */
+	ADL_GPP(2, 304, 309, INTEL_GPIO_BASE_NOMAP),	/* I2C fix #220056 */
 };
 
 static const struct intel_community adls_communities[] = {
@@ -716,7 +725,7 @@ static const struct intel_community adls_communities[] = {
 	ADL_S_COMMUNITY(1, 95, 150, adls_community1_gpps),
 	ADL_S_COMMUNITY(2, 151, 199, adls_community3_gpps),
 	ADL_S_COMMUNITY(3, 200, 269, adls_community4_gpps),
-	ADL_S_COMMUNITY(4, 270, 303, adls_community5_gpps),
+	ADL_S_COMMUNITY(4, 270, 309, adls_community5_gpps),
 };
 
 static const struct intel_pinctrl_soc_data adls_soc_data = {
-- 
2.49.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ