[PATCH v2 4/4] pinctrl: mediatek: mtk8189: set get_pinconf functions

Macpaul Lin (林智斌) Macpaul.Lin at mediatek.com
Tue Apr 7 16:45:58 CEST 2026


On Mon, 2026-03-30 at 11:00 -0500, David Lechner wrote:
> 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.
> 
> Signed-off-by: David Lechner <dlechner at baylibre.com>
> ---
>  drivers/pinctrl/mediatek/pinctrl-mt8189.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8189.c
> b/drivers/pinctrl/mediatek/pinctrl-mt8189.c
> index 9bcabe03151..b01533ed80b 100644
> --- a/drivers/pinctrl/mediatek/pinctrl-mt8189.c
> +++ b/drivers/pinctrl/mediatek/pinctrl-mt8189.c
> @@ -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,
>  	},
>  };
>  
> 

Reviewed-by: Macpaul Lin <macpaul.lin at mediatek.com>

Thanks!
Macpaul Lin


More information about the U-Boot mailing list