From: Mikhail Kalashnikov <iuncuim@gmail.com>
To: u-boot@lists.u-boot-project.org
Cc: Andre Przywara <andre.przywara@arm.com>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Tom Rini <trini@konsulko.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Hans de Goede <hdegoede@redhat.com>
Subject: [PATCH 0/5] sunxi: A523: add LPDDR3 DRAM support and Teclast P85T board
Date: Sat, 5 Dec 2026 23:15:23 +0800 [thread overview]
Message-ID: <cover.1796482286.git.iuncuim@gmail.com> (raw)
This series adds initial LPDDR3 DRAM support for the Allwinner A523
(sun55i) SoC and a U-Boot port for the Teclast P85T tablet.
The DRAM programming was reverse-engineered by hand in autumn 2025,
before the LLM era; no LLM was used for the reverse engineering itself.
The patches were formatted with LLM assistance while preparing this
series.
Patch 1 adds additional DDR4 programming that was found while analysing
the vendor boot0/libdram for the LPDDR3 work. There is no A523 DDR4
hardware available, so it is untested and DDR4 support remains
incomplete; the bits are kept for completeness.
Patch 2 adds the LPDDR3 support: PHY ODT and CA delay setup, the mode
register sequence, ODT map/timing, the MSTR rank mask and a new LPDDR3
timing file. The timings are safe fallback values and only 2 GiB of
the P85T's 4 GiB is currently visible; both are known limitations. The
LPDDR3 path has been tested on the P85T.
Patches 3-5 add the Teclast P85T device tree, a temporary backlight
workaround and the board defconfig.
The known limitations have already been addressed with active LLM
assistance. Those changes still need to be verified, refined and fully
understood before submission, so they will be sent later in a follow-up
series.
The corresponding Linux device tree series is available at:
https://lore.kernel.org/linux-sunxi/cover.1796399781.git.iuncuim@gmail.com/T/#t
Based on v2027.01-rc3.
Assisted-by: OpenCode:DeepSeek-V4.1-Flash
Mikhail Kalashnikov (5):
sunxi: A523: add missing DDR4 bits
sunxi: A523: add LPDDR3 DRAM support
arm64: dts: allwinner: add Teclast P85T
[HACK] arm64: dts: allwinner: sun55i-a523-teclast-p85t: keep backlight
on
sunxi: add Teclast P85T defconfig
arch/arm/dts/Makefile | 2 +
arch/arm/dts/sun55i-a523-teclast-p85t.dts | 419 ++++++++++++++++++
.../include/asm/arch-sunxi/dram_sun55i_a523.h | 3 +-
arch/arm/mach-sunxi/Kconfig | 8 +
arch/arm/mach-sunxi/dram_sun55i_a523.c | 102 ++++-
arch/arm/mach-sunxi/dram_timings/Makefile | 1 +
.../arm/mach-sunxi/dram_timings/a523_lpddr3.c | 82 ++++
board/sunxi/MAINTAINERS | 6 +
configs/teclast-p85t_defconfig | 35 ++
9 files changed, 643 insertions(+), 15 deletions(-)
create mode 100644 arch/arm/dts/sun55i-a523-teclast-p85t.dts
create mode 100644 arch/arm/mach-sunxi/dram_timings/a523_lpddr3.c
create mode 100644 configs/teclast-p85t_defconfig
--
2.56.1
next reply other threads:[~2026-12-05 15:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 15:15 Mikhail Kalashnikov [this message]
2026-12-05 15:15 ` [PATCH 1/5] sunxi: A523: add missing DDR4 bits Mikhail Kalashnikov
2026-12-05 15:15 ` [PATCH 2/5] sunxi: A523: add LPDDR3 DRAM support Mikhail Kalashnikov
2026-12-05 15:15 ` [PATCH 3/5] arm64: dts: allwinner: add Teclast P85T Mikhail Kalashnikov
2026-12-05 15:15 ` [PATCH 4/5] [HACK] arm64: dts: allwinner: sun55i-a523-teclast-p85t: keep backlight on Mikhail Kalashnikov
2026-12-05 15:26 ` [PATCH 5/5] sunxi: add Teclast P85T defconfig Mikhail Kalashnikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1796482286.git.iuncuim@gmail.com \
--to=iuncuim@gmail.com \
--cc=andre.przywara@arm.com \
--cc=hdegoede@redhat.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jernej.skrabec@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.