* [PATCH 1/2] arm64: dts: mediatek: mt8196-pinfunc: Add missing PCIe functions
2026-12-03 13:05 [PATCH 0/2] pinctrl: mediatek: support PCIe on MT8196 pins 169-171 Arnaud Ferraris
@ 2026-12-03 13:05 ` Arnaud Ferraris
2026-12-03 13:05 ` [PATCH 2/2] pinctrl: mediatek: mt8196: support PCIe functions for pins 169-171 Arnaud Ferraris
2026-12-03 14:01 ` [PATCH 0/2] pinctrl: mediatek: support PCIe on MT8196 " AngeloGioacchino Del Regno
2 siblings, 0 replies; 4+ messages in thread
From: Arnaud Ferraris @ 2026-12-03 13:05 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Linus Walleij
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-gpio, Arnaud Ferraris
GPIOs 169 to 171 can also be used for PCI-Express using function 6.
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
---
arch/arm64/boot/dts/mediatek/mt8196-pinfunc.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8196-pinfunc.h b/arch/arm64/boot/dts/mediatek/mt8196-pinfunc.h
index 99535a6d5cbac..b93b512bab010 100644
--- a/arch/arm64/boot/dts/mediatek/mt8196-pinfunc.h
+++ b/arch/arm64/boot/dts/mediatek/mt8196-pinfunc.h
@@ -1060,17 +1060,20 @@
#define PINMUX_GPIO169__FUNC_GPIO169 (MTK_PIN_NO(169) | 0)
#define PINMUX_GPIO169__FUNC_SCP_SPI2_CS (MTK_PIN_NO(169) | 1)
#define PINMUX_GPIO169__FUNC_SPI2_B_CSB (MTK_PIN_NO(169) | 2)
+#define PINMUX_GPIO169__FUNC_PCIE_WAKEN (MTK_PIN_NO(169) | 6)
#define PINMUX_GPIO169__FUNC_DBG_MON_A27 (MTK_PIN_NO(169) | 7)
#define PINMUX_GPIO170__FUNC_GPIO170 (MTK_PIN_NO(170) | 0)
#define PINMUX_GPIO170__FUNC_SCP_SPI2_MO (MTK_PIN_NO(170) | 1)
#define PINMUX_GPIO170__FUNC_SPI2_B_MO (MTK_PIN_NO(170) | 2)
#define PINMUX_GPIO170__FUNC_SCP_SDA2 (MTK_PIN_NO(170) | 4)
+#define PINMUX_GPIO170__FUNC_PCIE_CLKREQN (MTK_PIN_NO(170) | 6)
#define PINMUX_GPIO170__FUNC_DBG_MON_A28 (MTK_PIN_NO(170) | 7)
#define PINMUX_GPIO171__FUNC_GPIO171 (MTK_PIN_NO(171) | 0)
#define PINMUX_GPIO171__FUNC_SCP_SPI2_MI (MTK_PIN_NO(171) | 1)
#define PINMUX_GPIO171__FUNC_SPI2_B_MI (MTK_PIN_NO(171) | 2)
+#define PINMUX_GPIO171__FUNC_PCIE_PERSTN (MTK_PIN_NO(171) | 6)
#define PINMUX_GPIO171__FUNC_DBG_MON_A29 (MTK_PIN_NO(171) | 7)
#define PINMUX_GPIO172__FUNC_GPIO172 (MTK_PIN_NO(172) | 0)
--
2.53.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] pinctrl: mediatek: mt8196: support PCIe functions for pins 169-171
2026-12-03 13:05 [PATCH 0/2] pinctrl: mediatek: support PCIe on MT8196 pins 169-171 Arnaud Ferraris
2026-12-03 13:05 ` [PATCH 1/2] arm64: dts: mediatek: mt8196-pinfunc: Add missing PCIe functions Arnaud Ferraris
@ 2026-12-03 13:05 ` Arnaud Ferraris
2026-12-03 14:01 ` [PATCH 0/2] pinctrl: mediatek: support PCIe on MT8196 " AngeloGioacchino Del Regno
2 siblings, 0 replies; 4+ messages in thread
From: Arnaud Ferraris @ 2026-12-03 13:05 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Linus Walleij
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-gpio, Arnaud Ferraris
GPIOs 169 to 171 can also be used for PCI-Express using function 6.
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
---
drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h b/drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h
index c2a7e239a234d..58d7c95d67399 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h
@@ -1740,6 +1740,7 @@ static const struct mtk_pin_desc mtk_pins_mt8196[] = {
MTK_FUNCTION(0, "GPIO169"),
MTK_FUNCTION(1, "SCP_SPI2_CS"),
MTK_FUNCTION(2, "SPI2_B_CSB"),
+ MTK_FUNCTION(6, "PCIE_WAKEN"),
MTK_FUNCTION(7, "DBG_MON_A27")
),
MTK_PIN(
@@ -1750,6 +1751,7 @@ static const struct mtk_pin_desc mtk_pins_mt8196[] = {
MTK_FUNCTION(1, "SCP_SPI2_MO"),
MTK_FUNCTION(2, "SPI2_B_MO"),
MTK_FUNCTION(4, "SCP_SDA2"),
+ MTK_FUNCTION(6, "PCIE_CLKREQN"),
MTK_FUNCTION(7, "DBG_MON_A28")
),
MTK_PIN(
@@ -1759,6 +1761,7 @@ static const struct mtk_pin_desc mtk_pins_mt8196[] = {
MTK_FUNCTION(0, "GPIO171"),
MTK_FUNCTION(1, "SCP_SPI2_MI"),
MTK_FUNCTION(2, "SPI2_B_MI"),
+ MTK_FUNCTION(6, "PCIE_PERSTN"),
MTK_FUNCTION(7, "DBG_MON_A29")
),
MTK_PIN(
--
2.53.0
^ permalink raw reply related [flat|nested] 4+ messages in thread