Skip to contentSkip to conversation

Enable PCIe WAKE# as a system wake source on Tegra234

PATCH In review Manikanta Maddireddy 2 participants 4 messages Sep 7 – Oct 2

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Enable PCIe WAKE# as a system wake source on Tegra234

The P3768 carrier board used by Jetson Orin NX and Orin Nano routes the PCIe WAKE# signal to Tegra234 main GPIO L.2. Nothing in the kernel currently describes that signal, so a suspended system cannot be woken by a PCIe endpoint.

This series wires it up in two steps.

Patch 1 adds the PMC wake event mapping for GPIO L.2. This is the piece that lets the GPIO interrupt be armed as a system wake source during suspend, rather than being treated as an ordinary interrupt that is masked along with the rest of the GPIO controller.

Patch 2 describes the signal in device tree, on the root port of the C8 controller. C8 is the controller with the onboard Ethernet NIC on this carrier, so describing WAKE# there is what makes wake-on-LAN usable. The property is consumed by the generic PCI core in pci_configure_of_wake_gpio(), which looks it up on the OF node of the PCI device itself, so no controller driver change is needed.

The two patches touch different subsystems but are only useful together, so they are posted as one series. Patch 2 depends on patch 1 to have any effect.

Testing:

- Verification:
- Verified suspend-to-RAM functionality with no spurious pending wake sources observed.
- Verified wake up through GPIO L.2 using an Ethernet magic packet.
- Verified the reported wake source after resume.
- Verified that regular Ethernet traffic does not trigger an unintended wake-up.
- Confirmed Ethernet connectivity and normal network operation after resume.
- Repeated multiple suspend/resume cycles to verify consistent behavior.
- make ARCH=arm64 CHECK_DTBS=y is clean for the two affected boards,

    tegra234-p3768-0000+p3767-0000 and -0005, with dtschema 2026.6.

- checkpatch --strict reports no issues on either patch.

Note: the series is based on the linux-next 20260817 snapshot rather than a maintainer tree; see the base-commit trailer below. Happy to rebase onto whichever tree you prefer.

Manikanta Maddireddy (2):
soc/tegra: pmc: Add PCIe wake event for Tegra234
arm64: tegra: Add PCIe wake GPIO for Jetson Orin NX/Nano

 .../boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi     | 10 ++++++++++
 drivers/soc/tegra/pmc.c                                |  1 +
 2 files changed, 11 insertions(+)

base-commit: e6664f2b33db9b6811eb4cec109f06cb2b4f458d

Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 soc/tegra: pmc: Add PCIe wake event for Tegra234

GPIO L.2 is used as the PCIe WAKE# signal on Tegra234 platforms.

Add the PMC wake event mapping so the GPIO interrupt can be armed as a system wake source.

---
 drivers/soc/tegra/pmc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/soc/tegra/pmc.c +1 -0
index 41ed716d5857..0ed0a928a7b2 100644
@@ -4421,6 +4421,7 @@ static const char * const tegra234_reset_sources[] = {
 };
 
 static const struct tegra_wake_event tegra234_wake_events[] = {
+	TEGRA_WAKE_GPIO("pcie-wake", 1, 0, TEGRA234_MAIN_GPIO(L, 2)),
 	TEGRA_WAKE_GPIO("sd-wake", 8, 0, TEGRA234_MAIN_GPIO(G, 7)),
 	TEGRA_WAKE_GPIO("eqos", 20, 0, TEGRA234_MAIN_GPIO(G, 4)),
 	TEGRA_WAKE_IRQ("pmu", 24, 209),
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 arm64: tegra: Add PCIe wake GPIO for Jetson Orin NX/Nano

In reply to Manikanta Maddireddy

The C8 PCIe controller on the P3768 carrier has WAKE# wired to main GPIO L.2.

Describe the signal on the root port so PCIe devices can use it as a wake source, enabling wake-on-LAN support.

---
 .../boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi     | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi +10 -0
index 41821354bbda..2af32613b16c 100644
@@ -163,6 +163,16 @@ pcie@140a0000 {
 
 			vddio-pex-ctl-supply = <&vdd_1v8_ao>;
 			vpcie3v3-supply = <&vdd_3v3_pcie>;
+
+			pci@0,0 {
+				reg = <0x0000 0 0 0 0>;
+				device_type = "pci";
+				#address-cells = <3>;
+				#size-cells = <2>;
+				ranges;
+
+				wake-gpios = <&gpio TEGRA234_MAIN_GPIO(L, 2) GPIO_ACTIVE_LOW>;
+			};
 		};
 
 		/* C1 - M.2 Key-E */
Signature · 1 line
2.34.1
maintainer
#3 lore raw
In reply to Manikanta Maddireddy
Quoted 44 lines · Manikanta Maddireddy

The P3768 carrier board used by Jetson Orin NX and Orin Nano routes the PCIe WAKE# signal to Tegra234 main GPIO L.2. Nothing in the kernel currently describes that signal, so a suspended system cannot be woken by a PCIe endpoint.

This series wires it up in two steps.

Patch 1 adds the PMC wake event mapping for GPIO L.2. This is the piece that lets the GPIO interrupt be armed as a system wake source during suspend, rather than being treated as an ordinary interrupt that is masked along with the rest of the GPIO controller.

Patch 2 describes the signal in device tree, on the root port of the C8 controller. C8 is the controller with the onboard Ethernet NIC on this carrier, so describing WAKE# there is what makes wake-on-LAN usable. The property is consumed by the generic PCI core in pci_configure_of_wake_gpio(), which looks it up on the OF node of the PCI device itself, so no controller driver change is needed.

The two patches touch different subsystems but are only useful together, so they are posted as one series. Patch 2 depends on patch 1 to have any effect.

Testing:

- Verification:
- Verified suspend-to-RAM functionality with no spurious pending wake sources observed.
- Verified wake up through GPIO L.2 using an Ethernet magic packet.
- Verified the reported wake source after resume.
- Verified that regular Ethernet traffic does not trigger an unintended wake-up.
- Confirmed Ethernet connectivity and normal network operation after resume.
- Repeated multiple suspend/resume cycles to verify consistent behavior.
- make ARCH=arm64 CHECK_DTBS=y is clean for the two affected boards,

    tegra234-p3768-0000+p3767-0000 and -0005, with dtschema 2026.6.

- checkpatch --strict reports no issues on either patch.

Note: the series is based on the linux-next 20260817 snapshot rather than a maintainer tree; see the base-commit trailer below. Happy to rebase onto whichever tree you prefer.

Quoted 7 lines

Manikanta Maddireddy (2):
soc/tegra: pmc: Add PCIe wake event for Tegra234
arm64: tegra: Add PCIe wake GPIO for Jetson Orin NX/Nano

 .../boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi     | 10 ++++++++++
 drivers/soc/tegra/pmc.c                                |  1 +
 2 files changed, 11 insertions(+)

Both patches applied, thanks.

Thierry