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.

am335x resume problem with GPIO1-3

Other Parts Discussed in Thread: AM3354

Hi TI,

I am working on custom board to be applied in automotive industry. We are using am3354 with Android JB 4.2.2. We are close to a completion however we ran into problem with waking the board up. It appears that suspend/resume cycle works fine as the kernel wakes up properly however none of the GPIO modules 1-4 resumes functionality after resume. Therefore all of the drivers that user any of these gpio pins fail to resume properly. On the other hand GPIO0 resumes fine.

After extensive investigation I believe the problem happens in CM3 pm firmware. It looks like some issue with PER power or clock. Since I have limited ways to debug that I was hoping that you may have some information of what could go wrong and whether our CPU is fully supported by the firmware. Also any other information would be welcome,

Your advise will be greatly appreciated.

Thanks,

Nem

  • Hi there,

    I was able to solve the GPIO problem by restoring the GPIO direction context after resume.

    After that i ran into a problem where the board wouldn't wake up if I leave it asleep for longer than 10 seconds. Just for the record, we use DDR and PMIC setup identical to BBB. Any advise on this problem would be greatly appreciated.

    Thanks,

    Nem

  • Hello Nemanja,

    We have a board that uses the same type of microprocessor (am335x family) - and we are seeing the same issue that you posted about on June 4th.   Our board will go to sleep but will not wake-up..    Would you be willing to share how you resolved this issue?

    Thanks!

    -Jake

  • Hi Jake,

    which GPIO are you using to wake up the board?
    Only GPIO from bank 0 should be able to perform a wake up from suspend.

    If you are using a GPIO from bank 0, then, are you able to reproduce this on one of the reference platform (Beagleboneblack, EVM, StarterKit)?