linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Cannot wake-up from standby with MPC8313
@ 2012-01-04 16:19 Norbert van Bolhuis
  2012-01-04 21:08 ` Scott Wood
  0 siblings, 1 reply; 14+ messages in thread
From: Norbert van Bolhuis @ 2012-01-04 16:19 UTC (permalink / raw)
  To: linuxppc-dev@ozlabs.org


after entering:

echo standby > /sys/power/state

I'm unable to wake up the MPC8313 (on our custom designed
MPC8313 board).

I need it to wake up through GPIO IRQ.
I cause multiple GPIO interrupts (all properly handled by an isr),
but the MPC8313 does not wake up.

How should one wake up via GPGIO IRQ ?

I'm using v2.6.29 and I wonder whether this is related to
our custom 8313 board and/or v2.6.29 and/or missing kernel
patches or maybe this never worked ?

Also, I do not understand line 220 of arch/powerpc/platforms/83xx/suspend.c

219         } else {
220                 out_be32(&pmc_regs->mask, PMCER_PMCI);
221
222                 mpc6xx_enter_standby();

How can wake up ever work if TSEC/GPIO/TIMER/etc.. wake up events
are disabled ?

changing this into "out_be32(&pmc_regs->mask, PMCER_PMCI|PMCER_GPIO);"
gives same result.

MPC8313 is in PCI HOST mode and here's a relevant part
of the DTS:

         pmc: power@b00 {
             compatible = "fsl,mpc8313-pmc", "fsl,mpc8349-pmc";
             reg = <0xb00 0x100 0xa00 0x100>;
             interrupts = <80 8>;
             interrupt-parent = <&ipic>;
             fsl,mpc8313-wakeup-timer = <&gtm1>;

             /* Remove this (or change to "okay") if you have
              * a REVA3 or later board, if you apply one of the
              * workarounds listed in section 8.5 of the board
              * manual, o if you are adapting this device treeSE=
              * to a different board.
              */
             status = "okay";
         };

         gtm1: timer@500 {
             compatible = "fsl,mpc8313-gtm", "fsl,gtm";
             reg = <0x500 0x100>;
             interrupts = <90 8 78 8 84 8 72 8>;
             interrupt-parent = <&ipic>;
         };


Any help/advice/answer is more than welcome.

---
NvBolhuis

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Cannot wake-up from standby with MPC8313
@ 2012-01-23  9:34 nvbolhuis
  0 siblings, 0 replies; 14+ messages in thread
From: nvbolhuis @ 2012-01-23  9:34 UTC (permalink / raw)
  To: scottwood; +Cc: linuxppc-dev


>
> It is mentioned in the MPC8313E manual (4.2.2 step #10) that TRST must
> not be asserted except when PORESET is asserted.  The mpc8313erdb bug
> was that the board was not complying with this.
>

ok, I see.

The board did not comply to the spec and as a side-effect PMC
registers could not be accessed.

Thanks again for all help!

---
NvBolhuis

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

end of thread, other threads:[~2012-01-23 10:30 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 16:19 Cannot wake-up from standby with MPC8313 Norbert van Bolhuis
2012-01-04 21:08 ` Scott Wood
2012-01-05 15:58   ` Norbert van Bolhuis
2012-01-05 18:22     ` Scott Wood
2012-01-06 13:53       ` Norbert van Bolhuis
2012-01-06 21:03         ` Scott Wood
2012-01-13 14:13           ` Norbert van Bolhuis
2012-01-16 20:22             ` Scott Wood
2012-01-17 16:56               ` Norbert van Bolhuis
2012-01-17 22:09                 ` Scott Wood
2012-01-18 10:16                   ` Norbert van Bolhuis
2012-01-20 20:05                     ` Scott Wood
2012-01-23 10:08                       ` ehodys
  -- strict thread matches above, loose matches on Subject: below --
2012-01-23  9:34 nvbolhuis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).