pinctrl: mediatek: Add missing bind callback for several SoCs

Commit f4df9f53b7a9 ("pinctrl: mediatek: Bind gpio while binding pinctrl")
refactored pinctrl-mtk-common.c and the SoC-specific drivers to register
the gpiochip during the bind phase instead of probe. As part of this
change, each SoC driver must implement a bind callback.

The drivers recently added for mt8188, mt8189, mt8195 and mt8365 do not
define this callback, which prevents the gpiochip from being registered
properly.

Add the missing bind callback to these drivers.

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Link: https://patch.msgid.link/20260312-pinctrl-mtk-bind-gpio-v1-1-21b8968902ed@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
This commit is contained in:
Julien Stephan 2026-03-12 17:19:26 +01:00 committed by David Lechner
parent f82f50caa1
commit 71e736ed6d
4 changed files with 4 additions and 0 deletions

View File

@ -1339,6 +1339,7 @@ U_BOOT_DRIVER(mt8188_pinctrl) = {
.id = UCLASS_PINCTRL,
.of_match = mt8188_pctrl_match,
.ops = &mtk_pinctrl_ops,
.bind = mtk_pinctrl_common_bind,
.probe = mtk_pinctrl_mt8188_probe,
.priv_auto = sizeof(struct mtk_pinctrl_priv),
};

View File

@ -1271,6 +1271,7 @@ U_BOOT_DRIVER(mt8189_pinctrl) = {
.id = UCLASS_PINCTRL,
.of_match = mt8189_pctrl_match,
.ops = &mtk_pinctrl_ops,
.bind = mtk_pinctrl_common_bind,
.probe = mtk_pinctrl_mt8189_probe,
.priv_auto = sizeof(struct mtk_pinctrl_priv),
};

View File

@ -1074,6 +1074,7 @@ U_BOOT_DRIVER(mt8195_pinctrl) = {
.id = UCLASS_PINCTRL,
.of_match = mt8195_pctrl_match,
.ops = &mtk_pinctrl_ops,
.bind = mtk_pinctrl_common_bind,
.probe = mtk_pinctrl_mt8195_probe,
.priv_auto = sizeof(struct mtk_pinctrl_priv),
};

View File

@ -596,6 +596,7 @@ U_BOOT_DRIVER(mt8365_pinctrl) = {
.id = UCLASS_PINCTRL,
.of_match = mt8365_pctrl_match,
.ops = &mtk_pinctrl_ops,
.bind = mtk_pinctrl_common_bind,
.probe = mtk_pinctrl_mt8365_probe,
.priv_auto = sizeof(struct mtk_pinctrl_priv),
};