From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9969606A322 for ; Sat, 5 Dec 2026 15:58:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=nyJDQKcF; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=SkFLDNnr Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7E05B81EA4; Sat, 5 Dec 2026 15:58:56 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id xlHC86H7vSCP; Sat, 5 Dec 2026 15:58:55 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 7A9F081F56 Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796486335; b=ZsEjzbhA85KrKwfbvBaryOnW9EH9s8LL69r4SHO9G0SOGyeKEmXcURseh/+6a7Q11wGT 94zy4mEFIA9XeSr3W0zAyL84PXhKKfqTtbL7PmLonDra0Me2u1aYQboNlQQ8a4DHiJtgF m4/CCOdRESGKZHh7sUblgMfnzDnyY0AS9Yu5lkdRUUtL9p/6YJeS25BdNwvBYabnDX5Lk +h1rdhKCX14NeHy4Ksb0xqLSjeD1OKk67M4MU7gRcggMecaxq3EjCTpmFQM+PEboEjFjB jsMlBtH2MT/Q/1KvQDxFSa++5HvCyVy4tv5lKC4uzrmdJA8vi2kntxFZ5CxfhRyvJog== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796486335; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding:X-Mailman-Approved-At: X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:Errors-To; bh=S4A9eqow/ALEXwynN6gYgmwbs1w4FFwLYaP+urQqEnE=; b=GH7qjOHx0sbhS7d/K06DsDRJpAF8pbObFSQsfYLBKSr0ROsHjQ1o34dnn/WMrLTxcDm+ MJIp1eNiBPnip2FghrlTH2bGw3Kk64AKEeIfW+X5dFINV0bGiLIlhMLMCKnx+nliT+CQ4 QHPpqprbfbS0G3qM05hMmhfQyMj4+hY8ntMq2kIcZI6/Ivdm73lhzb1fs7ebsODx+m1C6 bbUz9X2w7hdq02i87zesiuBfmU0nxCBVUtjhoiNMF7IqQUx+F2koCT4QZzQ7ZFQlJ0/GE UM4HpOj3RCCt1oAlqyIRQ6Q3jihum8aJ6lxH/a1axY71zSaYpgZpecWnX+EJP7rxwhQ== ARC-Authentication-Results: i=1; smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796486335; bh=S4A9eqow/ALEXwynN6gYgmwbs1w4FFwLYaP+urQqEnE=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=nyJDQKcFc5HhWi0ZlzG5jtfudUsoHEoV21eKSUp7nLqsmkfWuBOLYid3ZUvPdg5ik 7YeNK91NssSkOvgZxCdfhuApBN+im9/eLiRkAT+/uqZdI2oPtDye9SpgPuR0EMc4kP UjhMWqbl5q8lDRlfgnWP7dE/wXSRVjhtRtKDZSC43N0n79C7YBJDWBvtjsSwZifTx3 OwAcwi2j3os7HxpLjA/aKkHtqn0LVlPEyEjRCVDdJTRYK0Rg6MuVN1FhW+j68PwSzo DtTXcJUlkQhX23cvS5DhdVliAsTREtefhTJNGXJ3+Te62yXJrIGr/2RvTtISny4jnD sXMVwxQXh019Q== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 7A9F081F56; Sat, 5 Dec 2026 15:58:55 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists1.osuosl.org (Postfix) with ESMTP id 841892A8 for ; Sat, 5 Dec 2026 15:15:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 6A81A408E3 for ; Sat, 5 Dec 2026 15:15:52 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 2FylzXWgDPM2 for ; Sat, 5 Dec 2026 15:15:51 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 7B03F40688 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip="2607:f8b0:4864:20::62d" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::62d; helo=mail-pl1-x62d.google.com; envelope-from=iuncuim@gmail.com; receiver= Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=SkFLDNnr Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by smtp4.osuosl.org (Postfix) with ESMTPS id 7B03F40688 for ; Sat, 5 Dec 2026 15:15:51 +0000 (UTC) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-2f0458cc9easo19764765ad.3 for ; Sat, 05 Dec 2026 07:15:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796483751; x=1797088551; darn=lists.u-boot-project.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=S4A9eqow/ALEXwynN6gYgmwbs1w4FFwLYaP+urQqEnE=; b=SkFLDNnrHnFlZlAYZANp9okb9LxQCFub80Bq8PCqzjJTVcetiK7whCMqn8jtbREKnY FbVqc+ycycsVeKsyjIr0q+9JqrFo7uIkXre5SDvnMLjnJSYPbzHhAjTwAQVqXpWGJ8fv jx1CGS6KtEMAtjfNx6xW+zqFITPJQECINglB5jRskC5aBFYCgEinsDjxJU/vEli/TI31 to8drV4cGBQtS0C63y5zD7kalExTgKK0nYiZJOYjdEz0S8DEdLUA4i7IslvlVTSonm7G AzLnzlpi74FjyJFMtiYaEEWSp9jQmKbE9tzL8rYQB6KWNo3XGlhxVHyd1eYx38fuVmPF KKZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796483751; x=1797088551; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=S4A9eqow/ALEXwynN6gYgmwbs1w4FFwLYaP+urQqEnE=; b=lxx9exZKacQVbSdcAqQuv6uJi6WdGcocs9SCOEn2k8sJQzBhVib5qnpWe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P id d9443c01a7336-2f1b9eb4d03mr48899155ad.5.1796483750530; Sat, 05 Dec 2026 07:15:50 -0800 (PST) Received: from archlinux ([2605:e440:15::152]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f1b7963001sm27110625ad.62.2026.12.05.07.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 07:15:50 -0800 (PST) From: Mikhail Kalashnikov To: u-boot@lists.u-boot-project.org Cc: Andre Przywara , Jernej Skrabec , Tom Rini , Ilias Apalodimas , Hans de Goede Subject: [PATCH 0/5] sunxi: A523: add LPDDR3 DRAM support and Teclast P85T board Date: Sat, 5 Dec 2026 23:15:23 +0800 Message-ID: X-Mailer: git-send-email 2.56.1 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Sat, 05 Dec 2026 15:58:28 +0000 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-11.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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