From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f170.google.com (mail-dy1-f170.google.com [74.125.82.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 919963793A5 for ; Mon, 12 Oct 2026 23:56:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791849391; cv=none; b=AS/3bsK/Q7XVzhacFdbylzkCjgEGlS8ac5esdR6LmwMIZxomBR8i2E8mosTtcguMkUfBrEaiOD7GAIbL7mzyU9SIrmsLUVhTh5hM5XI+mURJMxaszmgFznJE/c8bYAIHgXrukbvDOiL9+GJlTthOAfToT4dk71o+m/0H+7ZxSiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791849391; c=relaxed/simple; bh=07zRKt+iURfkbu1QFEt/0Wl2s591iOQMk67RKiSaS2s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XKRZB6xOj8jY8BoKoT5RaNL4VDe4X/iI4dcc7lwwhN7CLr8TLhf0GVctnXSRFmMV71qGnguBJtvd4FCSdwP/aOmwC/3DVMKYahCeYnWnyTidRNmOQstLp3owxfcFwDblCsTxwA2mM3hbYivqHIOlXN2k8JtI6Wv0KiYK054rqhI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IP4vtR9d; arc=none smtp.client-ip=74.125.82.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IP4vtR9d" Received: by mail-dy1-f170.google.com with SMTP id 5a478bee46e88-3535bf8b3e0so3727004eec.0 for ; Mon, 12 Oct 2026 16:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791849390; x=1792454190; darn=vger.kernel.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=1VeLk5FpKsQq/qjV/WEYAWBiUl9W5UJD8Aw3U9SBRbA=; b=IP4vtR9dsiiVDwGRi5QnG0WuJVW8rTUKBPHM8AktVx6kAu5tNqlJuVkmfwcNPuRBw+ N1N8POprdLhfaEEuQuv9OgvwR4Nyh1rHNxuToWTF8jHgBUbIiVE4GedYNgDRhsZC8Khl KaS0iBTksKzx6RmXclbssRPdhNWbUwUJA8cBcd9d/D5kz/Zn1tp1oAc4vaKJtESZ3FCo 91A10U4dZlF+LZ/WxJxb4A3qMDAViL8SkCS1daOo0P6ZFhJiFN5yDY+mcRoIJmiKwBQj JdjIinDPRSTC0FoSyM03p/iTlBpaFUSTaymqwmpzroNwvP9FZrJRfhDN7dfP2vLqnh7H r5FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791849390; x=1792454190; 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=1VeLk5FpKsQq/qjV/WEYAWBiUl9W5UJD8Aw3U9SBRbA=; b=SnKEOj0d4u4oqZqYZpaOCY4d//XYy3xYC/ppsxK66So/NxtQeJrdkm4VLBXye1dwNf 1xr3wAiZUePpKYnKC/OFKhQHBoXSfCN6+sPyyXrFNvdzyYF/xO47B8uIozvbdCwDyQh6 VHpReVC1mHtJIRe4U+n6zrSKxsKdwcKL8tFiSETDvf602z1uixfNQsrsDeW30/5GBZiA JL3IevEGx8saHCDvxrb+7ajujPj1WyZ7Bj9dJnOuz0LHWnA1698FiC/rc246fu/lklc7 F12IhVAKZazLUFIACUonBagb3c0iYpIx/+0OCcISqLotRjCj6g2dCCTgq3aShg7a0cm0 C9EQ== X-Forwarded-Encrypted: i=1; AKwUvBz5dM4fwotBSPVKi/DuKaksXd/DYhl3IPNF7oF65J0F11QRhVl00XBORDoJCZ9tkPFbliiCZty9HY+D@vger.kernel.org X-Gm-Message-State: AFq9FYLW2NT92TqX14e2adrsQClHYBD0nAtQTezLWMbIMZKjZ6ie9QKe 57dkJjqQph658uYEXLeW3e2RtG9MNc9NUQXQn/U94um2tielntY9aK/V X-Gm-Gg: AYBFou3sFwgbjCzYc2QBvI/h777Wkua4knAj49viyBMxEGyVsQTDi7wXYh0xckD8LuA kGdGVrGoXqlxodAh3Z/SyevwmuQTd4S/977G5Qj8icbVrr5ClmRhxMLY924dYibE/BGd4IELSZV c2dtesjuMEsNCS+xrVBQ0CsMZIaXQt3bjMrt339PglssnlrkAIWw5jWIaSxqMkyzNm4aMQ8e1Nm S4TUqyx7dHIdHdcGxuZb3CeG65UqPeQtEM1FwCXLy8cLHcIPOu3fmtW7cspGUpwNbBBlD+FCQQr JpDrVHsC8J0RGFonaHJxkhzpRKAtRHa+J1ZUnLJ6RL5Sixx+E/lFr/dlffkx+PEnrahe/1i0aND eiWXsh3LE5/MGAlaVRDizJqthP/CKW0B2/jfHdUj7jsysp+1S0rXOH0f/CPQ/rSEjZc7QQckgHJ IFkeiTdpxOd7G8vqVWtzUrpjEPSWvvSOpxJ7OySWU2oYONL4Bh8s+modohlLi8H5r8wC9v06N+3 /qora7qJo/xdQXGlnPCSFqlRTGsP25KLorX/L/0cw5vuijfao29R7szMbMfCwkHxbrGXElx6rfm o6N1za6K8D2+YGF0kIIbFRfw2YgZ++TQ2n/SaUUaRoTyU+Xih79ukrIDIOBL9Sk1 X-Received: by 2002:a05:7301:4e88:b0:35a:efce:6190 with SMTP id 5a478bee46e88-35aefce65c3mr6631069eec.28.1791849389564; Mon, 12 Oct 2026 16:56:29 -0700 (PDT) Received: from alanhc-14700.tailb22ec2.ts.net (180-177-138-120.dynamic.kbronet.com.tw. [180.177.138.120]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-35b690af3easm8686145eec.1.2026.10.12.16.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2026 16:56:29 -0700 (PDT) From: Hung-Chun Tseng To: Yixun Lan , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , E Shattow , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] riscv: dts: spacemit: mark K1 boot nodes bootph-pre-ram Date: Tue, 13 Oct 2026 07:56:22 +0800 Message-ID: <20261012235624.77993-1-alan.tseng.cs@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit A bootloader SPL on the SpacemiT K1 runs from SRAM and needs a handful of nodes before DRAM is up: the root clocks and clock controllers, the console UART, the boot media (SD, eMMC, QSPI NOR), the board EEPROM used to identify the board, and the PMIC rails it programs before DRAM training. Today mainline U-Boot carries the bootph-pre-ram tags for these in per-board -u-boot.dtsi files. When I sent a U-Boot patch adding another such file for the Milk-V Jupiter, E Shattow asked for the tags to go upstream first, so every K1 board gets them and the U-Boot overlays can shrink [1]. Earlier there was no working mainline SPL for K1 to justify them; there is now. Patch 1 tags the SoC nodes in k1.dtsi. Patch 2 tags the board-specific EEPROM, PMIC rails and SPI NOR on the boards that have them. The set of nodes matches what the mainline U-Boot SPL tags for the BPI-F3 and MusePi Pro. Testing: all K1 DTBs build, and dtbs_check is clean for them with and without this series. I have not run an SPL built from these trees on hardware. On a Milk-V Jupiter running Linux I checked that the EEPROM, PMIC and SPI NOR answer at the addresses described. [1] https://lore.kernel.org/u-boot/5d323a11-da4e-4071-bdeb-ab5c03e8f85e@freeshell.de/ 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 arch/riscv/boot/dts/spacemit/k1-bananapi-cm6.dtsi | 7 +++++++ arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 7 +++++++ arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts | 8 ++++++++ arch/riscv/boot/dts/spacemit/k1-musepi-pro.dts | 8 ++++++++ arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts | 5 +++++ arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 6 ++++++ arch/riscv/boot/dts/spacemit/k1.dtsi | 12 ++++++++++++ 7 files changed, 53 insertions(+) -- 2.43.0