[PATCH 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E

From: Gary Wang

Date: Mon Nov 23 2026 - 10:16:56 EST


Add i2c0,i2c1,pwm0,uart0,spi0 pin groups & functions in mtlp_soc_data for
device id INTC105E.
The pinctrl-upboard driver set the correct pin function corresponding to
these data.
---
drivers/pinctrl/intel/pinctrl-meteorlake.c | 32 ++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)

diff --git a/drivers/pinctrl/intel/pinctrl-meteorlake.c b/drivers/pinctrl/intel/pinctrl-meteorlake.c
index 6fefee7827ed..870658eac91d 100644
--- a/drivers/pinctrl/intel/pinctrl-meteorlake.c
+++ b/drivers/pinctrl/intel/pinctrl-meteorlake.c
@@ -339,6 +339,34 @@ static const struct pinctrl_pin_desc mtlp_pins[] = {
PINCTRL_PIN(288, "vI2S2_RXD_2"),
};

+static const unsigned int mtlp_i2c0_pins[] = { 122, 123 };
+static const unsigned int mtlp_i2c1_pins[] = { 124, 125 };
+static const unsigned int mtlp_pwm0_pins[] = { 208 };
+static const unsigned int mtlp_uart0_pins[] = { 111, 112, 113, 114 };
+static const unsigned int mtlp_spi0_pins[] = { 88, 89, 90, 91 };
+
+static const struct intel_pingroup mtlp_groups[] = {
+ PIN_GROUP("i2c0_grp", mtlp_i2c0_pins, 1),
+ PIN_GROUP("i2c1_grp", mtlp_i2c1_pins, 1),
+ PIN_GROUP("pwm0_grp", mtlp_pwm0_pins, 2),
+ PIN_GROUP("uart0_grp", mtlp_uart0_pins, 1),
+ PIN_GROUP("spi0_grp", mtlp_spi0_pins, 5),
+};
+
+static const char * const mtlp_i2c0_groups[] = { "i2c0_grp" };
+static const char * const mtlp_i2c1_groups[] = { "i2c1_grp" };
+static const char * const mtlp_pwm0_groups[] = { "pwm0_grp" };
+static const char * const mtlp_uart0_groups[] = { "uart0_grp" };
+static const char * const mtlp_spi0_groups[] = { "spi0_grp" };
+
+static const struct intel_function mtlp_functions[] = {
+ FUNCTION("i2c0", mtlp_i2c0_groups),
+ FUNCTION("i2c1", mtlp_i2c1_groups),
+ FUNCTION("pwm0", mtlp_pwm0_groups),
+ FUNCTION("uart0", mtlp_uart0_groups),
+ FUNCTION("spi0", mtlp_spi0_groups),
+};
+
static const struct intel_padgroup mtlp_community0_gpps[] = {
INTEL_GPP(0, 0, 4, 0), /* CPU */
INTEL_GPP(1, 5, 28, 32), /* GPP_V */
@@ -380,6 +408,10 @@ static const struct intel_community mtlp_communities[] = {
static const struct intel_pinctrl_soc_data mtlp_soc_data = {
.pins = mtlp_pins,
.npins = ARRAY_SIZE(mtlp_pins),
+ .groups = mtlp_groups,
+ .ngroups = ARRAY_SIZE(mtlp_groups),
+ .functions = mtlp_functions,
+ .nfunctions = ARRAY_SIZE(mtlp_functions),
.communities = mtlp_communities,
.ncommunities = ARRAY_SIZE(mtlp_communities),
};

--
2.43.0