Skip to content

IO+DDR low power mode bugfixes for AM62P and AM62A

Akashdeep Kaur u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

--------------
- Combined DDR errata workaround and 32kHz LFOSC patches into single series
- Rebased on v2026.01-rc4 with IO+DDR v9 series applied
- Link to v1: https://lore.kernel.org/u-boot/[email protected]/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ram: ti: k3-ddrss: Add workaround sequence for errata i2487drivers/ram/k3-ddrss/k3-ddrss-lpm.c drivers/ram/k3-ddrss/k3-ddrss-lpm.h drivers/ram/k3-ddrss/k3-ddrss.c+86 -00 replies
2/4mach-k3: am62xx-lpm: Add 32kHz LFOSC enable function declarationarch/arm/mach-k3/am62xx-lpm-common.h+1 -00 replies
3/4mach-k3: am62px: Enable 32kHz LFOSC during LPM resumearch/arm/mach-k3/am62px/am62p5_init.c+3 -00 replies
4/4mach-k3: am62ax: Enable 32kHz LFOSC during LPM resumearch/arm/mach-k3/am62ax/am62a7_init.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] IO+DDR low power mode bugfixes for AM62P and AM62A

This series provides bugfixes for IO+DDR low power mode on AM62P and AM62A SoCs by adding DDR errata workaround and 32kHz clock restoration.

Background:
-----------
During IO + DDR low power mode, the system enters into low power with DDR in self-refresh. For proper resume operation, two critical aspects must be handled:

1. DDR Retention Latch: AM62AX and AM62PX are affected by errata i2487 where DDR retention mode transition may fail, leading to data corruption. A workaround sequence must clear the retention latch on every boot.

2. 32kHz Clock Source: The SoC requires an accurate 32kHz clock for timing-critical subsystems. Without restoring the 32kHz LFOSC early during resume, the system falls back to the 32K RC oscillator (±20% accuracy), which is insufficient for components like RTC that rely on accurate timekeeping.

Changes:
--------
Patch 1: Add DDR errata i2487 workaround sequence that clears the data
retention latch on every boot and abort scenarios. This ensures successful IO+DDR LPM resume for AM62AX and AM62PX.

Patches 2-4: Enable 32kHz LFOSC during LPM resume for AM62P and AM62A SoCs.
Add function declaration to common LPM header and call it during resume path for both SoCs. Conditionally enabled via CONFIG_TI_K3_BOARD_LFOSC for boards with external crystal oscillators.

Testing:
--------
Tested IO + DDR low power mode on AM62PX-SK

Dependencies:
-------------
This series depends on the IO+DDR base support series v9 by Markus Schneider-Pargmann:
https://lore.kernel.org/u-boot/20260105-topic-am62-ioddr-v2025-04-rc1-v9-0-7e33f2c77dbf@baylibre.com/

Base commit: v2026.01-rc4 (0e0a198a68be)

Changes in v2:
--------------
- Combined DDR errata workaround and 32kHz LFOSC patches into single series
- Rebased on v2026.01-rc4 with IO+DDR v9 series applied
- Link to v1: https://lore.kernel.org/u-boot/[email protected]/

---

Akashdeep Kaur (4):
ram: ti: k3-ddrss: Add workaround sequence for errata i2487
mach-k3: am62xx-lpm: Add 32kHz LFOSC enable function declaration
mach-k3: am62px: Enable 32kHz LFOSC during LPM resume
mach-k3: am62ax: Enable 32kHz LFOSC during LPM resume

 arch/arm/mach-k3/am62ax/am62a7_init.c |  3 +
 arch/arm/mach-k3/am62px/am62p5_init.c |  3 +
 arch/arm/mach-k3/am62xx-lpm-common.h  |  1 +
 drivers/ram/k3-ddrss/k3-ddrss-lpm.c   | 80 +++++++++++++++++++++++++++
 drivers/ram/k3-ddrss/k3-ddrss-lpm.h   |  1 +
 drivers/ram/k3-ddrss/k3-ddrss.c       |  5 ++
 6 files changed, 93 insertions(+)
Signature · 1 line
2.34.1