diff options
author | Daniel Golle <daniel@makrotopia.org> | 2024-02-13 05:30:24 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2024-02-15 19:06:37 +0000 |
commit | 430a96ed0d6970caa5ffdd09b2c5af31e51dc67a (patch) | |
tree | 6b669a6017e4fd5f73abfc88e9dcef807bfc9170 /target | |
parent | 42cf04dd05cfccb31a688d7f9cf1b8952b4069f0 (diff) | |
download | openwrt-430a96ed0d6970caa5ffdd09b2c5af31e51dc67a.tar.gz openwrt-430a96ed0d6970caa5ffdd09b2c5af31e51dc67a.tar.bz2 openwrt-430a96ed0d6970caa5ffdd09b2c5af31e51dc67a.zip |
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 <daniel@makrotopia.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/mediatek/files-6.1/drivers/pinctrl/mediatek/pinctrl-mt7988.c | 11 |
1 files changed, 7 insertions, 4 deletions
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", |