* [PATCH 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055
2026-11-23 15:16 [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
@ 2026-11-23 15:16 ` Gary Wang
2026-11-23 15:25 ` sashiko-bot
2026-11-23 15:16 ` [PATCH 2/5] pinctrl: alderlake: add some groups and functions for INTC1057 Gary Wang
` (4 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: Gary Wang @ 2026-11-23 15:16 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, 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.
---
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] 18+ messages in thread* [PATCH 2/5] pinctrl: alderlake: add some groups and functions for INTC1057
2026-11-23 15:16 [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
2026-11-23 15:16 ` [PATCH 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055 Gary Wang
@ 2026-11-23 15:16 ` Gary Wang
2026-11-23 15:22 ` sashiko-bot
2026-11-23 15:16 ` [PATCH 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E Gary Wang
` (3 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: Gary Wang @ 2026-11-23 15:16 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, 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.
---
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] 18+ messages in thread* [PATCH 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E
2026-11-23 15:16 [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
2026-11-23 15:16 ` [PATCH 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055 Gary Wang
2026-11-23 15:16 ` [PATCH 2/5] pinctrl: alderlake: add some groups and functions for INTC1057 Gary Wang
@ 2026-11-23 15:16 ` Gary Wang
2026-11-23 15:21 ` sashiko-bot
2026-11-23 15:16 ` [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
` (2 subsequent siblings)
5 siblings, 1 reply; 18+ messages in thread
From: Gary Wang @ 2026-11-23 15:16 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, 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.
---
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] 18+ messages in thread* [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
2026-11-23 15:16 [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
` (2 preceding siblings ...)
2026-11-23 15:16 ` [PATCH 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E Gary Wang
@ 2026-11-23 15:16 ` Gary Wang
2026-11-23 15:26 ` sashiko-bot
` (2 more replies)
2026-11-23 15:16 ` [PATCH 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support Gary Wang
2026-11-23 19:58 ` [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Andy Shevchenko
5 siblings, 3 replies; 18+ messages in thread
From: Gary Wang @ 2026-11-23 15:16 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, Gary Wang, stable
The CPLD I2C pin mode setting following uart & spi used modes array
on device AANT0F04.
CC: stable@vger.kernel.org
Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
---
drivers/pinctrl/pinctrl-upboard.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-upboard.c b/drivers/pinctrl/pinctrl-upboard.c
index b9af6dd93c34..66c1c3e3bfe0 100644
--- a/drivers/pinctrl/pinctrl-upboard.c
+++ b/drivers/pinctrl/pinctrl-upboard.c
@@ -225,11 +225,21 @@ static const unsigned int upboard_up_i2c0_pins[] = {
UPBOARD_UP_BIT_TO_PIN(I2C0_SDA),
};
+static const enum upboard_pin_mode upboard_up_i2c0_modes[] = {
+ UPBOARD_PIN_MODE_FUNCTION,
+ UPBOARD_PIN_MODE_FUNCTION,
+};
+
static const unsigned int upboard_up_i2c1_pins[] = {
UPBOARD_UP_BIT_TO_PIN(I2C1_SCL),
UPBOARD_UP_BIT_TO_PIN(I2C1_SDA),
};
+static const enum upboard_pin_mode upboard_up_i2c1_modes[] = {
+ UPBOARD_PIN_MODE_FUNCTION,
+ UPBOARD_PIN_MODE_FUNCTION,
+};
+
static const unsigned int upboard_up_spi2_pins[] = {
UPBOARD_UP_BIT_TO_PIN(SPI_MOSI),
UPBOARD_UP_BIT_TO_PIN(SPI_MISO),
@@ -289,8 +299,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_up_i2c0_modes[0]),
+ UPBOARD_PINGROUP("i2c1_grp", upboard_up_i2c1_pins, &upboard_up_i2c1_modes[0]),
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] 18+ messages in thread* Re: [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
2026-11-23 15:16 ` [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
@ 2026-11-23 15:26 ` sashiko-bot
2026-11-23 20:01 ` Andy Shevchenko
2026-11-24 9:17 ` Thomas Richard
2 siblings, 0 replies; 18+ messages in thread
From: sashiko-bot @ 2026-11-23 15:26 UTC (permalink / raw)
To: Gary Wang; +Cc: linux-gpio
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] pinctrl: upboard: missing Signed-off-by trailer in commit
message
- [High] pinctrl: upboard: NULL modes deref in upboard_pinctrl_set_mux()
on mode 0
--
commit 9be514c1a4ebbf98ef179a29ba2bf1adb01fa558
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 following uart & spi used modes array
> on device AANT0F04.
>
> CC: stable@vger.kernel.org
> Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
[Severity: High]
The commit message is missing a Signed-off-by: trailer from the patch
author, as required by Documentation/process/submitting-patches.rst.
> diff --git a/drivers/pinctrl/pinctrl-upboard.c b/drivers/pinctrl/pinctrl-upboard.c
> index b9af6dd93c343..66c1c3e3bfe08 100644
> --- a/drivers/pinctrl/pinctrl-upboard.c
> +++ b/drivers/pinctrl/pinctrl-upboard.c
> @@ -225,11 +225,21 @@ static const unsigned int upboard_up_i2c0_pins[] = {
> UPBOARD_UP_BIT_TO_PIN(I2C0_SDA),
> };
>
> +static const enum upboard_pin_mode upboard_up_i2c0_modes[] = {
> + UPBOARD_PIN_MODE_FUNCTION,
> + UPBOARD_PIN_MODE_FUNCTION,
> +};
> +
> static const unsigned int upboard_up_i2c1_pins[] = {
> UPBOARD_UP_BIT_TO_PIN(I2C1_SCL),
> UPBOARD_UP_BIT_TO_PIN(I2C1_SDA),
> };
>
> +static const enum upboard_pin_mode upboard_up_i2c1_modes[] = {
> + UPBOARD_PIN_MODE_FUNCTION,
> + UPBOARD_PIN_MODE_FUNCTION,
> +};
> +
> static const unsigned int upboard_up_spi2_pins[] = {
> UPBOARD_UP_BIT_TO_PIN(SPI_MOSI),
> UPBOARD_UP_BIT_TO_PIN(SPI_MISO),
> @@ -289,8 +299,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_up_i2c0_modes[0]),
> + UPBOARD_PINGROUP("i2c1_grp", upboard_up_i2c1_pins, &upboard_up_i2c1_modes[0]),
> 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),
[Severity: High]
Are upboard_up_i2c0_modes[] and upboard_up_i2c1_modes[] working around a
NULL pointer dereference in upboard_pinctrl_set_mux() when a pin group uses
a scalar UPBOARD_PIN_MODE_FUNCTION?
UPBOARD_PIN_MODE_FUNCTION is 0, and UPBOARD_PINGROUP() sets .mode = m and
.modes = NULL when passed a scalar enum upboard_pin_mode. Because
upboard_pinctrl_set_mux() tests .mode instead of .modes:
drivers/pinctrl/pinctrl-upboard.c:upboard_pinctrl_set_mux() {
...
for (i = 0; i < grp->grp.npins; i++) {
mode = upgroups[group_selector].mode ?: upgroups[group_selector].modes[i];
...
}
any group configured with scalar UPBOARD_PIN_MODE_FUNCTION has .mode == 0
and .modes == NULL, causing upboard_pinctrl_set_mux() to dereference NULL
at .modes[i]. The UP2 table already defines i2c0_grp and i2c1_grp with
scalar UPBOARD_PIN_MODE_FUNCTION in upboard_up2_pin_groups[], so muxing I2C
on UP2 still triggers this NULL pointer dereference.
Instead of adding uniform mode arrays (which also lack the static_assert()
size checks used for the other mode arrays), should
upboard_pinctrl_set_mux() check upgroups[group_selector].modes ?
upgroups[group_selector].modes[i] : upgroups[group_selector].mode so
i2c0_grp and i2c1_grp can pass UPBOARD_PIN_MODE_FUNCTION directly?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-upboard-pinctrl-add-intc1057-intc105e-support-v1-0-f2322a91686d@gmail.com?part=4
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
2026-11-23 15:16 ` [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
2026-11-23 15:26 ` sashiko-bot
@ 2026-11-23 20:01 ` Andy Shevchenko
2026-11-23 20:39 ` GaryWang
2026-11-24 9:17 ` Thomas Richard
2 siblings, 1 reply; 18+ messages in thread
From: Andy Shevchenko @ 2026-11-23 20:01 UTC (permalink / raw)
To: Gary Wang
Cc: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, stable
On Mon, Nov 23, 2026 at 11:16:17PM +0800, Gary Wang wrote:
> The CPLD I2C pin mode setting following uart & spi used modes array
UART
SPI
> on device AANT0F04.
> CC: stable@vger.kernel.org
Should be better Cc: (CC: works, but looks non-standard).
> Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
You need to read the AI slops, test them and add your formal SoB.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
2026-11-23 20:01 ` Andy Shevchenko
@ 2026-11-23 20:39 ` GaryWang
2026-12-01 8:44 ` Linus Walleij
0 siblings, 1 reply; 18+ messages in thread
From: GaryWang @ 2026-11-23 20:39 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, stable
On Tue, Nov 24, 2026 at 4:01 AM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> On Mon, Nov 23, 2026 at 11:16:17PM +0800, Gary Wang wrote:
> > The CPLD I2C pin mode setting following uart & spi used modes array
>
> UART
> SPI
>
> > on device AANT0F04.
>
> > CC: stable@vger.kernel.org
>
> Should be better Cc: (CC: works, but looks non-standard).
>
> > Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
>
> You need to read the AI slops, test them and add your formal SoB.
Tested, but I'll check AI slops than add SoB.
>
> --
> With Best Regards,
> Andy Shevchenko
>
>
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
2026-11-23 20:39 ` GaryWang
@ 2026-12-01 8:44 ` Linus Walleij
0 siblings, 0 replies; 18+ messages in thread
From: Linus Walleij @ 2026-12-01 8:44 UTC (permalink / raw)
To: GaryWang
Cc: Andy Shevchenko, Mika Westerberg, Andy Shevchenko, Thomas Richard,
Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, stable
On Mon, Nov 23, 2026 at 9:39 PM GaryWang <is0124@gmail.com> wrote:
> On Tue, Nov 24, 2026 at 4:01 AM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Mon, Nov 23, 2026 at 11:16:17PM +0800, Gary Wang wrote:
> > > Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
> >
> > You need to read the AI slops, test them and add your formal SoB.
> Tested, but I'll check AI slops than add SoB.
It doesn't, because AGENTS.md in the kernel tree tells your agent
*explicitly* not to add a SoB, you're supposes to do that *manually*.
This is one of the ways we check that people actually read the code
they conjure.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
2026-11-23 15:16 ` [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
2026-11-23 15:26 ` sashiko-bot
2026-11-23 20:01 ` Andy Shevchenko
@ 2026-11-24 9:17 ` Thomas Richard
2026-11-24 10:18 ` GaryWang
2 siblings, 1 reply; 18+ messages in thread
From: Thomas Richard @ 2026-11-24 9:17 UTC (permalink / raw)
To: Gary Wang
Cc: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko, Daniele Cleri, JunYingLai, Louis Chen,
linux-gpio, linux-kernel, BillyChou, stable
> The CPLD I2C pin mode setting following uart & spi used modes array
> on device AANT0F04.
>
> CC: stable@vger.kernel.org
> Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
Please explain the real issue you met and how you fixed it.
>
> diff --git a/drivers/pinctrl/pinctrl-upboard.c b/drivers/pinctrl/pinctrl-upboard.c
> index b9af6dd93c34..66c1c3e3bfe0 100644
> --- a/drivers/pinctrl/pinctrl-upboard.c
> +++ b/drivers/pinctrl/pinctrl-upboard.c
> @@ -225,11 +225,21 @@ static const unsigned int upboard_up_i2c0_pins[] = {
> UPBOARD_UP_BIT_TO_PIN(I2C0_SDA),
> };
>
> +static const enum upboard_pin_mode upboard_up_i2c0_modes[] = {
> + UPBOARD_PIN_MODE_FUNCTION,
> + UPBOARD_PIN_MODE_FUNCTION,
> +};
> +
Add a static_assert.
> static const unsigned int upboard_up_i2c1_pins[] = {
> UPBOARD_UP_BIT_TO_PIN(I2C1_SCL),
> UPBOARD_UP_BIT_TO_PIN(I2C1_SDA),
> };
>
> +static const enum upboard_pin_mode upboard_up_i2c1_modes[] = {
> + UPBOARD_PIN_MODE_FUNCTION,
> + UPBOARD_PIN_MODE_FUNCTION,
> +};
> +
Ditto.
> static const unsigned int upboard_up_spi2_pins[] = {
> UPBOARD_UP_BIT_TO_PIN(SPI_MOSI),
> UPBOARD_UP_BIT_TO_PIN(SPI_MISO),
> @@ -289,8 +299,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_up_i2c0_modes[0]),
> + UPBOARD_PINGROUP("i2c1_grp", upboard_up_i2c1_pins, &upboard_up_i2c1_modes[0]),
I personnally prefer the actual implementation because it saves some lines.
But if you really want to use modes array even if the mode is the same for all
pins of the group, you should convert all groups to modes array, drop dead code
and explain the benefits.
--
Best Regards,
Thomas Richard
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode
2026-11-24 9:17 ` Thomas Richard
@ 2026-11-24 10:18 ` GaryWang
0 siblings, 0 replies; 18+ messages in thread
From: GaryWang @ 2026-11-24 10:18 UTC (permalink / raw)
To: Thomas Richard
Cc: Mika Westerberg, Andy Shevchenko, Linus Walleij, Andy Shevchenko,
Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, stable
On Tue, Nov 24, 2026 at 5:17 PM Thomas Richard
<thomas.richard@bootlin.com> wrote:
>
> > The CPLD I2C pin mode setting following uart & spi used modes array
> > on device AANT0F04.
> >
> > CC: stable@vger.kernel.org
> > Fixes: dca2f73cf19f ("pinctrl: Add pin controller driver for AAEON UP boards")
>
> Please explain the real issue you met and how you fixed it.
Ok.
>
> >
> > diff --git a/drivers/pinctrl/pinctrl-upboard.c b/drivers/pinctrl/pinctrl-upboard.c
> > index b9af6dd93c34..66c1c3e3bfe0 100644
> > --- a/drivers/pinctrl/pinctrl-upboard.c
> > +++ b/drivers/pinctrl/pinctrl-upboard.c
> > @@ -225,11 +225,21 @@ static const unsigned int upboard_up_i2c0_pins[] = {
> > UPBOARD_UP_BIT_TO_PIN(I2C0_SDA),
> > };
> >
> > +static const enum upboard_pin_mode upboard_up_i2c0_modes[] = {
> > + UPBOARD_PIN_MODE_FUNCTION,
> > + UPBOARD_PIN_MODE_FUNCTION,
> > +};
> > +
>
> Add a static_assert.
>
> > static const unsigned int upboard_up_i2c1_pins[] = {
> > UPBOARD_UP_BIT_TO_PIN(I2C1_SCL),
> > UPBOARD_UP_BIT_TO_PIN(I2C1_SDA),
> > };
> >
> > +static const enum upboard_pin_mode upboard_up_i2c1_modes[] = {
> > + UPBOARD_PIN_MODE_FUNCTION,
> > + UPBOARD_PIN_MODE_FUNCTION,
> > +};
> > +
>
> Ditto.
>
> > static const unsigned int upboard_up_spi2_pins[] = {
> > UPBOARD_UP_BIT_TO_PIN(SPI_MOSI),
> > UPBOARD_UP_BIT_TO_PIN(SPI_MISO),
> > @@ -289,8 +299,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_up_i2c0_modes[0]),
> > + UPBOARD_PINGROUP("i2c1_grp", upboard_up_i2c1_pins, &upboard_up_i2c1_modes[0]),
>
> I personnally prefer the actual implementation because it saves some lines.
>
> But if you really want to use modes array even if the mode is the same for all
> pins of the group, you should convert all groups to modes array, drop dead code
> and explain the benefits.
The benefits just have flexibility in the future. if 2 pins mode is
not the same.
AI code review is not the whole accurate, The current code hasn't NULL
pointer modes array in UP2.
However the UPBOARD_PIN_MODE_FUNCTION starts from 0, if there is a pin
that has set UPBOARD_PIN_MODE_FUNCTION then it will get NULL pointer
modes.
So the good fix I'll set UPBOARD_PIN_MODE_FUNCTION as 1 then we can set I2C
to UPBOARD_PIN_MODE_FUNCTION as you wish.
>
> --
> Best Regards,
> Thomas Richard
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support
2026-11-23 15:16 [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
` (3 preceding siblings ...)
2026-11-23 15:16 ` [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
@ 2026-11-23 15:16 ` Gary Wang
2026-11-23 15:28 ` sashiko-bot
2026-11-23 19:58 ` [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Andy Shevchenko
5 siblings, 1 reply; 18+ messages in thread
From: Gary Wang @ 2026-11-23 15:16 UTC (permalink / raw)
To: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Andy Shevchenko
Cc: Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, 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.
---
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 66c1c3e3bfe0..232678fb811e 100644
--- a/drivers/pinctrl/pinctrl-upboard.c
+++ b/drivers/pinctrl/pinctrl-upboard.c
@@ -922,7 +922,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"),
@@ -930,9 +930,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", "uart1"),
+ 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[] = {
@@ -950,7 +1002,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] 18+ messages in thread* Re: [PATCH 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support
2026-11-23 15:16 ` [PATCH 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support Gary Wang
@ 2026-11-23 15:28 ` sashiko-bot
0 siblings, 0 replies; 18+ messages in thread
From: sashiko-bot @ 2026-11-23 15:28 UTC (permalink / raw)
To: Gary Wang; +Cc: linux-gpio
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] pinctrl: upboard: missing Signed-off-by trailer in commit
message
- [High] pinctrl: upboard: wrong function for ish_uart_grp in
pinctrl_map_upsadlp
- [High] pinctrl: upboard: wrong functions for ish_i2c groups in
pinctrl_map_upnadln
--
commit c65242f8e95e0139e8717628a668ae12feb887dd
Author: Gary Wang <is0124@gmail.com>
> pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support
>
> 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.
[Severity: High]
The commit message is missing a Signed-off-by: trailer.
> diff --git a/drivers/pinctrl/pinctrl-upboard.c b/drivers/pinctrl/pinctrl-upboard.c
> index 66c1c3e3bfe08..232678fb811ec 100644
> --- a/drivers/pinctrl/pinctrl-upboard.c
> +++ b/drivers/pinctrl/pinctrl-upboard.c
> @@ -930,9 +930,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", "uart1"),
[Severity: High]
Should the function for "ish_uart_grp" in pinctrl_map_upsadlp[] be
"ish_uart" instead of "uart1"?
On INTC1055 (tgllp_functions in drivers/pinctrl/intel/pinctrl-tigerlake.c),
"uart1" only contains "uart1_grp", while "ish_uart_grp" belongs to
"ish_uart". When upboard_pinctrl_probe() calls
devm_pinctrl_get_select_default() on UPS-ADLP01, pinmux_map_to_setting()
will reject this mapping with -EINVAL and fail the probe.
> + 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"),
[Severity: High]
Should "ish_i2c0_grp" and "ish_i2c1_grp" in pinctrl_map_upnadln[] map to
functions "ish_i2c0" and "ish_i2c1" instead of "i2c0" and "i2c1"?
On INTC1057 (adln_functions in drivers/pinctrl/intel/pinctrl-alderlake.c),
"i2c0" and "i2c1" only contain "i2c0_grp" and "i2c1_grp", while
"ish_i2c0_grp" and "ish_i2c1_grp" belong to "ish_i2c0" and "ish_i2c1".
Because the groups do not match the functions, pinmux_map_to_setting()
returns -EINVAL and causes upboard_pinctrl_probe() to fail on UPN-ADLN01.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-upboard-pinctrl-add-intc1057-intc105e-support-v1-0-f2322a91686d@gmail.com?part=5
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E
2026-11-23 15:16 [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
` (4 preceding siblings ...)
2026-11-23 15:16 ` [PATCH 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support Gary Wang
@ 2026-11-23 19:58 ` Andy Shevchenko
2026-11-23 19:59 ` Andy Shevchenko
5 siblings, 1 reply; 18+ messages in thread
From: Andy Shevchenko @ 2026-11-23 19:58 UTC (permalink / raw)
To: Gary Wang
Cc: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, stable
On Mon, Nov 23, 2026 at 11:16:13PM +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.
Can we actually see some activity to eventually implement a missing part to
support PinGroup() and PinFunction() ACPI resources? With that being done
this information should be provided by BIOS.
> 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.
It's cross-driver series, is there any compile-time dependencies?
Or how do you consider them to go?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E
2026-11-23 19:58 ` [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Andy Shevchenko
@ 2026-11-23 19:59 ` Andy Shevchenko
0 siblings, 0 replies; 18+ messages in thread
From: Andy Shevchenko @ 2026-11-23 19:59 UTC (permalink / raw)
To: Gary Wang
Cc: Mika Westerberg, Andy Shevchenko, Linus Walleij, Thomas Richard,
Daniele Cleri, JunYingLai, Louis Chen, linux-gpio, linux-kernel,
BillyChou, stable
On Mon, Nov 23, 2026 at 09:58:32PM +0200, Andy Shevchenko wrote:
> On Mon, Nov 23, 2026 at 11:16:13PM +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.
>
> Can we actually see some activity to eventually implement a missing part to
> support PinGroup() and PinFunction() ACPI resources? With that being done
> this information should be provided by BIOS.
>
> > 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.
>
> It's cross-driver series, is there any compile-time dependencies?
> Or how do you consider them to go?
Ah, seems AI generated, no SoB, this unacceptable contribution, sorry.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 18+ messages in thread