2
0

253-pinctrl-mediatek-mt7981-add-additional-uart-group.patch 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. From patchwork Wed Jan 17 12:42:33 2024
  2. Content-Type: text/plain; charset="utf-8"
  3. MIME-Version: 1.0
  4. Content-Transfer-Encoding: 7bit
  5. X-Patchwork-Submitter: Jean Thomas <[email protected]>
  6. X-Patchwork-Id: 13521682
  7. Return-Path:
  8. <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org>
  9. From: Jean Thomas <[email protected]>
  10. To: [email protected],
  11. [email protected],
  12. [email protected],
  13. [email protected],
  14. [email protected],
  15. [email protected],
  16. [email protected],
  17. [email protected]
  18. Cc: Jean Thomas <[email protected]>
  19. Subject: [PATCH 1/2] pinctrl: mediatek: mt7981: add additional uart group
  20. Date: Wed, 17 Jan 2024 13:42:33 +0100
  21. Message-Id: <[email protected]>
  22. MIME-Version: 1.0
  23. List-Id: <linux-mediatek.lists.infradead.org>
  24. Add uart1_3 (pins 26, 27) group to the pinctrl driver for the
  25. MediaTek MT7981 SoC.
  26. Signed-off-by: Jean Thomas <[email protected]>
  27. Reviewed-by: Daniel Golle <[email protected]>
  28. ---
  29. drivers/pinctrl/mediatek/pinctrl-mt7981.c | 7 ++++++-
  30. 1 file changed, 6 insertions(+), 1 deletion(-)
  31. --- a/drivers/pinctrl/mediatek/pinctrl-mt7981.c
  32. +++ b/drivers/pinctrl/mediatek/pinctrl-mt7981.c
  33. @@ -737,6 +737,9 @@ static int mt7981_uart1_1_funcs[] = { 2,
  34. static int mt7981_uart1_2_pins[] = { 9, 10, };
  35. static int mt7981_uart1_2_funcs[] = { 2, 2, };
  36. +static int mt7981_uart1_3_pins[] = { 26, 27, };
  37. +static int mt7981_uart1_3_funcs[] = { 2, 2, };
  38. +
  39. /* UART2 */
  40. static int mt7981_uart2_1_pins[] = { 22, 23, 24, 25, };
  41. static int mt7981_uart2_1_funcs[] = { 3, 3, 3, 3, };
  42. @@ -871,6 +874,8 @@ static const struct group_desc mt7981_gr
  43. PINCTRL_PIN_GROUP("uart1_1", mt7981_uart1_1),
  44. /* @GPIO(9,10): UART1(2) */
  45. PINCTRL_PIN_GROUP("uart1_2", mt7981_uart1_2),
  46. + /* @GPIO(26,27): UART1(2) */
  47. + PINCTRL_PIN_GROUP("uart1_3", mt7981_uart1_3),
  48. /* @GPIO(22,25): UART1(3) */
  49. PINCTRL_PIN_GROUP("uart2_1", mt7981_uart2_1),
  50. /* @GPIO(22,24) PTA_EXT(4) */
  51. @@ -933,7 +938,7 @@ static const struct group_desc mt7981_gr
  52. static const char *mt7981_wa_aice_groups[] = { "wa_aice1", "wa_aice2", "wm_aice1_1",
  53. "wa_aice3", "wm_aice1_2", };
  54. static const char *mt7981_uart_groups[] = { "net_wo0_uart_txd_0", "net_wo0_uart_txd_1",
  55. - "net_wo0_uart_txd_2", "uart0", "uart1_0", "uart1_1", "uart1_2", "uart2_0",
  56. + "net_wo0_uart_txd_2", "uart0", "uart1_0", "uart1_1", "uart1_2", "uart1_3", "uart2_0",
  57. "uart2_0_tx_rx", "uart2_1", "wm_uart_0", "wm_aurt_1", "wm_aurt_2", };
  58. static const char *mt7981_dfd_groups[] = { "dfd", "dfd_ntrst", };
  59. static const char *mt7981_wdt_groups[] = { "watchdog", "watchdog1", };