Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: mt8173: set GPIO16 to usb iddig mode

the default mode of GPIO16 pin is gpio, when set EINT16 to
IRQ_TYPE_LEVEL_HIGH, no interrupt is triggered, it can be
fixed when set its default mode as usb iddig.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Chunfeng Yun and committed by
Linus Walleij
222ed59e 85ae9e51

+1 -1
+1 -1
drivers/pinctrl/mediatek/pinctrl-mtk-mt8173.h
··· 201 201 MTK_PIN( 202 202 PINCTRL_PIN(16, "IDDIG"), 203 203 NULL, "mt8173", 204 - MTK_EINT_FUNCTION(0, 16), 204 + MTK_EINT_FUNCTION(1, 16), 205 205 MTK_FUNCTION(0, "GPIO16"), 206 206 MTK_FUNCTION(1, "IDDIG"), 207 207 MTK_FUNCTION(2, "CMFLASH"),