Re: [PATCH 2/4] pinctrl: mediatek: mt6797: Add pin configuration support

From: Roman Vivchar

Date: Wed Dec 02 2026 - 12:48:29 EST


On Wednesday, December 2nd, 2026 at 6:47 PM, Ben Grisdale via B4 Relay <devnull+bengris32.protonmail.ch@xxxxxxxxxx> wrote:

> From: Ben Grisdale <bengris32@xxxxxxxxxxxxx>
>
> The MT6797 pinctrl driver currently only provides support for GPIO
> mode, direction and data, whilst pull, drive strength, input enable,
> Schmitt trigger and slew rate cannot be configured.
>
> Add the IES, SMT, SR, PU, PD, PUPD, R0, R1, DRV, TDSEL and RDSEL fields
> of the four IOCFG banks, along with the pull type and drive strength
> group of each pin, as described in the MT6797 register tables [1].
>
> Link: https://www.96boards.org/documentation/consumer/mediatekx20/additional-docs/docs/MT6797_Register_Table_Part_1.pdf [1]
> Signed-off-by: Ben Grisdale <bengris32@xxxxxxxxxxxxx>
> ---

Tested-by: Roman Vivchar <rva333@xxxxxxxxxxxxxx> # Xiaomi Redmi Note 4 (MTK)