All of lore.kernel.org
 help / color / mirror / Atom feed
* AM3517 Failed to request pm_wkup irq
@ 2023-01-05 18:32 Adam Ford
  2023-01-12 10:20 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Ford @ 2023-01-05 18:32 UTC (permalink / raw)
  To: Linux-OMAP; +Cc: Tony Lindgren

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.

thanks

adam

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: AM3517 Failed to request pm_wkup irq
  2023-01-05 18:32 AM3517 Failed to request pm_wkup irq Adam Ford
@ 2023-01-12 10:20 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2023-01-12 10:20 UTC (permalink / raw)
  To: Adam Ford; +Cc: Linux-OMAP

Hi,

* Adam Ford <aford173@gmail.com> [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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-12 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-05 18:32 AM3517 Failed to request pm_wkup irq Adam Ford
2023-01-12 10:20 ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.