Equipment environment:
Jetson Xavier NX
JetPack 4.6
kernel-4.9
Goal:
I want to configure 240 pin so that I can wake up Jetson Xavier NX through it.
Problem:
When I add content to the dtsi
file located in the following path and generate device tree:
kernel_src/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3509-0000-a00.dtsi
the compiler reports a syntax error.
Here is what I have added
gpio-keys {
compatible = "gpio-keys";
gpio-keys,name = "gpio-keys";
forcerecovery {
label = "force-recovery";
gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(G, 0) GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
};
power_key {
label = "power-key";
gpios = <&tegra_aon_gpio TEGRA194_AON_GPIO(EE, 4) GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>;
gpio-key,wakeup;
};
// I added
wake_up {
label = "Wake_up";
gpios = <&tegra_aon_gpio TEGRA194_AON_GPIO(EE, 4) GPIO_ACTIVE_LOW>;
linux,code = <KEY_WAKEUP>;
gpio-key,wakeup;
debounce-interval = <30>;
nvidia,pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_EVENT 29 PMC_TRIGGER_TYPE_RISING>; // got error
};//
How should I modify the following statement?
nvidia,pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_EVENT 29 PMC_TRIGGER_TYPE_RISING>;
Thank you so much for helping me!