jefflo
October 18, 2024, 2:52am
1
My step as bellow:
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)),
make -C kernel
sudo make install -C kernel
make modules
sudo make modules_install
sudo nv-update-initrd
sudo reboot
After into the Linux
sudo systemctl suspend
tie PCIE_WAKE (pin179) to GND → can’t wake up
tie GPIO02 (pin124) to GND → can’t wake up
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)
jefflo:
TEGRA_WAKE_GPIO(“power”, 1, 0, TEGRA234_MAIN_GPIO(L, 2)),
please use different name from “power”
jefflo
October 18, 2024, 6:25am
5
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?
jefflo
October 18, 2024, 6:59am
7
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.
jefflo
October 18, 2024, 7:13am
9
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.
system
Closed
November 1, 2024, 7:15am
11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.