linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: mediatek: mt8189: align register base names to dt-bindings ones
@ 2025-10-03 13:48 Louis-Alexis Eyraud
  2025-10-06  9:38 ` AngeloGioacchino Del Regno
  2025-10-13 11:09 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Louis-Alexis Eyraud @ 2025-10-03 13:48 UTC (permalink / raw)
  To: Sean Wang, Linus Walleij, Matthias Brugger,
	AngeloGioacchino Del Regno, Cathy Xu
  Cc: kernel, linux-mediatek, linux-gpio, linux-kernel,
	linux-arm-kernel, Louis-Alexis Eyraud

The mt8189-pinctrl driver requires to probe that a device tree uses
in the device node the same names than mt8189_pinctrl_register_base_names
array. But they are not matching the required ones in the
"mediatek,mt8189-pinctrl" dt-bindings, leading to possible dtbs check
issues. The mt8189_pinctrl_register_base_names entry order is also
different.
So, align all mt8189_pinctrl_register_base_names entry names and order
on dt-bindings.

Fixes: a3fe1324c3c5 ("pinctrl: mediatek: Add pinctrl driver for mt8189")
Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
 drivers/pinctrl/mediatek/pinctrl-mt8189.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8189.c b/drivers/pinctrl/mediatek/pinctrl-mt8189.c
index 7028aff55ae5869880e9e9b14a3ad8cad6780bc6..f6a3e584588b0e8a1aafa9dca74c559974a57af5 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8189.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8189.c
@@ -1642,9 +1642,7 @@ static const struct mtk_pin_reg_calc mt8189_reg_cals[PINCTRL_PIN_REG_MAX] = {
 };
 
 static const char * const mt8189_pinctrl_register_base_names[] = {
-	"gpio_base", "iocfg_bm0_base", "iocfg_bm1_base", "iocfg_bm2_base", "iocfg_lm_base",
-	"iocfg_lt0_base", "iocfg_lt1_base", "iocfg_rb0_base", "iocfg_rb1_base",
-	"iocfg_rt_base"
+	"base", "lm", "rb0", "rb1", "bm0", "bm1", "bm2", "lt0", "lt1", "rt",
 };
 
 static const struct mtk_eint_hw mt8189_eint_hw = {

---
base-commit: 4a7bcf9e0158d9976525370ff84401a1e955bbee
change-id: 20251003-fix-mt8189-pinctrl-regnames-c50d4e46c592

Best regards,
-- 
Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>


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

* Re: [PATCH] pinctrl: mediatek: mt8189: align register base names to dt-bindings ones
  2025-10-03 13:48 [PATCH] pinctrl: mediatek: mt8189: align register base names to dt-bindings ones Louis-Alexis Eyraud
@ 2025-10-06  9:38 ` AngeloGioacchino Del Regno
  2025-10-13 11:09 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-10-06  9:38 UTC (permalink / raw)
  To: Louis-Alexis Eyraud, Sean Wang, Linus Walleij, Matthias Brugger,
	Cathy Xu
  Cc: kernel, linux-mediatek, linux-gpio, linux-kernel,
	linux-arm-kernel

Il 03/10/25 15:48, Louis-Alexis Eyraud ha scritto:
> The mt8189-pinctrl driver requires to probe that a device tree uses
> in the device node the same names than mt8189_pinctrl_register_base_names
> array. But they are not matching the required ones in the
> "mediatek,mt8189-pinctrl" dt-bindings, leading to possible dtbs check
> issues. The mt8189_pinctrl_register_base_names entry order is also
> different.
> So, align all mt8189_pinctrl_register_base_names entry names and order
> on dt-bindings.
> 
> Fixes: a3fe1324c3c5 ("pinctrl: mediatek: Add pinctrl driver for mt8189")
> Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



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

* Re: [PATCH] pinctrl: mediatek: mt8189: align register base names to dt-bindings ones
  2025-10-03 13:48 [PATCH] pinctrl: mediatek: mt8189: align register base names to dt-bindings ones Louis-Alexis Eyraud
  2025-10-06  9:38 ` AngeloGioacchino Del Regno
@ 2025-10-13 11:09 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2025-10-13 11:09 UTC (permalink / raw)
  To: Louis-Alexis Eyraud
  Cc: Sean Wang, Matthias Brugger, AngeloGioacchino Del Regno, Cathy Xu,
	kernel, linux-mediatek, linux-gpio, linux-kernel,
	linux-arm-kernel

On Fri, Oct 3, 2025 at 3:50 PM Louis-Alexis Eyraud
<louisalexis.eyraud@collabora.com> wrote:

> The mt8189-pinctrl driver requires to probe that a device tree uses
> in the device node the same names than mt8189_pinctrl_register_base_names
> array. But they are not matching the required ones in the
> "mediatek,mt8189-pinctrl" dt-bindings, leading to possible dtbs check
> issues. The mt8189_pinctrl_register_base_names entry order is also
> different.
> So, align all mt8189_pinctrl_register_base_names entry names and order
> on dt-bindings.
>
> Fixes: a3fe1324c3c5 ("pinctrl: mediatek: Add pinctrl driver for mt8189")
> Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>

Patch applied for fixes!

Yours,
Linus Walleij

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

end of thread, other threads:[~2025-10-13 11:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-03 13:48 [PATCH] pinctrl: mediatek: mt8189: align register base names to dt-bindings ones Louis-Alexis Eyraud
2025-10-06  9:38 ` AngeloGioacchino Del Regno
2025-10-13 11:09 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).