pinctrl: mediatek: mtk8189: set get_pinconf functions

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>
This commit is contained in:
David Lechner
2026-03-30 11:00:36 -05:00
parent 76da7482cf
commit 29739f15c0

View 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,
},
};