]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pinctrl: mediatek: mtk8189: set get_pinconf functions
authorDavid Lechner <dlechner@baylibre.com>
Mon, 30 Mar 2026 16:00:36 +0000 (11:00 -0500)
committerDavid Lechner <dlechner@baylibre.com>
Tue, 7 Apr 2026 15:47:04 +0000 (10:47 -0500)
Set the get_pinconf functions for the mt8189 pinctrl driver. This will
append pinconf bias info to the output of the pinmux status command.
This is useful for debugging pin configuration issues.

Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>
Link: https://patch.msgid.link/20260330-pinctrl-mtk-fix-mt8189-v2-4-05a737ec623d@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
drivers/pinctrl/mediatek/pinctrl-mt8189.c

index 9bcabe031519c49e23359cd1edf264db1ea0b8db..b01533ed80b56b0dbc35626e52e61dd55613de4d 100644 (file)
@@ -1273,18 +1273,21 @@ static const struct mtk_io_type_desc mt8189_io_type_desc[] = {
                .bias_set = mtk_pinconf_bias_set_pu_pd,
                .drive_set = mtk_pinconf_drive_set_v1,
                .input_enable = mtk_pinconf_input_enable_v1,
+               .get_pinconf = mtk_pinconf_get_pu_pd,
        },
        [IO_TYPE_GRP1] = {
                .name = "MSDC",
                .bias_set = mtk_pinconf_bias_set_pupd_r1_r0,
                .drive_set = mtk_pinconf_drive_set_v1,
                .input_enable = mtk_pinconf_input_enable_v1,
+               .get_pinconf = mtk_pinconf_get_pupd_r1_r0,
        },
        [IO_TYPE_GRP2] = {
                .name = "I2C",
                .bias_set = mtk_pinconf_bias_set_pu_pd_rsel,
                .drive_set = mtk_pinconf_drive_set_v1,
                .input_enable = mtk_pinconf_input_enable_v1,
+               .get_pinconf = mtk_pinconf_get_pu_pd_rsel,
        },
 };