From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 45A3F606A322 for ; Thu, 3 Dec 2026 06:30:37 +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=B7m8cbd3; dkim=fail reason="signature verification failed" (1024-bit key) header.d=pigmoral.tech header.i=@pigmoral.tech header.a=rsa-sha256 header.s=zmail header.b=VqAWjzQC Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 1B8C340AAA; Thu, 3 Dec 2026 06:30:37 +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 j_4K_cXWhSbj; Thu, 3 Dec 2026 06:30:36 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 4505840A50 Authentication-Results: smtp4.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=1796279436; b=KMMpkW3OUDSs3WVup+dRMwxZTJj5vjqsneqwzZ5+rmYDswVB8aPSfPnvS2wItqn2YKkN P/ipOg/Hee8/jhf6YsrtsR9qzM2oOoJIJ4G6mV0t2XbooT6Fzts/FFn538wDQQ0BIvNRe NUpvULAQbNJsG/1v2n2egYAldq50nf+d/KpZl07KjKHLKaf5F5sAXt5usgBF9rsOsRuWV IoKraT/QitFv7I2iBGCXTKb5gIANvjokDdkQCLdneuQmM7y60wJnnFlqn+F0aSVkP3pEZ qNgPqYTJBN4nYghQHsynRxUiDgcgqrga2bNwbzon436/856gwHQpnOwct0uBs/YKkjg== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796279436; 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: DKIM-Signature:Received:Mime-Version:Content-Transfer-Encoding: Content-Type:Date:Message-Id:Cc:Subject:From:To:X-Mailer:References: In-Reply-To:X-ZohoMailClient:X-BeenThere:X-Mailman-Version:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Errors-To; bh=CI/pSU6lTDf4MhHdZ87+RGALadavjRc6zqcfszlO32c=; b=U4t4mwS+vYYckylKHkT7n9l/Vf1xHNoohcuBtrKnya8vx2bH6xAcM48cxioIpXAc52fD F/H/ftCPJzL+CT7mQNMqKhSxUSNhb+Z8F3k/A4ZFe7er0nfCdx5q/PeXJaH/GzZ5ILZzQ XqkPpbYCvOtEXVjfFuPo15BZzMIWkr7J5bNY0X4CxWSRRzTOt7rZ8O8EKqgBmV9JG18q7 z9q/2TCPvjC4BaEQhRr7Ezoaqm+99mtjwZcVqXC+a3HoPIbqFot94ZGeEfcQ1lX48j9+v TtgQRkjz+oK6WcSNWtMBTlcT/5krD3SaMJRKPTiKECN456zO9wpHx0Ww/zq2c0wI4Vg== ARC-Authentication-Results: i=1; smtp4.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=1796279436; bh=CI/pSU6lTDf4MhHdZ87+RGALadavjRc6zqcfszlO32c=; h=Date:Cc:Subject:From:To:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=B7m8cbd3MxuYqr3dEgZnGNRHfj3lX61rt5fKnar1gs445Qh0PnLcsPb+vSV0AySQp MN4RFvIYb3q4WL/Puqb68rwFVy1F1TVLU6SCReySU4ZBjJjd+xhktIEh46TtaA3ZnY J36z136Af530JTv91OAnCGcOf9o8Kaxyvz9E8lLc5GcUjKkq7OE3zJ4nz9Ye50ou8T hVAPosVDdf6BHYM212Dbe37G1qQjJZ4DEThN5QDlbpg3p6O+bD+E2TH7pI/BAeuoCQ wA4tmBjjMoWlUnGvkxDiooyex/D8ymjuMXycXp5SBb9vVYS7kGPsXWyHzmy4PU3yRB 0KtHIjITs43YA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 4505840A50; Thu, 3 Dec 2026 06:30:36 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id 2A5363DB for ; Thu, 3 Dec 2026 06:30:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 1BE2F61075 for ; Thu, 3 Dec 2026 06:30:35 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id zK5hk4di4Ng4 for ; Thu, 3 Dec 2026 06:30:34 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 444CE60A5B Authentication-Results: smtp3.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.180.15 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=165.173.180.15; helo=sender6-op-o15.zoho.com; envelope-from=junhui.liu@pigmoral.tech; receiver= Authentication-Results: smtp3.osuosl.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech Authentication-Results: smtp3.osuosl.org; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=@pigmoral.tech header.a=rsa-sha256 header.s=zmail header.b=VqAWjzQC Received: from sender6-op-o15.zoho.com (sender6-op-o15.zoho.com [165.173.180.15]) by smtp3.osuosl.org (Postfix) with ESMTPS id 444CE60A5B for ; Thu, 3 Dec 2026 06:30:33 +0000 (UTC) DKIM-Signature: a=rsa-sha256; b=VqAWjzQCjOlTKmMGAtpnl0s50PkTssBAJ0trR5p0F/nya9WVfmpXo04rrOPAX4CnBfTbP9Rbeqlc7TlwtZscizEeoacsYVaPKYIbLulCPnq9Va59zqNIZg9G3Llqf2QoM75+Bcydoawuv7QqieW7tqBPiBC9y8Day8/kk/V3h+8=; c=relaxed/relaxed; s=zmail; d=pigmoral.tech; v=1; bh=CI/pSU6lTDf4MhHdZ87+RGALadavjRc6zqcfszlO32c=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 1796279418969784.4300449176654; Wed, 2 Dec 2026 22:30:18 -0800 (PST) X-Archived-By: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 03 Dec 2026 14:30:09 +0800 Message-Id: Cc: "Tom Rini" , "Yixun Lan" , "Tim Ouyang" , "Leo Liang" , "Huan Zhou" , "Eric Chung" Subject: Re: [PATCH 0/5] riscv: spacemit: k3: Add SPL LPDDR5 initialization From: "Junhui Liu" To: "E Shattow" , "Junhui Liu" , , "Yao Zi" , X-Mailer: aerc 0.22.0 References: <20261106-k3-ddr-v1-0-1e60e1d78020@pigmoral.tech> In-Reply-To: X-ZohoMailClient: External 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=-8.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS 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 Hi E, On Fri Nov 27, 2026 at 12:46 PM CST, E Shattow wrote: > Hi Junhui, > > On 11/5/26 08:40, Junhui Liu wrote: >> Add initial SPL support for LPDDR5 initialization on the SpacemiT K3 >> SoC. >>=20 >> The DDR driver follows the vendor initialization sequence, selects a >> memory profile using the DDR part number read from the board's EEPROM, >> and configures both DDR controllers and PHYs to perform LPDDR5 training. >>=20 >> Loading the next boot stage is not implemented yet. SPL currently >> returns BOOT_DEVICE_NONE and stops with "Unsupported Boot Device!" >> after successful DRAM initialization. No LPDDR4X boards are currently >> available for testing, so LPDDR4X support will be added in a separate >> series in the future. >>=20 >> Tested on 8 GiB and 16 GiB Pico-ITX boards and an 8 GiB COM260 board by >> entering BootROM USB download mode and running: >>=20 >> fastboot stage spl/u-boot-spl-mkimage.bin && fastboot continue >>=20 >> --- >> Junhui Liu (5): >> ram: spacemit: Add DDR driver for K3 SoC >> riscv: spacemit: k3: Add SPL initialization support >> riscv: dts: spacemit: k3: Add SPL device and image descriptions >> configs: spacemit: k3: Enable SPL support >> doc: spacemit: k3: Add SPL build instructions >>=20 >> arch/riscv/cpu/k3/Kconfig | 6 +- >> arch/riscv/cpu/k3/Makefile | 1 + >> arch/riscv/cpu/k3/spl.c | 52 + >> arch/riscv/dts/spacemit-k3-binman.dtsi | 24 + >> arch/riscv/dts/spacemit-k3-u-boot.dtsi | 54 + >> arch/riscv/include/asm/arch-k3/csr.h | 20 + >> arch/riscv/include/asm/arch-k3/spl.h | 11 + >> board/spacemit/k3/Makefile | 5 + >> board/spacemit/k3/spl.c | 127 ++ >> configs/spacemit_k3_defconfig | 22 + >> doc/board/spacemit/spacemit-pico-itx.rst | 12 +- >> drivers/ram/Kconfig | 1 + >> drivers/ram/Makefile | 1 + >> drivers/ram/spacemit/Kconfig | 6 + >> drivers/ram/spacemit/Makefile | 3 + >> drivers/ram/spacemit/k3/Makefile | 9 + >> drivers/ram/spacemit/k3/k3_ddr.c | 134 ++ >> drivers/ram/spacemit/k3/k3_ddr.h | 169 +++ >> drivers/ram/spacemit/k3/k3_ddr_ctrl.c | 73 ++ >> drivers/ram/spacemit/k3/k3_ddr_lpddr5.c | 538 ++++++++ >> drivers/ram/spacemit/k3/k3_ddr_lpddr5_tables.c | 1668 +++++++++++++++++= +++++++ >> drivers/ram/spacemit/k3/k3_ddr_phy.c | 149 +++ >> drivers/ram/spacemit/k3/k3_ddr_profile.c | 54 + >> include/configs/spacemit-k3.h | 3 + >> include/soc/spacemit/k3-ddr.h | 13 + >> 25 files changed, 3150 insertions(+), 5 deletions(-) >> --- >> base-commit: d1d45c926a571fb6c1e6d7105c280833646915ea >> change-id: 20261104-k3-ddr-85685cac0f02 >>=20 >> Best regards, >> -- =20 >> Junhui Liu >>=20 > > Can we enable default YMODEM load of u-boot.itb in this series? I > propose in your series: I've sent v2 without YMODEM boot support. I initially overlooked that loading u-boot.itb also requires the FIT loading and OpenSBI handoff support added by Yixun's SPI NOR series, so enabling YMODEM alone would not be sufficient. I'll send a separate series on top of the v2 DDR series and Yixun's SPI NOR series to add boot device detection and YMODEM loading. Best regards, Junhui Liu > > 1. SPL with DDR init and boot U-Boot main app via UART YMODEM (this serie= s) > > ... and then other series applied after this: > > 2. Add support in SPL to check for boot signal state. Replace > unconditional YMODEM loading with depending on boot flag for BootROM > UART mode, and keep default to YMODEM loading. Effectively no change in > behavior and prepared for adding support of other boot methods. > > 3. Add SPI NOR boot support in SPL (Yixun) > > 4. Add SPL fastboot. > > 5. Add eMMC/SD boot (Yixun? I think mentioned this) > > -E