]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pinctrl: mediatek: Add missing bind callback for several SoCs
authorJulien Stephan <jstephan@baylibre.com>
Thu, 12 Mar 2026 16:19:26 +0000 (17:19 +0100)
committerDavid Lechner <dlechner@baylibre.com>
Tue, 24 Mar 2026 16:10:27 +0000 (11:10 -0500)
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>
drivers/pinctrl/mediatek/pinctrl-mt8188.c
drivers/pinctrl/mediatek/pinctrl-mt8189.c
drivers/pinctrl/mediatek/pinctrl-mt8195.c
drivers/pinctrl/mediatek/pinctrl-mt8365.c

index 386d4d4a922a681a8f562c819a0918a9e24d42c6..256053f269f331a9c1f9ef142234c2c0bbe6fe41 100644 (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),
 };
index b798f3c019be2e333752a62571ec32f5374ebb36..a64440d8bb355287315c61d5b4e6f265383f837b 100644 (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),
 };
index 031ad5f6a8a531f8bca60783dfc2ea01c7677718..db619766a99e45a9fc7dc40e24d87f7f49840adf 100644 (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),
 };
index a6985e488589e4ad7343147ea82844745f764779..0ce99b92a9f0a4c4ef94d317053941df3010bc50 100644 (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),
 };