From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796178709; b=cHjAjL0WcBx6ppXLfzvMzTB9ZikoAUL28VEbtBo6ksjN1l7COS11bJFZ7GJ/ESZ/1z9N VDJboMjia7o/5jvy7UbszR3QTnmzt46Z+w1C41oVv16XyEqsenDRh7o87ToqKXqhPxx0d 9E/gU7PrB3u7DHWpXr0BuVynUiFkUmb7JpT3ZpuWZEWGD6OK0u5+CM7JASxxCuAjN0+vW mTU/mauG0IiVjtQ3byD65Wk0RBfC5bL6F1o64Lvt/wJkYfMeE5qehRR2oQHtjfqMMk0Ae PA43ES4AmwZOe1xtOZvOFYSjAeicCzH3qCZMva1DgkGopiQA6wLGm7FNSXz6ZZue7nQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796178709; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=p2IyNRmE6DaTBC3XkRu8AUuHlNQt/uPmSMM6SqLElTI=; b=VrMN15NY4SKLoyZ0jY5md163n+OxY1+Qb7CNf04RRIA/y0dKqS332Xx4HO0Nr7Yi54TM T3NYnotJLbpMut8+epwoF4iF1Y/yQlJef04WcZF/BgV+VQ4yxUX2KYbff8S8j2wkxTPLb EWXotsVMlLx09URmXwflRcsLS4AKKH/enOfQaXt+BM34N9wsqE/aKmyZORJRwqNGXdXcx U99t/zJSshthUNEd0eVelD1V0w3VEgOd/8wxhkIV7igryOyBuesp6rpVaV5IqooQqFFuL XhyT+ubIglFHveccn+z162UOBTJ3jtpbKI6kE0tUoCVmmPAQ5XRnU0pYqkpzGBbRCvw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Lhee6e30; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44FCD606A681; Wed, 2 Dec 2026 02:31:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Lhee6e30 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55D241F00893; Wed, 2 Dec 2026 02:31:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796178708; bh=p2IyNRmE6DaTBC3XkRu8AUuHlNQt/uPmSMM6SqLElTI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Lhee6e30QojdmRLZbIJR+4qsD511abHF3KcHpBvysVvSo5A+TT0ygn0xaKkHDykeO XZWt/s32CzoxhX1HhzQSI3zuQANdPTlu4JrZvWFd3WOfGp2Wq3I9cvGJH47Yz2J9hK zjCgAv9TAYJ1vsD/Xiy+L+iaA2XvIHQqgvQMP18Y+e/PdrDVLrqpspxG1BpEESzD4l 9eRh1Q0IMW7M4HhtACTpFcuiiDQLkLlTTsxLd08Do0NXnjiih1glOcwiquZEt+lZVo 761V/pQhlMkWjKbfPfuD17R5FVi3xdbpwStLB7s3C8DaUIiEF+qEf8oM3McOnN5X2c uoUbvVVVyLj2A== Date: Wed, 2 Dec 2026 02:31:46 +0000 From: Yixun Lan To: E Shattow Cc: Hung-Chun Tseng , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/2] riscv: dts: spacemit: mark K1 boot nodes bootph-pre-ram Message-ID: <20261202023146-GKA26959@kernel.org> References: <20261024092558.143621-1-alan.tseng.cs@gmail.com> <20261124231909-GKB245721@kernel.org> <311a1481-0849-4865-88f4-636f13c2c6dc@freeshell.de> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <311a1481-0849-4865-88f4-636f13c2c6dc@freeshell.de> Hi E Shattow, On 16:49 Tue 24 Nov , E Shattow wrote: > Hi Yixun, > > On 11/24/26 15:19, Yixun Lan wrote: > > Hi Hung-Chun, > > > > On 17:25 Sat 24 Oct , Hung-Chun Tseng wrote: > >> On the SpacemiT K1 the BootROM loads the next boot stage into SRAM, and > >> that stage sets up DRAM. This series marks the nodes it needs for that > >> bootph-pre-ram: the SoC clocks, UART, boot media and the two I2C buses > >> in k1.dtsi, and the board EEPROM (which holds the DRAM configuration), > >> the PMIC rails and the SPI NOR in the board files. > >> > >> The vendor confirmed that the BootROM itself does not access the > >> EEPROM [1]. It is tagged because bootph-pre-ram covers the phase that > >> sets up SDRAM, and DRAM cannot be trained without it. > >> > >> Testing: all K1 DTBs build, and dtbs_check is clean for them with and > >> without this series. > >> > >> I used Claude to help read the U-Boot SPL and the device trees. I > >> checked the changes and ran dtbs_check myself. > >> > >> Changes in v3: > >> - Reword both commit messages to describe the hardware instead of what > >> an SPL does, and drop the U-Boot paragraph from patch 1 (E) > >> - Tag i2c2 in k1.dtsi too, as every K1 board has the EEPROM there > >> - Tag eeprom@50 on the OrangePi RV2 and R2S, missed in v2 (Sashiko) > >> - Drop the Assisted-by tags, see commit 1e035297ffda > >> - Keep E's Reviewed-by on both patches, as the changes are the ones > >> discussed on v2 > >> - Link to v2: https://lore.kernel.org/all/20261017180141.3477743-1-alan.tseng.cs@gmail.com/ > >> > >> Changes in v2: > >> - Tag i2c8 in k1.dtsi instead of in every board file (Yixun) > >> - Rebase onto the spacemit dt-for-next branch > >> - Link to v1: https://lore.kernel.org/all/20261012235624.77993-1-alan.tseng.cs@gmail.com/ > >> > >> [1] https://lore.kernel.org/all/20261021083425-GKA125937@kernel.org/ > >> > >> Hung-Chun Tseng (2): > >> riscv: dts: spacemit: k1: mark boot-critical SoC nodes bootph-pre-ram > >> riscv: dts: spacemit: mark K1 board boot devices bootph-pre-ram > >> > > I'd not put this series on hold, we generally could address other > > remains of issue/improvement later. so with > > > > Reviewed-by: Yixun Lan > > With regard to mainline U-Boot use of devicetree-rebasing there is a > robust method in U-Boot build system for overrides such that we may > adopt these proposed changes there before they are accepted in Linux. > Yes, I'm aware of this, and that's fine by me > With changes-requested all addressed for v4 I expect the shape of this > will be good and it is not holding back anything in Linux kernel. The > hold is only due having to ask for what the closed-source BootROM is > doing and waiting for this confirmation now instead of having access to > see its code directly. There are intellectual property warnings > published by SpacemiT prohibiting reverse-engineering the BootROM so it > cannot be expected to proceed any more quickly than asking and waiting > for a reply. > I don't fully understand your concern here, neither bootph-pre-ram nor the Device Tree will be used by BootROM, there is no dependency between them.. > If you would like to abandon the approach I suggest of considering the > effects of BootROM peripheral configuration as a hardware environment > needing device tree description and bootph-pre-ram hints for > constrained-memory SPL, then that topic can also be discussed. Please be > clear what your expectations are, thanks! > As my knowledge, the bootph-pre-ram property is used by the filtering mechanism (via fdtgrep) of U-Boot's Device Tree to retain necessary nodes in the SPL phase. You can check final result spl/u-boot-spl.dtb. -- Yixun Lan (dlan)