JP6.1 Configuration for wake up event (Jetson Orin Nano)

My step as bellow:

  1. modify Linux_for_Tegra/source/kernel/kernel-jammy-src/drivers/soc/tegra/pmc.c
    TEGRA_WAKE_GPIO(“power”, 1, 0, TEGRA234_MAIN_GPIO(L, 2)),
    TEGRA_WAKE_GPIO(“power”, 37, 0, TEGRA234_MAIN_GPIO(P, 6)),
  2. make -C kernel
  3. sudo make install -C kernel
  4. make modules
  5. sudo make modules_install
  6. sudo nv-update-initrd
  7. sudo reboot
    After into the Linux
  8. sudo systemctl suspend
  9. tie PCIE_WAKE (pin179) to GND → can’t wake up
  10. tie GPIO02 (pin124) to GND → can’t wake up
  11. tie PWR_BTN (pin240) to GND → system wake up

How can fix PCIE_WAKE and GPIO02 for wake up ?
Thanks.
pmc.txt (123.3 KB)
tegra234-mb1-bct-gpio-p3767-dp-a03.txt (3.8 KB)

please use different name from “power”

Modify as below:
TEGRA_WAKE_GPIO(“pcie_wake”, 1, 0, TEGRA234_MAIN_GPIO(L, 2)),
TEGRA_WAKE_GPIO(“gpio02”, 37, 0, TEGRA234_MAIN_GPIO(P, 6)),
But still can’t wake up.

What is the result of /proc/interrupts and cat /sys/kernel/debug/gpio when you give input to these GPIOs? Does it get toggled?

gpio.txt (6.8 KB)
interrupts-before.txt (15.0 KB)
interrupts-tie_gnd.txt (15.0 KB)

No, it seems there’s no trigger.
If tie PWN_BTN to GND , we can see the trigger.

please add gpio-key to the device tree with these two gpio similar to what power key is doing and see if you can see the interrupt with that.

	key-power {
		label = "pcie_wake";
		gpios = <0x105 0x24 0x01>;
		linux,input-type = <0x01>;
		linux,code = <0x74>;
		wakeup-event-action = <0x01>;
		wakeup-source;
	};

	key-power {
		label = "gpio02";
		gpios = <0x105 0x24 0x01>;
		linux,input-type = <0x01>;
		linux,code = <0x74>;
		wakeup-event-action = <0x01>;
		wakeup-source;

Can you guide me on how to modify these values?
EX:0x105 / 0x24 …etc.

You should download the source code directly and you will understand the meaning…

Such method to convert back from dtc is full of hex values and of course you won’t be able to read it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.