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.

AM5726: PMIC VSYS_MON interrupt

Part Number: AM5726
Other Parts Discussed in Thread: AM5729, AM5728, BEAGLEBOARD-X15, TPS659037

Hi Sitara Team,

I have a customer currently working on a design utilizing the AM5726.

They are using the Yocto Linux build on the BeagleBoard x15 rev. B1 (AM5729) to familiarize themselves with the AM57x family.

One issue they've noticed, is detecting a loss-of-power condition using the VSYS_MON interrupt from the x15’s TPS65903x. 

They have tried creating a generic-uio device with a gpio1_0 interrupt in the device tree, but the existing tps659038 device in the .dts already uses gpio1_0 (presumably for the palmas RTC), so the uio_pdrv_genirq module is unable to create my device as /dev/uio0.

Any answers or resources you can point us to would be incredibly helpful. They can provide snippets of the current device tree if it would be useful. So far they’ve been able to resolve most of their issues by searching for answers on the TI E2E forums, but they haven’t found much information on handling interrupts on PMIC_INT connected to the Wakeup0 line in the Beagle x15.

Thanks!

Barend

  • Thanks for the post Barend.
    I should add that I have been able to create /dev/uio0 by removing the GPIO1_0 interrupt from tps659038 in the device tree (and disabling the devices that use tps659038 as an interrupt-parent), but still did not see an interrupt via /dev/uio0 when power is removed from the 12v power brick supplying the x15.
    This led me to check the x15 schematic & power-down timing diagram of the TPS659036 chip and it looks like what I want to do may not be possible using an interrupt from VSYS_MON on the PMIC_INT line into the Sitara (confirm/refute ?)
    I have worked out a few approaches external to the TPS chip, attached to one of the Sitara GPIOs, but would like to know if something external to the TPS is really the best/only option.

  • Hi Barend and Kent,

    From what I understand, you are using BeagleBoard-X15 rev B1 board, that comes with AM5728 device and TPS659037 PMIC.

    BeagleBoard-X15 is supported with AM57x PSDK 02_00_02_11, kernel 4.1.18

    software-dl.ti.com/.../index_FDS.html
    processors.wiki.ti.com/index.php

    And the issue you have is that you can not generate interrupt request from PMIC (pin K1, signal PMIC_INT) to AM5728 device (pin AD17, signal WAKEUP0), is that correct?

    Generating PMIC_INT (VSYS_MON) is specific for TPS659037 PMIC, not to AM5728 device. For how to generate PMIC VSYS_MON interrupt, you should check TPS659037 PMIC documentation. Check also below user guide:

    www.ti.com/.../sliu011e.pdf

    If you still have questions specific for TPS659037 PMIC, you can ask/post in the PMIC forum:

    e2e.ti.com/.../200

    If you have questions specific for AM572x linux DTS files, please update this e2e thread with your questions.

    Regards,
    Pavel