chengp
August 8, 2020, 12:05am
1
Hi,
I am trying to read the signal from S2 button. I figure out its gpio number, but it is occupied by the kernel to control volume down, I think. So how can I unconfigure this original function and read the signal from the button?
Thanks in advance
hello chengp,
you may access TX2 Product Design Guide and check [Table 5. Power & System Pin Descriptions].
please also download Pinmux spreadsheets and refer to Pinmux Changes session to have customization.
thanks
chengp:
I am trying to read the signal from S2 button. I figure out its gpio number, but it is occupied by the kernel to control volume down, I think. So how can I unconfigure this original function and read the signal from the button?
You need to remove the volume_down
key from your dts file, rebuild it, and load it to your device. Here is what you are looking for to remove:
volume_down {
label = "Volume Down";
gpios = <&tegra_aon_gpio TEGRA_AON_GPIO(FF, 2) GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEDOWN>;
};
If you remove that from your DTS/DTSI file you should be able to use the GPIO however you like in your design.
1 Like
chengp
August 10, 2020, 5:05pm
5
Thanks for reply. Will check.
chengp
August 10, 2020, 5:07pm
6
Thanks. Got it! Trying to find it.
Where can I find the dts file? I’ve seen almost all the relevant links on forum but did’t fint one how to find it.
I am using Jetpack 5
kayccc
November 25, 2020, 5:17am
10
Hi wenjian.zhao,
Please help to open a new topic for your issue. Thanks.