This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: gpio-keys: failed to configure IRQ as wakeup source

Part Number: TDA4VM


Hi TI,

I configure wkup_gpio0_7 as the wakeup source from “mem” power state, but it always fail, could you please help? I'm using SDK8.0, thanks

dts:

	gpio_keys: gpio-keys {
		compatible = "gpio-keys";
		autorepeat;
		pinctrl-names = "default";
		pinctrl-0 = <&sw11_button_pins_default>;

		sw11: sw11 {
			label = "GPIO Key USER2";
			linux,code = <KEY_WAKEUP>;
			gpios = <&wkup_gpio0 7 GPIO_ACTIVE_LOW>;
			interrupt-parent = <&wkup_gpio0>;
            interrupts = <7 IRQ_TYPE_EDGE_BOTH>;
			debounce-interval = <10>;
			wakeup-source;
		};
	};
	
	
	&wkup_pmx0 {
    	sw11_button_pins_default: sw11-button-pins-default {
    		pinctrl-single,pins = <
    			J721E_WKUP_IOPAD(0xcc, PIN_INPUT, 7) /* (G28) WKUP_GPIO0_7 */
    		>;
    	};
    };

fail log:

root@j7-evm:~# echo mem > /sys/power/state
[   74.238387] PM: suspend entry (s2idle)
[   74.245362] Filesystems sync: 0.003 seconds
[   74.253256] Freezing user space processes ... (elapsed 0.000 seconds) done.
[   74.261184] OOM killer disabled.
[   74.264407] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   74.273073] printk: Suspending console(s) (use no_console_suspend to debug)
[   74.301035] gpio-keys gpio-keys: failed to configure IRQ 216 as wakeup source: -6
[   74.301055] PM: dpm_run_callback(): platform_pm_suspend+0x0/0x78 returns -6
[   74.301060] PM: Device gpio-keys failed to suspend: error -6
[   74.301064] PM: Some devices failed to suspend, or early wake event detected
[   74.329772] OOM killer enabled.
[   74.332907] Restarting tasks ... done.
[   74.339576] PM: suspend exit