pinctrl: airoha: an7583: add support for npu_uart pinmux

Add support for uart pin function for npu_uart pin group.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
Mikhail Kshevetskiy 2026-08-07 01:06:08 +03:00 committed by Linus Walleij
parent 8095e8785a
commit 24cde06b06

View File

@ -68,6 +68,7 @@
#define REG_NPU_UART_EN 0x0224
#define JTAG_UDI_EN_MASK BIT(4)
#define JTAG_DFD_EN_MASK BIT(3)
#define NPU_UART_EN_MASK BIT(2)
#define REG_FORCE_GPIO_EN 0x0228
#define FORCE_GPIO_EN(n) BIT(n)
@ -571,7 +572,7 @@ static const char *const sipo_groups[] = { "sipo", "sipo_rclk" };
static const char *const mdio_groups[] = { "mdio" };
static const char *const uart_groups[] = {
"uart2", "uart2_cts_rts", "hsuart", "hsuart_cts_rts",
"uart4", "uart5"
"uart4", "uart5", "npu_uart"
};
static const char *const i2c_groups[] = { "i2c0", "i2c1" };
static const char *const jtag_groups[] = { "jtag_udi", "jtag_dfd" };
@ -751,6 +752,15 @@ static const struct airoha_pinctrl_func_group uart_func_group[] = {
GPIO_UART5_MODE_MASK
},
.regmap_size = 1,
}, {
.name = "npu_uart",
.regmap[0] = {
AIROHA_FUNC_MUX,
REG_NPU_UART_EN,
NPU_UART_EN_MASK,
NPU_UART_EN_MASK
},
.regmap_size = 1,
},
};