From: Daniel Golle Date: Tue, 13 Feb 2024 05:30:24 +0000 (+0000) Subject: mediatek: pinctrl-mt7988: add additional uart1_2_lite group X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=430a96ed0d6970caa5ffdd09b2c5af31e51dc67a;p=openwrt%2Fstaging%2Fthess.git mediatek: pinctrl-mt7988: add additional uart1_2_lite group Add UART pinctrl group for using only pins 80 and 81 for uart1. This is needed on the BPi-R4 as RTS/CTS signals are used for other on-board functions. Signed-off-by: Daniel Golle --- diff --git a/target/linux/mediatek/files-6.1/drivers/pinctrl/mediatek/pinctrl-mt7988.c b/target/linux/mediatek/files-6.1/drivers/pinctrl/mediatek/pinctrl-mt7988.c index 2fe17462db..9f92911245 100644 --- a/target/linux/mediatek/files-6.1/drivers/pinctrl/mediatek/pinctrl-mt7988.c +++ b/target/linux/mediatek/files-6.1/drivers/pinctrl/mediatek/pinctrl-mt7988.c @@ -1037,11 +1037,11 @@ static int mt7988_uart2_3_funcs[] = { 3, 3, 3, 3 }; static int mt7988_uart1_2_pins[] = { 80, 81, 82, 83 }; static int mt7988_uart1_2_funcs[] = { 1, 1, 1, 1 }; +static int mt7988_uart1_2_lite_pins[] = { 80, 81 }; +static int mt7988_uart1_2_lite_funcs[] = { 1, 1 }; + static int mt7988_tops_uart1_2_pins[] = { 80, 81 }; -static int mt7988_tops_uart1_2_funcs[] = { - 4, - 4, -}; +static int mt7988_tops_uart1_2_funcs[] = { 4, 4, }; static int mt7988_net_wo0_uart_txd_1_pins[] = { 80 }; static int mt7988_net_wo0_uart_txd_1_funcs[] = { 3 }; @@ -1299,6 +1299,8 @@ static const struct group_desc mt7988_groups[] = { PINCTRL_PIN_GROUP("pcie_wake_n2_1", mt7988_pcie_wake_n2_1), /* @GPIO(80,81,82,83) uart1_2 */ PINCTRL_PIN_GROUP("uart1_2", mt7988_uart1_2), + /* @GPIO(80,81) uart1_2_lite */ + PINCTRL_PIN_GROUP("uart1_2_lite", mt7988_uart1_2_lite), /* @GPIO(80) pwm2 */ PINCTRL_PIN_GROUP("pwm2", mt7988_pwm2), /* @GPIO(81) pwm3 */ @@ -1408,6 +1410,7 @@ static const char * const mt7988_uart_groups[] = { "uart1_1", "uart2_3", "uart1_2", + "uart1_2_lite", "tops_uart1_2", "net_wo0_uart_txd_1", "net_wo1_uart_txd_1",