Has TI gotten gpio wake up working yet?
I setup MCU_GPIO0_0 as a wake up pin and re-enabled the cbass_mcu node in the lpmdemo device tree. However when I try to sleep, gpio-keys fails to setup the gpio as a wakeup source...
gpio-keys { compatible = "gpio-keys"; power { label = "Wake"; gpios = <&mcu_gpio0 0 GPIO_ACTIVE_HIGH>; linux,code = <KEY_WAKEUP>; debounce-interval = <20>; wakeup-source; }; }; &cbass_mcu { status = "okay"; };
root@mitysom-am62x:~# rtcwake -s 5 -m mem rtcwake: wakeup from "mem" using /dev/rtc0 at Fri Apr 14 20:26:38 2023 [ 127.498656] PM: suspend entry (s2idle) [ 127.503207] Filesystems sync: 0.000 seconds [ 127.514880] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 127.523927] OOM killer disabled. [ 127.527192] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 127.682709] am65-cpsw-nuss 8000000.ethernet eth0: Link is Down [ 127.699793] gpio-keys gpio-keys: failed to configure IRQ 264 as wakeup source: -6 [ 127.707432] PM: dpm_run_callback(): platform_pm_suspend+0x0/0x80 returns -6 [ 127.714471] PM: Device gpio-keys failed to suspend: error -6 [ 127.720207] PM: Some devices failed to suspend, or early wake event detected [ 127.728909] PM: dpm_run_callback(): platform_pm_resume+0x0/0x80 returns -19 [ 127.736082] PM: Device 4210000.interrupt-controller failed to resume: error -19 [ 127.743629] PM: dpm_run_callback(): platform_pm_resume+0x0/0x80 returns -19 [ 127.750715] PM: Device bus@f0000:interrupt-controller@a00000 failed to resume: error -19 [ 127.768054] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19 [ 127.790575] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:03] driver [Microchip KSZ9131 Gigabit PHY] (irq=POLL) [ 127.801693] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode [ 127.821518] am65-cpsw-nuss 8000000.ethernet eth1: PHY [8000f00.mdio:04] driver [Microchip KSZ9131 Gigabit PHY] (irq=POLL) [ 127.832600] am65-cpsw-nuss 8000000.ethernet eth1: configuring for phy/rgmii-rxid link mode [ 127.859470] usb-conn-gpio usb_microb_connector: repeated role: 2 [ 127.991723] OOM killer enabled. [ 127.994902] Restarting tasks ... done. [ 128.000717] PM: suspend exit
Also is it possible to use the EXTINTn pin to wake up the SOC?