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.

AM5728: PMIC shutdown

Part Number: AM5728

Hi,

My customer is using AM5728 on custom board.
On the board, PMIC(TPS6590379) POWERHOLD pin is used to control software power-down sequence.
- BOOT1 pin is pull-down (0)
- POWERHOLD pin is connected to AM5728 GPIO. The pin is driven to 0 when system wants to shut-down.

I understood our SDK does not support POWERHOLD.
Customer uses SDK Linux v03.03.00.04 based software and wants to know where they need to modify to enable POWERHOLD feature.

I found below E2E thread for similar topic.
https://e2e.ti.com/support/processors/f/791/p/765202/2829525
According to this thread,
- If BOOT1=0, DEV_ON bit needs to be set 0 and POWERHOLD pin is 0 to shut down the PMIC.
Is this only part customer should modify in SDK?

Thanks and regards,
Koichiro Tashiro

  • Hi Koichiro,

    You need to use "ti,palmas-override-powerhold" in your DTS file. Check below files for reference:

    linux-4.19.38/Documentation/devicetree/bindings/pinctrl/pinctrl-palmas.txt

    linux-4.19.38/drivers/mfd/palmas.c

    linux-4.19.38/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi

    linux-4.19.38/arch/arm/boot/dts/am57xx-idk-common.dtsi

    You can also go through the below user guide:

    Regards,
    Pavel

  • Hi Pavel,

    Thanks for your quick reply.

    Customer wants to know what exactly the “ti,palmas-override-powerhold” does.
    I guess below two configurations are needed at least. What else?
    a) set bit5 of PRIMARY_SECONDARY_PAD2 register in PMIC
    b) clear bit0(DEV_ON) of DEV_CTRL register in PMIC

    Thanks and regards,
    Koichiro Tashiro

  • Koichiro,

    ti,palmas-override-powerhold: This is applicable for PMICs for which GPIO7 is configured in POWERHOLD mode which has higher priority over DEV_ON bit and keeps the PMIC supplies on even after the DEV_ON bit is turned off. This property enables driver to over ride the POWERHOLD value to GPIO7 so as to turn off the PMIC in power off scenarios. So for GPIO7 if ti,palmas-override-powerhold is set then the GPIO_7 field should never be muxed to anything else. It should be set to POWERHOLD by default and only in case of power off scenarios the driver will over ride the mux value.

    You can also explore below file for how ti,palmas-override-powerhold is handled:

    linux-4.19.38/drivers/mfd/palmas.c

    From AM57x device side, you just need to control GPIO pin, For AM57x GPIO handling in Linux, refer to below user guide:

    Koichiro Tashiro said:
    I guess below two configurations are needed at least. What else?
    a) set bit5 of PRIMARY_SECONDARY_PAD2 register in PMIC
    b) clear bit0(DEV_ON) of DEV_CTRL register in PMIC

    These questions are specific for TPS6590379 PMIC, and would be best answered in the power management forum:

    Regards,
    Pavel