Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] pinctrl: mediatek: support PCIe on MT8196 pins 169-171
@ 2026-12-03 13:05 Arnaud Ferraris
  2026-12-03 13:05 ` [PATCH 1/2] arm64: dts: mediatek: mt8196-pinfunc: Add missing PCIe functions Arnaud Ferraris
                   ` (2 more replies)
  0 siblings, 3 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

Pins 169 to 171 can be used for PCIe port 0 when selecting alternate
mode 6, support this configuration as used on the Genio Pro 5100 EVK.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
---
Arnaud Ferraris (2):
      arm64: dts: mediatek: mt8196-pinfunc: Add missing PCIe functions
      pinctrl: mediatek: mt8196: support PCIe functions for pins 169-171

 arch/arm64/boot/dts/mediatek/mt8196-pinfunc.h | 3 +++
 drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h | 3 +++
 2 files changed, 6 insertions(+)
---
base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
change-id: 20261203-mt8196-pcie-pinctrl-abf2d9f3c17d

Best regards,
--  
Arnaud Ferraris <arnaud.ferraris@collabora.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [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

* Re: [PATCH 0/2] pinctrl: mediatek: support PCIe on MT8196 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 ` [PATCH 2/2] pinctrl: mediatek: mt8196: support PCIe functions for pins 169-171 Arnaud Ferraris
@ 2026-12-03 14:01 ` AngeloGioacchino Del Regno
  2 siblings, 0 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2026-12-03 14:01 UTC (permalink / raw)
  To: Arnaud Ferraris, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Matthias Brugger, Sean Wang, Linus Walleij
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	linux-gpio

On 12/3/26 14:05, Arnaud Ferraris wrote:
> Pins 169 to 171 can be used for PCIe port 0 when selecting alternate
> mode 6, support this configuration as used on the Genio Pro 5100 EVK.
> 
> Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-03 14:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox