Skip to contentSkip to conversation

pinctrl: alderlake: Add missing I2C2/I2C3/I2C4 pin definitions

PATCH In review Ariel Simulevski 2 participants 2 messages Apr 26, 2025 – Apr 27, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/pinctrl/intel/pinctrl-alderlake.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
drivers/pinctrl/intel/pinctrl-alderlake.c +10 -1
index 108eac205aa9..bf0d910a7c2a 100644
@@ -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 = {
Signature · 1 line
2.49.0
#1 lore raw
Quoted 7 lines · Ariel Simulevski

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.

Thanks for the patch and report. Why can't the Tigerlake driver be used?

Signature · 2 lines
With Best Regards,
Andy Shevchenko