* [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E
@ 2026-11-24 17:10 Gary Wang
2026-11-24 17:10 ` [PATCH v2 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055 Gary Wang
` (5 more replies)
0 siblings, 6 replies; 11+ messages in thread
From: Gary Wang @ 2026-11-24 17:10 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, BillyChou, linux-gpio,
linux-kernel, Gary Wang, stable
Add missing groups and functions in Tigerlake & Alderlake & Meteorlake
for INTC1055 & INTC1057 & INTC105E.
Add support "UP Xtreme ARL","UP Xtreme i14","UP Squared Pro 7000",
"UP Squared i12","UP 7000".
Fix pinmux-select set CPLD GPIO OUT not function mode for I2C pins
on the AANT0F04.
The pinctrl-upboard is provide additional driving power & pin mux function
through native SOC pins->FPGA/CPLD->hat pins for flexable board level
applications. it's probe from ACPI device id AANT0F01 & AANT0F04.
To: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Andy Shevchenko <andy@kernel.org>
To: Linus Walleij <linusw@kernel.org>
To: Thomas Richard <thomas.richard@bootlin.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Daniele Cleri <danielecleri@aaeon.eu>
Cc: JunYingLai <junyinglai@aaeon.com.tw>
Cc: Louis Chen <louischen@aaeon.com.tw>
Cc: BillyChou <BillyChou@aaeon.com.tw>
Cc: linux-gpio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Gary Wang <is0124@gmail.com>
Changes in v2:
- Add missing SoB.
- Fix CPLD I2C pinmux-select by good method and update commit message.
- Link to v1: https://lore.kernel.org/r/20261123-upboard-pinctrl-add-intc1057-intc105e-support-v1-2-f2322a91686d@gmail.com
---
Gary Wang (5):
pinctrl: tigerlake: add ish_uart groups and functions for INTC1055
pinctrl: alderlake: add some groups and functions for INTC1057
pinctrl: meteorlake: add some groups and functions for INTC105E
pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support
drivers/pinctrl/intel/pinctrl-alderlake.c | 40 +++++++++++
drivers/pinctrl/intel/pinctrl-meteorlake.c | 32 +++++++++
drivers/pinctrl/intel/pinctrl-tigerlake.c | 4 ++
drivers/pinctrl/pinctrl-upboard.c | 108 ++++++++++++++++++++++++++---
4 files changed, 176 insertions(+), 8 deletions(-)
---
base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
change-id: 20261124-upboard-pinctrl-add-intc1057-intc105e-support-e87b40e13654
Best regards,
--
Gary Wang <is0124@gmail.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v2 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055
2026-11-24 17:10 [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
@ 2026-11-24 17:10 ` Gary Wang
2026-11-24 17:10 ` [PATCH v2 2/5] pinctrl: alderlake: add some groups and functions for INTC1057 Gary Wang
` (4 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Gary Wang @ 2026-11-24 17:10 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, BillyChou, linux-gpio,
linux-kernel, Gary Wang
Add ish_uart pin groups & functions in tgllp_soc_data for device id
INTC1055.
The pinctrl-upboard driver set the correct pin function corresponding
to these data.
Signed-off-by: Gary Wang <is0124@gmail.com>
---
drivers/pinctrl/intel/pinctrl-tigerlake.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/pinctrl/intel/pinctrl-tigerlake.c b/drivers/pinctrl/intel/pinctrl-tigerlake.c
index 93234f4a9bd0..80c847875faf 100644
--- a/drivers/pinctrl/intel/pinctrl-tigerlake.c
+++ b/drivers/pinctrl/intel/pinctrl-tigerlake.c
@@ -333,6 +333,7 @@ static const unsigned int tgllp_i2c0_pins[] = { 5, 6 };
static const unsigned int tgllp_i2c1_pins[] = { 7, 8 };
static const unsigned int tgllp_pwm0_pins[] = { 99 };
static const unsigned int tgllp_uart1_pins[] = { 85, 86, 87, 88 };
+static const unsigned int tgllp_ish_uart_pins[] = { 112, 113, 114, 115 };
static const unsigned int tgllp_ssp2_pins[] = { 108, 109, 110, 111 };
static const struct intel_pingroup tgllp_groups[] = {
@@ -340,6 +341,7 @@ static const struct intel_pingroup tgllp_groups[] = {
PIN_GROUP("i2c1_grp", tgllp_i2c1_pins, 2),
PIN_GROUP("pwm0_grp", tgllp_pwm0_pins, 2),
PIN_GROUP("uart1_grp", tgllp_uart1_pins, 2),
+ PIN_GROUP("ish_uart_grp", tgllp_ish_uart_pins, 2),
PIN_GROUP("ssp2_grp", tgllp_ssp2_pins, 7),
};
@@ -347,6 +349,7 @@ static const char * const tgllp_i2c0_groups[] = { "i2c0_grp" };
static const char * const tgllp_i2c1_groups[] = { "i2c1_grp" };
static const char * const tgllp_pwm0_groups[] = { "pwm0_grp" };
static const char * const tgllp_uart1_groups[] = { "uart1_grp" };
+static const char * const tgllp_ish_uart_groups[] = { "ish_uart_grp" };
static const char * const tgllp_ssp2_groups[] = { "ssp2_grp" };
static const struct intel_function tgllp_functions[] = {
@@ -354,6 +357,7 @@ static const struct intel_function tgllp_functions[] = {
FUNCTION("i2c1", tgllp_i2c1_groups),
FUNCTION("pwm0", tgllp_pwm0_groups),
FUNCTION("uart1", tgllp_uart1_groups),
+ FUNCTION("ish_uart", tgllp_ish_uart_groups),
FUNCTION("ssp2", tgllp_ssp2_groups),
};
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 2/5] pinctrl: alderlake: add some groups and functions for INTC1057
2026-11-24 17:10 [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
2026-11-24 17:10 ` [PATCH v2 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055 Gary Wang
@ 2026-11-24 17:10 ` Gary Wang
2026-11-24 17:10 ` [PATCH v2 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E Gary Wang
` (3 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Gary Wang @ 2026-11-24 17:10 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, BillyChou, linux-gpio,
linux-kernel, Gary Wang
Add ish_i2c0,ish_i2c1,i2c0,i2c1,pwm0,uart0,ish_spi pin groups & functions
in adln_soc_data for device id INTC1057.
The pinctrl-upboard driver set the correct pin function corresponding to
these data.
Signed-off-by: Gary Wang <is0124@gmail.com>
---
drivers/pinctrl/intel/pinctrl-alderlake.c | 40 +++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/drivers/pinctrl/intel/pinctrl-alderlake.c b/drivers/pinctrl/intel/pinctrl-alderlake.c
index 415bc0a16957..d3bdd727ced2 100644
--- a/drivers/pinctrl/intel/pinctrl-alderlake.c
+++ b/drivers/pinctrl/intel/pinctrl-alderlake.c
@@ -306,6 +306,42 @@ static const struct pinctrl_pin_desc adln_pins[] = {
PINCTRL_PIN(256, "GPP_R_7"),
};
+static const unsigned int adln_ish_i2c0_pins[] = { 5, 6 };
+static const unsigned int adln_ish_i2c1_pins[] = { 7, 8 };
+static const unsigned int adln_i2c0_pins[] = { 99, 100 };
+static const unsigned int adln_i2c1_pins[] = { 101, 102 };
+static const unsigned int adln_pwm0_pins[] = { 119 };
+static const unsigned int adln_uart0_pins[] = { 105, 106, 107, 108 };
+static const unsigned int adln_ish_spi_pins[] = { 128, 129, 130, 131 };
+
+static const struct intel_pingroup adln_groups[] = {
+ PIN_GROUP("ish_i2c0_grp", adln_ish_i2c0_pins, 2),
+ PIN_GROUP("ish_i2c1_grp", adln_ish_i2c1_pins, 2),
+ PIN_GROUP("i2c0_grp", adln_i2c0_pins, 1),
+ PIN_GROUP("i2c1_grp", adln_i2c1_pins, 1),
+ PIN_GROUP("pwm0_grp", adln_pwm0_pins, 2),
+ PIN_GROUP("uart0_grp", adln_uart0_pins, 2),
+ PIN_GROUP("ish_spi_grp", adln_ish_spi_pins, 7),
+};
+
+static const char * const adln_ish_i2c0_groups[] = { "ish_i2c0_grp" };
+static const char * const adln_ish_i2c1_groups[] = { "ish_i2c1_grp" };
+static const char * const adln_i2c0_groups[] = { "i2c0_grp" };
+static const char * const adln_i2c1_groups[] = { "i2c1_grp" };
+static const char * const adln_pwm0_groups[] = { "pwm0_grp" };
+static const char * const adln_uart0_groups[] = { "uart0_grp" };
+static const char * const adln_ish_spi_groups[] = { "ish_spi_grp" };
+
+static const struct intel_function adln_functions[] = {
+ FUNCTION("ish_i2c0", adln_ish_i2c0_groups),
+ FUNCTION("ish_i2c1", adln_ish_i2c1_groups),
+ FUNCTION("i2c0", adln_i2c0_groups),
+ FUNCTION("i2c1", adln_i2c1_groups),
+ FUNCTION("pwm0", adln_pwm0_groups),
+ FUNCTION("uart0", adln_uart0_groups),
+ FUNCTION("ish_spi", adln_ish_spi_groups),
+};
+
static const struct intel_padgroup adln_community0_gpps[] = {
INTEL_GPP(0, 0, 25, 0), /* GPP_B */
INTEL_GPP(1, 26, 41, 32), /* GPP_T */
@@ -341,6 +377,10 @@ static const struct intel_community adln_communities[] = {
static const struct intel_pinctrl_soc_data adln_soc_data = {
.pins = adln_pins,
.npins = ARRAY_SIZE(adln_pins),
+ .groups = adln_groups,
+ .ngroups = ARRAY_SIZE(adln_groups),
+ .functions = adln_functions,
+ .nfunctions = ARRAY_SIZE(adln_functions),
.communities = adln_communities,
.ncommunities = ARRAY_SIZE(adln_communities),
};
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E
2026-11-24 17:10 [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
2026-11-24 17:10 ` [PATCH v2 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055 Gary Wang
2026-11-24 17:10 ` [PATCH v2 2/5] pinctrl: alderlake: add some groups and functions for INTC1057 Gary Wang
@ 2026-11-24 17:10 ` Gary Wang
2026-11-24 17:10 ` [PATCH v2 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
` (2 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Gary Wang @ 2026-11-24 17:10 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, BillyChou, linux-gpio,
linux-kernel, Gary Wang
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.
Signed-off-by: Gary Wang <is0124@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
2026-11-24 17:10 [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
` (2 preceding siblings ...)
2026-11-24 17:10 ` [PATCH v2 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E Gary Wang
@ 2026-11-24 17:10 ` Gary Wang
2026-11-24 17:22 ` sashiko-bot
2026-11-24 17:31 ` Andy Shevchenko
2026-11-24 17:10 ` [PATCH v2 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support Gary Wang
2026-11-24 17:29 ` [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Andy Shevchenko
5 siblings, 2 replies; 11+ messages in thread
From: Gary Wang @ 2026-11-24 17:10 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, BillyChou, linux-gpio,
linux-kernel, Gary Wang, stable
The CPLD I2C pin mode setting through pinmux-select is not correct.
Should be set UPBOARD_PIN_MODE_FUNCTION on AANT0F04 devices.
CC: stable@vger.kernel.org
Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
Signed-off-by: Gary Wang <is0124@gmail.com>
---
drivers/pinctrl/pinctrl-upboard.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-upboard.c b/drivers/pinctrl/pinctrl-upboard.c
index b9af6dd93c34..090316349331 100644
--- a/drivers/pinctrl/pinctrl-upboard.c
+++ b/drivers/pinctrl/pinctrl-upboard.c
@@ -33,7 +33,7 @@
#include "pinmux.h"
enum upboard_pin_mode {
- UPBOARD_PIN_MODE_FUNCTION,
+ UPBOARD_PIN_MODE_FUNCTION = 1,
UPBOARD_PIN_MODE_GPIO_IN,
UPBOARD_PIN_MODE_GPIO_OUT,
UPBOARD_PIN_MODE_DISABLED,
@@ -289,8 +289,8 @@ static const unsigned int upboard_up_adc0_pins[] = {
static const struct upboard_pingroup upboard_up_pin_groups[] = {
UPBOARD_PINGROUP("uart1_grp", upboard_up_uart1_pins, &upboard_up_uart1_modes[0]),
- UPBOARD_PINGROUP("i2c0_grp", upboard_up_i2c0_pins, UPBOARD_PIN_MODE_GPIO_OUT),
- UPBOARD_PINGROUP("i2c1_grp", upboard_up_i2c1_pins, UPBOARD_PIN_MODE_GPIO_OUT),
+ UPBOARD_PINGROUP("i2c0_grp", upboard_up_i2c0_pins, UPBOARD_PIN_MODE_FUNCTION),
+ UPBOARD_PINGROUP("i2c1_grp", upboard_up_i2c1_pins, UPBOARD_PIN_MODE_FUNCTION),
UPBOARD_PINGROUP("spi2_grp", upboard_up_spi2_pins, &upboard_up_spi2_modes[0]),
UPBOARD_PINGROUP("i2s0_grp", upboard_up_i2s0_pins, &upboard_up_i2s0_modes[0]),
UPBOARD_PINGROUP("pwm0_grp", upboard_up_pwm0_pins, UPBOARD_PIN_MODE_GPIO_OUT),
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support
2026-11-24 17:10 [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
` (3 preceding siblings ...)
2026-11-24 17:10 ` [PATCH v2 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
@ 2026-11-24 17:10 ` Gary Wang
2026-11-24 17:19 ` sashiko-bot
2026-11-24 17:29 ` [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Andy Shevchenko
5 siblings, 1 reply; 11+ messages in thread
From: Gary Wang @ 2026-11-24 17:10 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, BillyChou, linux-gpio,
linux-kernel, Gary Wang
Add support "UP Xtreme ARL","UP Xtreme i14","UP Squared Pro 7000",
"UP Squared i12","UP 7000" and I2C/PWM/UART/SPI pins mapping data.
Signed-off-by: Gary Wang <is0124@gmail.com>
---
drivers/pinctrl/pinctrl-upboard.c | 102 ++++++++++++++++++++++++++++++++++++--
1 file changed, 97 insertions(+), 5 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-upboard.c b/drivers/pinctrl/pinctrl-upboard.c
index 090316349331..6b53d6fd5996 100644
--- a/drivers/pinctrl/pinctrl-upboard.c
+++ b/drivers/pinctrl/pinctrl-upboard.c
@@ -912,7 +912,7 @@ static const struct upboard_pinctrl_map upboard_pinctrl_map_apl01 = {
.nmaps = ARRAY_SIZE(pinctrl_map_apl01),
};
-static const struct pinctrl_map pinctrl_map_adl[] = {
+static const struct pinctrl_map pinctrl_map_upxadlp[] = {
PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "i2c0_grp", "i2c0"),
PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "i2c1_grp", "i2c1"),
PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "pwm0_grp", "pwm0"),
@@ -920,9 +920,61 @@ static const struct pinctrl_map pinctrl_map_adl[] = {
PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "ssp2_grp", "ssp2"),
};
-static const struct upboard_pinctrl_map upboard_pinctrl_map_adl = {
- .maps = &pinctrl_map_adl[0],
- .nmaps = ARRAY_SIZE(pinctrl_map_adl),
+static const struct upboard_pinctrl_map upboard_pinctrl_map_upxadlp = {
+ .maps = &pinctrl_map_upxadlp[0],
+ .nmaps = ARRAY_SIZE(pinctrl_map_upxadlp),
+};
+
+static const struct pinctrl_map pinctrl_map_upsadlp[] = {
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "i2c0_grp", "i2c0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "i2c1_grp", "i2c1"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "pwm0_grp", "pwm0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "ish_uart_grp", "ish_uart"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "ssp2_grp", "ssp2"),
+};
+
+static const struct upboard_pinctrl_map upboard_pinctrl_map_upsadlp = {
+ .maps = &pinctrl_map_upsadlp[0],
+ .nmaps = ARRAY_SIZE(pinctrl_map_upsadlp),
+};
+
+static const struct pinctrl_map pinctrl_map_upadln[] = {
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "i2c0_grp", "i2c0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "i2c1_grp", "i2c1"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "pwm0_grp", "pwm0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "uart0_grp", "uart0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "ish_spi_grp", "ish_spi"),
+};
+
+static const struct upboard_pinctrl_map upboard_pinctrl_map_upadln = {
+ .maps = &pinctrl_map_upadln[0],
+ .nmaps = ARRAY_SIZE(pinctrl_map_upadln),
+};
+
+static const struct pinctrl_map pinctrl_map_upnadln[] = {
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "ish_i2c0_grp", "i2c0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "ish_i2c1_grp", "i2c1"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "pwm0_grp", "pwm0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "uart0_grp", "uart0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "ish_spi_grp", "ish_spi"),
+};
+
+static const struct upboard_pinctrl_map upboard_pinctrl_map_upnadln = {
+ .maps = &pinctrl_map_upnadln[0],
+ .nmaps = ARRAY_SIZE(pinctrl_map_upnadln),
+};
+
+static const struct pinctrl_map pinctrl_map_upxarl[] = {
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC105E:00", "i2c0_grp", "i2c0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC105E:00", "i2c1_grp", "i2c1"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC105E:00", "pwm0_grp", "pwm0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC105E:00", "uart0_grp", "uart0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC105E:00", "spi0_grp", "spi0"),
+};
+
+static const struct upboard_pinctrl_map upboard_pinctrl_map_upxarl = {
+ .maps = &pinctrl_map_upxarl[0],
+ .nmaps = ARRAY_SIZE(pinctrl_map_upxarl),
};
static const struct dmi_system_id dmi_platform_info[] = {
@@ -940,7 +992,47 @@ static const struct dmi_system_id dmi_platform_info[] = {
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AAEON"),
DMI_EXACT_MATCH(DMI_BOARD_NAME, "UPX-ADLP01"),
},
- .driver_data = (void *)&upboard_pinctrl_map_adl,
+ .driver_data = (void *)&upboard_pinctrl_map_upxadlp,
+ },
+ {
+ /* UP Squared i12 */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AAEON"),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "UPS-ADLP01"),
+ },
+ .driver_data = (void *)&upboard_pinctrl_map_upsadlp,
+ },
+ {
+ /* UP Squared Pro 7000 */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AAEON"),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "UPN-ADLN01"),
+ },
+ .driver_data = (void *)&upboard_pinctrl_map_upnadln,
+ },
+ {
+ /* UP 7000 */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AAEON"),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "UP-ADLN01"),
+ },
+ .driver_data = (void *)&upboard_pinctrl_map_upadln,
+ },
+ {
+ /* UP Xtreme i14 */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AAEON"),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "UPX-MTL01"),
+ },
+ .driver_data = (void *)&upboard_pinctrl_map_upxarl,
+ },
+ {
+ /* UP Xtreme ARL */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AAEON"),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "UPX-ARL01"),
+ },
+ .driver_data = (void *)&upboard_pinctrl_map_upxarl,
},
{ }
};
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v2 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support
2026-11-24 17:10 ` [PATCH v2 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support Gary Wang
@ 2026-11-24 17:19 ` sashiko-bot
0 siblings, 0 replies; 11+ messages in thread
From: sashiko-bot @ 2026-11-24 17:19 UTC (permalink / raw)
To: Gary Wang; +Cc: linux-gpio
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] pinctrl: upboard: wrong functions for ish_i2c groups in
pinctrl_map_upnadln
--
commit cfa439814253611b6af521059869e83629a2939d
Author: Gary Wang <is0124@gmail.com>
pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support
This commit adds pin mapping data and DMI entries for the UP Squared i12,
UP Squared Pro 7000, UP 7000, UP Xtreme i14, and UP Xtreme ARL boards.
> diff --git a/drivers/pinctrl/pinctrl-upboard.c b/drivers/pinctrl/pinctrl-upboard.c
> index 0903163493310..6b53d6fd5996d 100644
> --- a/drivers/pinctrl/pinctrl-upboard.c
> +++ b/drivers/pinctrl/pinctrl-upboard.c
> @@ -912,7 +912,7 @@ static const struct upboard_pinctrl_map upboard_pinctrl_map_apl01 = {
> .nmaps = ARRAY_SIZE(pinctrl_map_apl01),
> };
>
> -static const struct pinctrl_map pinctrl_map_adl[] = {
> +static const struct pinctrl_map pinctrl_map_upxadlp[] = {
> PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "i2c0_grp", "i2c0"),
> PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "i2c1_grp", "i2c1"),
> PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "pwm0_grp", "pwm0"),
> @@ -920,9 +920,61 @@ static const struct pinctrl_map pinctrl_map_adl[] = {
> PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "ssp2_grp", "ssp2"),
> };
[ ... ]
> +static const struct pinctrl_map pinctrl_map_upnadln[] = {
> + PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "ish_i2c0_grp", "i2c0"),
> + PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "ish_i2c1_grp", "i2c1"),
[Severity: High]
Should the functions for ish_i2c0_grp and ish_i2c1_grp in
pinctrl_map_upnadln[] be "ish_i2c0" and "ish_i2c1" instead of "i2c0" and
"i2c1"?
On INTC1057, adln_functions[] in drivers/pinctrl/intel/pinctrl-alderlake.c
only includes i2c0_grp in function "i2c0" and i2c1_grp in function "i2c1",
while ish_i2c0_grp and ish_i2c1_grp belong to functions "ish_i2c0" and
"ish_i2c1". As a result, pinmux_map_to_setting() rejects these mappings
with -EINVAL, causing devm_pinctrl_get_select_default() and
upboard_pinctrl_probe() to fail on UP Squared Pro 7000 (UPN-ADLN01).
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-upboard-pinctrl-add-intc1057-intc105e-support-v2-0-c8079f8f569f@gmail.com?part=5
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
2026-11-24 17:10 ` [PATCH v2 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
@ 2026-11-24 17:22 ` sashiko-bot
2026-11-24 17:31 ` Andy Shevchenko
1 sibling, 0 replies; 11+ messages in thread
From: sashiko-bot @ 2026-11-24 17:22 UTC (permalink / raw)
To: Gary Wang; +Cc: linux-gpio
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] pinctrl: upboard: changelog omits UPBOARD_PIN_MODE_FUNCTION = 1
fix
--
commit 03c95ea6b689b4fbe7c976e4dbf6f9cf5c5f2274
Author: Gary Wang <is0124@gmail.com>
> pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
>
> The CPLD I2C pin mode setting through pinmux-select is not correct.
> Should be set UPBOARD_PIN_MODE_FUNCTION on AANT0F04 devices.
>
> CC: stable@vger.kernel.org
> Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
>
> Signed-off-by: Gary Wang <is0124@gmail.com>
[Severity: Low]
This isn't a bug in the code, but the commit message does not explain why
UPBOARD_PIN_MODE_FUNCTION is changed from 0 to 1.
UPBOARD_PINGROUP() stores 0 in .mode as a sentinel when a per-pin .modes
array is used, and sets .modes to NULL when a single mode constant is used.
Because upboard_pinctrl_set_mux() selects the mode with
mode = upgroups[group_selector].mode ?: upgroups[group_selector].modes[i];
having UPBOARD_PIN_MODE_FUNCTION equal to 0 caused a NULL pointer
dereference of .modes[i] for any pin group using UPBOARD_PIN_MODE_FUNCTION.
Could the changelog mention this as well?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-upboard-pinctrl-add-intc1057-intc105e-support-v2-0-c8079f8f569f@gmail.com?part=4
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E
2026-11-24 17:10 [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
` (4 preceding siblings ...)
2026-11-24 17:10 ` [PATCH v2 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support Gary Wang
@ 2026-11-24 17:29 ` Andy Shevchenko
2026-11-24 17:33 ` Andy Shevchenko
5 siblings, 1 reply; 11+ messages in thread
From: Andy Shevchenko @ 2026-11-24 17:29 UTC (permalink / raw)
To: Gary Wang
Cc: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Daniele Cleri, JunYingLai, Louis Chen, BillyChou, linux-gpio,
linux-kernel, stable
On Wed, Nov 25, 2026 at 01:10:34AM +0800, Gary Wang wrote:
> Add missing groups and functions in Tigerlake & Alderlake & Meteorlake
> for INTC1055 & INTC1057 & INTC105E.
> Add support "UP Xtreme ARL","UP Xtreme i14","UP Squared Pro 7000",
> "UP Squared i12","UP 7000".
> Fix pinmux-select set CPLD GPIO OUT not function mode for I2C pins
> on the AANT0F04.
Make the above bullet points to be a regular English text which explains
all this. It sounds like the second sentence should be first to start
with what is this and why. Also don't blindly copy what AI provides you,
edit the text that it's correctly split on the paragraphs and in each
paragraph use full line length (~72 characters). Each paragraph should
be separated with a blank line.
This comment is related to all commit messages in this series.
> The pinctrl-upboard is provide additional driving power & pin mux function
> through native SOC pins->FPGA/CPLD->hat pins for flexable board level
> applications. it's probe from ACPI device id AANT0F01 & AANT0F04.
> To: Mika Westerberg <mika.westerberg@linux.intel.com>
No need to bother Mika, he is not maintaining this code anymore. :-(
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
2026-11-24 17:10 ` [PATCH v2 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
2026-11-24 17:22 ` sashiko-bot
@ 2026-11-24 17:31 ` Andy Shevchenko
1 sibling, 0 replies; 11+ messages in thread
From: Andy Shevchenko @ 2026-11-24 17:31 UTC (permalink / raw)
To: Gary Wang
Cc: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Daniele Cleri, JunYingLai, Louis Chen, BillyChou, linux-gpio,
linux-kernel, stable
On Wed, Nov 25, 2026 at 01:10:38AM +0800, Gary Wang wrote:
> The CPLD I2C pin mode setting through pinmux-select is not correct.
> Should be set UPBOARD_PIN_MODE_FUNCTION on AANT0F04 devices.
> CC: stable@vger.kernel.org
I already mentioned that it's better to use 'Cc: ...'.
> Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
>
No blank lines in the tag block.
> Signed-off-by: Gary Wang <is0124@gmail.com>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E
2026-11-24 17:29 ` [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Andy Shevchenko
@ 2026-11-24 17:33 ` Andy Shevchenko
0 siblings, 0 replies; 11+ messages in thread
From: Andy Shevchenko @ 2026-11-24 17:33 UTC (permalink / raw)
To: Gary Wang
Cc: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Daniele Cleri, JunYingLai, Louis Chen, BillyChou, linux-gpio,
linux-kernel, stable
On Tue, Nov 24, 2026 at 07:29:32PM +0200, Andy Shevchenko wrote:
> On Wed, Nov 25, 2026 at 01:10:34AM +0800, Gary Wang wrote:
> > Add missing groups and functions in Tigerlake & Alderlake & Meteorlake
> > for INTC1055 & INTC1057 & INTC105E.
> > Add support "UP Xtreme ARL","UP Xtreme i14","UP Squared Pro 7000",
> > "UP Squared i12","UP 7000".
> > Fix pinmux-select set CPLD GPIO OUT not function mode for I2C pins
> > on the AANT0F04.
>
> Make the above bullet points to be a regular English text which explains
> all this. It sounds like the second sentence should be first to start
> with what is this and why. Also don't blindly copy what AI provides you,
> edit the text that it's correctly split on the paragraphs and in each
> paragraph use full line length (~72 characters). Each paragraph should
> be separated with a blank line.
>
> This comment is related to all commit messages in this series.
>
> > The pinctrl-upboard is provide additional driving power & pin mux function
> > through native SOC pins->FPGA/CPLD->hat pins for flexable board level
> > applications. it's probe from ACPI device id AANT0F01 & AANT0F04.
Also you ignored my comment about how this series is supposed to be applied.
Intel pin control drivers are maintained by me. The rest by Linus. People
won't go through the code to understand if there any compile-time and/or
run-rime dependencies between parts.
> > To: Mika Westerberg <mika.westerberg@linux.intel.com>
>
> No need to bother Mika, he is not maintaining this code anymore. :-(
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-11-24 18:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 17:10 [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
2026-11-24 17:10 ` [PATCH v2 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055 Gary Wang
2026-11-24 17:10 ` [PATCH v2 2/5] pinctrl: alderlake: add some groups and functions for INTC1057 Gary Wang
2026-11-24 17:10 ` [PATCH v2 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E Gary Wang
2026-11-24 17:10 ` [PATCH v2 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
2026-11-24 17:22 ` sashiko-bot
2026-11-24 17:31 ` Andy Shevchenko
2026-11-24 17:10 ` [PATCH v2 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support Gary Wang
2026-11-24 17:19 ` sashiko-bot
2026-11-24 17:29 ` [PATCH v2 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Andy Shevchenko
2026-11-24 17:33 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox