I decompiled my dtb into a dts with dtc and then added the following lines at the end of the gpio-keys section, however after reflashing the Jetson, the code changes didnt work to wake the jetson with the GPIO9_MOTION_INT pin, and now my power button wont even wake the Jetson (only keyboard keystrokes will wake it). Can anyone provide some input by chance? I got the address of the GPIO9_MOTION_INT pin for the gpios = <0x1c 0x12a 0x1> line from the Jetson hacks page https://www.jetsonhacks.com/nvidia-jetson-tx2-j21-header-pinout/ for the TX2 J21 where the GPIO9_MOTION_INT address is gpio298 = 0x12a.
gpio-keys {
compatible = "gpio-keys";
gpio-keys,name = "gpio-keys";
power {
label = "Power";
gpios = <0x1c 0x38 0x1>;
linux,code = <0x74>;
gpio-key,wakeup;
};
volume_up {
label = "Volume Up";
gpios = <0x1c 0x39 0x1>;
linux,code = <0x73>;
};
volume_down {
label = "Volume Down";
gpios = <0x1c 0x3a 0x1>;
linux,code = <0x72>;
};
[b] motion_wake {
label = "Motion Wake";
gpios = <0x1c 0x12a 0x1>;
linux,code = <0x8f>;
gpio-key,wakeup;[/b]
};
};