mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pinctrl: qcom: ipq5018: add required gpios and missing PWM functions
@ 2026-09-24 12:22 George Moussalem via B4 Relay
  2026-09-28  8:38 ` Bartosz Golaszewski
  2026-09-28 10:35 ` Konrad Dybcio
  0 siblings, 2 replies; 4+ messages in thread
From: George Moussalem via B4 Relay @ 2026-09-24 12:22 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bjorn Andersson, Linus Walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel, George Moussalem

From: George Moussalem <george.moussalem@outlook.com>

On multiple Linksys routers, GPIO 1, 30, and 46 are used to drive the
PWM led on PWM1, PWM3, and PWM0 channels respectively, so let's update
the pwm# and pingroups accordingly.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
---
 drivers/pinctrl/qcom/pinctrl-ipq5018.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/pinctrl/qcom/pinctrl-ipq5018.c b/drivers/pinctrl/qcom/pinctrl-ipq5018.c
index 84392fe258c9..74fccdd5146a 100644
--- a/drivers/pinctrl/qcom/pinctrl-ipq5018.c
+++ b/drivers/pinctrl/qcom/pinctrl-ipq5018.c
@@ -539,7 +539,7 @@ static const char * const qdss_tracectl_b_groups[] = {
 };
 
 static const char * const pwm0_groups[] = {
-	"gpio42",
+	"gpio42", "gpio46",
 };
 
 static const char * const qdss_cti_trig_out_b0_groups[] = {
@@ -547,7 +547,7 @@ static const char * const qdss_cti_trig_out_b0_groups[] = {
 };
 
 static const char * const pwm1_groups[] = {
-	"gpio43",
+	"gpio43", "gpio1",
 };
 
 static const char * const qdss_cti_trig_in_b0_groups[] = {
@@ -563,7 +563,7 @@ static const char * const qdss_cti_trig_out_b1_groups[] = {
 };
 
 static const char * const pwm3_groups[] = {
-	"gpio45", "gpio13",
+	"gpio45", "gpio30", "gpio13",
 };
 
 static const char * const qdss_cti_trig_in_b1_groups[] = {
@@ -677,7 +677,7 @@ static const struct pinfunction ipq5018_functions[] = {
 
 static const struct msm_pingroup ipq5018_groups[] = {
 	PINGROUP(0, atest_char, _, qdss_cti_trig_out_a0, wci_txd, wci_rxd, xfem, _, _, _),
-	PINGROUP(1, atest_char, _, qdss_cti_trig_in_a0, wci_txd, wci_rxd, xfem, _, _, _),
+	PINGROUP(1, atest_char, pwm1, qdss_cti_trig_in_a0, wci_txd, wci_rxd, xfem, _, _, _),
 	PINGROUP(2, atest_char, _, qdss_cti_trig_out_a1, wci_txd, wci_rxd, xfem, _, _, _),
 	PINGROUP(3, atest_char, _, qdss_cti_trig_in_a1, wci_txd, wci_rxd, xfem, _, _, _),
 	PINGROUP(4, sdc1_data, qspi_data, blsp1_spi1, btss, dbg_out, qdss_traceclk_a, _, burn0, _),
@@ -706,7 +706,7 @@ static const struct msm_pingroup ipq5018_groups[] = {
 	PINGROUP(27, audio_txmclk, wsa_swrm, audio_txmclk, blsp2_spi, btss, _, qdss_tracedata_b, _, _),
 	PINGROUP(28, audio_txbclk, wsa_swrm, blsp0_uart1, btss, qdss_tracedata_b, _, _, _, _),
 	PINGROUP(29, audio_txfsync, _, blsp0_uart1, _, qdss_tracedata_b, _, _, _, _),
-	PINGROUP(30, audio_txd, led2, led0, _, _, _, _, _, _),
+	PINGROUP(30, audio_txd, led2, led0, pwm3, _, _, _, _, _),
 	PINGROUP(31, blsp2_spi0, blsp1_uart1, _, qdss_tracedata_b, eud_gpio, _, _, _, _),
 	PINGROUP(32, blsp2_spi0, blsp1_uart1, _, qdss_tracedata_b, eud_gpio, _, _, _, _),
 	PINGROUP(33, blsp2_i2c0, blsp2_spi0, blsp1_uart1, _, qdss_tracedata_b, eud_gpio, _, _, _),
@@ -722,7 +722,7 @@ static const struct msm_pingroup ipq5018_groups[] = {
 	PINGROUP(43, pwm1, qdss_cti_trig_in_b0, wci_txd, wci_rxd, xfem, _, _, _, _),
 	PINGROUP(44, pwm2, qdss_cti_trig_out_b1, wci_txd, wci_rxd, xfem, _, _, _, _),
 	PINGROUP(45, pwm3, qdss_cti_trig_in_b1, wci_txd, wci_rxd, xfem, _, _, _, _),
-	PINGROUP(46, led0, _, _, _, _, _, _, _, _),
+	PINGROUP(46, led0, pwm0, _, _, _, _, _, _, _),
 };
 
 static const struct msm_pinctrl_soc_data ipq5018_pinctrl = {

---
base-commit: 3d7783543c2646af69ad65825e810060494bea21
change-id: 20260924-ipq5018-pwm-functions-2ec0211d65c1

Best regards,
-- 
George Moussalem <george.moussalem@outlook.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] pinctrl: qcom: ipq5018: add required gpios and missing PWM functions
  2026-09-24 12:22 [PATCH] pinctrl: qcom: ipq5018: add required gpios and missing PWM functions George Moussalem via B4 Relay
@ 2026-09-28  8:38 ` Bartosz Golaszewski
  2026-09-28  9:21   ` George Moussalem
  2026-09-28 10:35 ` Konrad Dybcio
  1 sibling, 1 reply; 4+ messages in thread
From: Bartosz Golaszewski @ 2026-09-28  8:38 UTC (permalink / raw)
  To: george.moussalem
  Cc: George Moussalem via B4 Relay, linux-arm-msm, linux-gpio,
	linux-kernel, Bartosz Golaszewski, Bjorn Andersson,
	Linus Walleij

On Thu, 24 Sep 2026 14:22:11 +0200, George Moussalem via B4 Relay
<devnull+george.moussalem.outlook.com@kernel.org> said:
> From: George Moussalem <george.moussalem@outlook.com>
>
> On multiple Linksys routers, GPIO 1, 30, and 46 are used to drive the
> PWM led on PWM1, PWM3, and PWM0 channels respectively, so let's update
> the pwm# and pingroups accordingly.
>
> Signed-off-by: George Moussalem <george.moussalem@outlook.com>
> ---

Are we *updating* or *adding missing*? Depending on the answer, this can be
interpreted as a fix that should be backported or a new feature that should
be queued for v7.4.

If this is a fix, can you add a Fixes tag?

Bart

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] pinctrl: qcom: ipq5018: add required gpios and missing PWM functions
  2026-09-28  8:38 ` Bartosz Golaszewski
@ 2026-09-28  9:21   ` George Moussalem
  0 siblings, 0 replies; 4+ messages in thread
From: George Moussalem @ 2026-09-28  9:21 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: George Moussalem via B4 Relay, linux-arm-msm, linux-gpio,
	linux-kernel, Bjorn Andersson, Linus Walleij

On 9/28/26 12:38, Bartosz Golaszewski wrote:
> On Thu, 24 Sep 2026 14:22:11 +0200, George Moussalem via B4 Relay
> <devnull+george.moussalem.outlook.com@kernel.org> said:
>> From: George Moussalem <george.moussalem@outlook.com>
>>
>> On multiple Linksys routers, GPIO 1, 30, and 46 are used to drive the
>> PWM led on PWM1, PWM3, and PWM0 channels respectively, so let's update
>> the pwm# and pingroups accordingly.
>>
>> Signed-off-by: George Moussalem <george.moussalem@outlook.com>
>> ---
> 
> Are we *updating* or *adding missing*? Depending on the answer, this can be
> interpreted as a fix that should be backported or a new feature that should
> be queued for v7.4.

Not all IPQ5018 routers have these GPIOs assigned to these PWM groups so
I suppose it's not a fix but rather an update. I'll send v2 out shortly
with an updated commit title.

> 
> If this is a fix, can you add a Fixes tag?
> 
> Bart

George

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] pinctrl: qcom: ipq5018: add required gpios and missing PWM functions
  2026-09-24 12:22 [PATCH] pinctrl: qcom: ipq5018: add required gpios and missing PWM functions George Moussalem via B4 Relay
  2026-09-28  8:38 ` Bartosz Golaszewski
@ 2026-09-28 10:35 ` Konrad Dybcio
  1 sibling, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2026-09-28 10:35 UTC (permalink / raw)
  To: george.moussalem, Bartosz Golaszewski, Bjorn Andersson, Linus Walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel

On 9/24/26 2:22 PM, George Moussalem via B4 Relay wrote:
> From: George Moussalem <george.moussalem@outlook.com>
> 
> On multiple Linksys routers, GPIO 1, 30, and 46 are used to drive the
> PWM led on PWM1, PWM3, and PWM0 channels respectively, so let's update
> the pwm# and pingroups accordingly.
> 
> Signed-off-by: George Moussalem <george.moussalem@outlook.com>
> ---
>  drivers/pinctrl/qcom/pinctrl-ipq5018.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/pinctrl/qcom/pinctrl-ipq5018.c b/drivers/pinctrl/qcom/pinctrl-ipq5018.c
> index 84392fe258c9..74fccdd5146a 100644
> --- a/drivers/pinctrl/qcom/pinctrl-ipq5018.c
> +++ b/drivers/pinctrl/qcom/pinctrl-ipq5018.c
> @@ -539,7 +539,7 @@ static const char * const qdss_tracectl_b_groups[] = {
>  };
>  
>  static const char * const pwm0_groups[] = {
> -	"gpio42",
> +	"gpio42", "gpio46",
>  };
>  
>  static const char * const qdss_cti_trig_out_b0_groups[] = {
> @@ -547,7 +547,7 @@ static const char * const qdss_cti_trig_out_b0_groups[] = {
>  };
>  
>  static const char * const pwm1_groups[] = {
> -	"gpio43",
> +	"gpio43", "gpio1",

Nit: please keep the added entries sorted

Konrad

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-28 10:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-24 12:22 [PATCH] pinctrl: qcom: ipq5018: add required gpios and missing PWM functions George Moussalem via B4 Relay
2026-09-28  8:38 ` Bartosz Golaszewski
2026-09-28  9:21   ` George Moussalem
2026-09-28 10:35 ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®