Hello All,
I am almost in the same situation where I have to use GPIO10 as wakeup pin.
How do I configure GPIO10 as wake up?
The current pin configuration I set is
pinmux.0x02430058 = 0x00000058; # soc_gpio21_pq1: rsvd0, pull-down, tristate-enable, input-enable, lpdr-disable
Is this correct?
For SLEEP/WAKE pin, I see a gpio-key entry as below:
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;
};
};
Do I need to make a similar entry for GPIO10 in the device tree?
Thanks