Hi, * Adam Ford <aford173@xxxxxxxxx> [230105 18:32]: > When booting the AM3517-EVM, I get a few errors related to the pm. > > [ 2.038452] pm: Failed to request pm_wkup irq > [ 2.042846] omap2_common_pm_late_init: pm soc init failed: -22 > > omap3_pm_init inside pm34xx.c calls omap_prcm_event_to_irq looking for > "wkup" which returns EINVAL . > > Inside omap_prm.c, there are a bunch of data structures for > omap_prm_data which contain for various boards for AM3, AM4, omap4, > omap5 and dra7, but a reference to ti,omap3-prm-inst appears to be > missing. I looked at the TRM for the AM335X, and i can clearly see a > nice table with addresses that correspond to the tables found in > omap_prm.c, but after looking at both a DM3730 and AM3517 TRM, I am > not seeing a corresponding L4_WKUP Peripheral Memory map. > > If someone can point me in the right direction, I can try to setup the > OMAP3 tables accordingly. The older SoCs set up the prm wakeup via omap3_prcm_irq_setup. Ideally this would be nowadays done using dts and driver/irqchip though. Maybe see omap3xxx_check_features() and try adding flags for OMAP3_HAS_IO_WAKEUP for am3517? Likely this is the same as for 34xx. It may also have OMAP3_HAS_IO_CHAIN_CTRL like 36xx, but likely not. Regards, Tony