GPIO Wake in NX

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

hello skumars05rt,

may I know what’s your actual use-case?
GPIO10/GPIO3_PQ.01 already define as GPIO wakes, it is wake40,
thanks

The interrupt pin of gpio expander(PCA9575) connects to GPIO 10. All the gpios in PCA9575 is configured as input. When the module(NX) is in suspend state(Deep Sleep), any high on gpio input (PCA9575) should trigger an interrupt which in turn shall trigger GPIO10 and wake up NX.

hello skumars05rt,

please check developer guide, Kernel Space Power Saving Features.
there’re some common wake sources available on Jetson platforms for your reference,
thanks