arch/arm/boot/dts/ti/omap/am335x-evm.dts | 2 +- arch/arm/configs/multi_v7_defconfig | 5 +++++ arch/arm/mach-omap2/clockdomain.h | 1 + arch/arm/mach-omap2/clockdomains33xx_data.c | 2 +- arch/arm/mach-omap2/cm33xx.c | 14 +++++++++++++- drivers/pmdomain/ti/omap_prm.c | 8 ++++++-- 6 files changed, 27 insertions(+), 5 deletions(-)
This patch series fixes the Power management issues on TI's am335x soc. on AM335x, the wakeup doesn't work in the case of STANDBY. 1. Since CM3 PM FW [1](ti-v4.1.y) doesn't enable l4ls clockdomain upon wakeup, it fails to wakeup the MPU. To fix this, don't turn off the l4ls clk domain in the STANDBY transition in MPU. 2. Also Per AM335x TRM [2](section 8.1.4.3 Power mode), in case of STANDBY, PER domain should be ON. So fix PER power domain handling for standby. l4ls is a part of the PER domain. Since we are not turning off the l4ls clockdomain on STANDBY in MPU, PER power domain would remain ON. But still, explicitly handle this to be in sync with the STANDBY requirement. 3. On am335x evm[1], UART0 - (UART1-HW) has a wakeup capability. Set the wakeup-source property in DT for AM335x. 4. Enable PM configs for AM335x. [1] https://git.ti.com/cgit/processor-firmware/ti-amx3-cm3-pm-firmware/ [2] https://www.ti.com/lit/ug/spruh73q/spruh73q.pdf [3] https://www.ti.com/tool/TMDXEVM3358 Test log: https://gist.github.com/sukrutb/bdbfd1220fe8578a9decf87d0bac6796 Sukrut Bellary (4): ARM: OMAP2+: Fix l4ls clk domain handling in STANDBY pmdomain: ti: Fix STANDBY handling of PER power domain ARM: dts: am335x: Set wakeup-source for UART0 ARM: multi_v7_defconfig: Enable am335x PM configs arch/arm/boot/dts/ti/omap/am335x-evm.dts | 2 +- arch/arm/configs/multi_v7_defconfig | 5 +++++ arch/arm/mach-omap2/clockdomain.h | 1 + arch/arm/mach-omap2/clockdomains33xx_data.c | 2 +- arch/arm/mach-omap2/cm33xx.c | 14 +++++++++++++- drivers/pmdomain/ti/omap_prm.c | 8 ++++++-- 6 files changed, 27 insertions(+), 5 deletions(-) -- 2.34.1
Hello Sukrut, Keven, Ulf, On 3/18/25 6:00 PM, Sukrut Bellary wrote: > This patch series fixes the Power management issues on TI's am335x soc. > > on AM335x, the wakeup doesn't work in the case of STANDBY. > > 1. Since CM3 PM FW [1](ti-v4.1.y) doesn't enable l4ls clockdomain upon > wakeup, it fails to wakeup the MPU. > To fix this, don't turn off the l4ls clk domain in the STANDBY transition > in MPU. > > 2. Also Per AM335x TRM [2](section 8.1.4.3 Power mode), in case of STANDBY, > PER domain should be ON. So fix PER power domain handling for > standby. l4ls is a part of the PER domain. > > Since we are not turning off the l4ls clockdomain on STANDBY in MPU, > PER power domain would remain ON. But still, explicitly handle this > to be in sync with the STANDBY requirement. > > 3. On am335x evm[1], UART0 - (UART1-HW) has a wakeup capability. > Set the wakeup-source property in DT for AM335x. > > 4. Enable PM configs for AM335x. > > [1] https://git.ti.com/cgit/processor-firmware/ti-amx3-cm3-pm-firmware/ > [2] https://www.ti.com/lit/ug/spruh73q/spruh73q.pdf > [3] https://www.ti.com/tool/TMDXEVM3358 > > Test log: > https://gist.github.com/sukrutb/bdbfd1220fe8578a9decf87d0bac6796 > Thanks for the patches, Sukrut. I was able to test this series on am335x EVM, baseline being rc5 next branch: https://gist.github.com/jmenti/cda1675b5fc5844b6f065376e98026f5 Tested-by: Judith Mendez <jm@ti.com> regards, ~ Judith
Sukrut Bellary <sbellary@baylibre.com> writes: > This patch series fixes the Power management issues on TI's am335x soc. > > on AM335x, the wakeup doesn't work in the case of STANDBY. This series is specifically targetted at the AM335x EVM (which I don't have to test), so I'd appreciate getting any test reports for this before I queue it up. For AM335x, I currently only have the ICEv2 and Beaglebone Black, neithor of which support suspend resume with RTC wake AFAICT. If they do, please enlighten me. :) I was able to do a basic boot test on the 2 boards I have with this series applied on top of v6.15-rc1 and basic boot still works, but I was not able to test the PM path that's being changed here, so any tests on AM3 platforms that actually use this path are appreciated. Kevin
On Fri, 11 Apr 2025 at 02:30, Kevin Hilman <khilman@baylibre.com> wrote: > > Sukrut Bellary <sbellary@baylibre.com> writes: > > > This patch series fixes the Power management issues on TI's am335x soc. > > > > on AM335x, the wakeup doesn't work in the case of STANDBY. > > This series is specifically targetted at the AM335x EVM (which I don't > have to test), so I'd appreciate getting any test reports for this > before I queue it up. > > For AM335x, I currently only have the ICEv2 and Beaglebone Black, > neithor of which support suspend resume with RTC wake AFAICT. If they > do, please enlighten me. :) > > I was able to do a basic boot test on the 2 boards I have with this > series applied on top of v6.15-rc1 and basic boot still works, but I was > not able to test the PM path that's being changed here, so any tests on > AM3 platforms that actually use this path are appreciated. > > Kevin Is the pmdomain patch(3) ready to be applied here? Please let me know if you want me to pick it up. Kind regards Uffe
Ulf Hansson <ulf.hansson@linaro.org> writes: > On Fri, 11 Apr 2025 at 02:30, Kevin Hilman <khilman@baylibre.com> wrote: >> >> Sukrut Bellary <sbellary@baylibre.com> writes: >> >> > This patch series fixes the Power management issues on TI's am335x soc. >> > >> > on AM335x, the wakeup doesn't work in the case of STANDBY. >> >> This series is specifically targetted at the AM335x EVM (which I don't >> have to test), so I'd appreciate getting any test reports for this >> before I queue it up. >> >> For AM335x, I currently only have the ICEv2 and Beaglebone Black, >> neithor of which support suspend resume with RTC wake AFAICT. If they >> do, please enlighten me. :) >> >> I was able to do a basic boot test on the 2 boards I have with this >> series applied on top of v6.15-rc1 and basic boot still works, but I was >> not able to test the PM path that's being changed here, so any tests on >> AM3 platforms that actually use this path are appreciated. >> >> Kevin > > Is the pmdomain patch(3) ready to be applied here? Please let me know > if you want me to pick it up. Not yet, I have some concerns so I'd like to see more testing on the actual hardware, which I don't have (yet, but it's on the way). Kevin
© 2016 - 2025 Red Hat, Inc.