pinctrl: mediatek: add rsel setting on mt8192
authorGuodong Liu <guodong.liu@mediatek.com>
Fri, 24 Jun 2022 13:36:58 +0000 (21:36 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 25 Jun 2022 23:25:13 +0000 (01:25 +0200)
commitfe44e49840186c93ae26e3eda2c48c823fc7f33f
tree5b8a31548c34da7acf702767bf757ab6db0da393
parente104141a13a83452a6652651bed99bcdfd0f2874
pinctrl: mediatek: add rsel setting on mt8192

1. I2C pins's resistance value can be controlled by rsel register.
This patch provides rsel (resistance selection) setting on mt8192.
2. Also add the missing pull type array for mt8192 to document the
pull type of each pin and prevent invalid pull type settings.

Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>
Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20220624133700.15487-4-guodong.liu@mediatek.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt8192.c