I want to change the power key to a wake-up key, and I can wake the jetson from suspend when I input a high level to the power key, what should I write in dts? (The dts file I show is transformed from the file in /boot/tegra…dtb)
as you can see.
1st column refer to pin field, 2nd for the pin number, 3rd for the pin state.
however,
you don’t need to revise the code if you’re using power button to wake-up the platform.
please refer to developer guide for Chipset Power States session.
there’re several common wake sources to awakened from deep sleep.
ennn…so if I only have a GPIO high level as my wakeup signal, which of the following may work? Can the wake source (Power Button) work with a high level signal?
And from in pimux table, 0x25 refer to which pin field? 0x24 refer to which pin number? Can I transform this hex code from the pimux table by myself so I can modify it when I need to customize some pins in the future? Thanks!
Thanks! Your reply is very helpful!
And for my question, I am so sorry, I should describe it more clearly.
I mean I have a sensor. When the sensor is triggered, it can give Jetson a high level input(use GPIO) . I try to use this high level signal to arouse my Jetson to work. So I think if there is only one GPIO signal, what can I do to arouse Jetson?
can this sensor still functional when device suspend?
since there’re several common wake sources to awakened from deep sleep. for your use-case, you may rework for using those hardware pin.
In addition, is there a way to convert the dtsi file set (in the kernel) to dtb? Compiling the entire kernel usually takes a lot of time….
(I’m sorry that I’m a newcomer to this field. I didn’t find relevant documents or methods, which caused you a lot of trouble)
it can be done by dtc utility.
for example, you may disassembler the dtb file into text file, dtc -I dtb -O dts -o temp.dts tegra-xxx.dtb
after that, please convert the DTS into a new DTB binary file. dtc -I dts -O dtb -o new-output.dtb temp.dts
you may copy the new dtb file to your file system.
please modify /boot/extlinux/extlinux.conf and specify FDT entry to your binary file. warm-rebooting the device to make the change take effect.
Do I just need to overwrite the dtb file in/boot to make the changes take effect?
Can you describe the process in more detail? I don’t quite understand your description.
please see-also CBoot for [Kernel Boot Sequence Using extlinux.conf] session.
you may add FDT entry, so device tree binary will loaded from file system instead of the kernel-dtb partition.
According to the guidance document, for example, I now have a new dtb file named “new.dtb”, and I have moved it to the/boot directory.
Then I should add a line to the. conf file:
may I also know which Jetpack release you’re using?
please see-also Cboot in 32.7.2 fails to read extlinux.conf - #15 by WayneWWW for the bug fixes if you’re using l4t-r32.7.2
please check release tag, $ cat /etc/nv_tegra_release for confirmation.
thanks