pinctrl: mediatek: support rsel feature
authorZhiyong Tao <zhiyong.tao@mediatek.com>
Fri, 24 Sep 2021 08:06:31 +0000 (16:06 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 2 Oct 2021 22:43:36 +0000 (00:43 +0200)
commitfb34a9ae383ae26326d4889fd2513e49f1019b88
tree02dcfb2358976b4d60f7ebe396a3a0935d99b499
parent25a74c0f4bf1338af29a32383fb4e1a960ec5063
pinctrl: mediatek: support rsel feature

This patch supports rsel(resistance selection) feature for I2C pins.
It provides more resistance selection solution in different ICs.
It provides rsel define and si unit solution by identifying
"mediatek,rsel_resistance_in_si_unit" property in pio dtsi node.

Signed-off-by: Zhiyong Tao <zhiyong.tao@mediatek.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20210924080632.28410-5-zhiyong.tao@mediatek.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h
drivers/pinctrl/mediatek/pinctrl-paris.c