From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5ACD9CA9EC5 for ; Mon, 12 Oct 2026 23:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=bkQZ3l9V9Gpd443KbIi49AO3oCyoUDVZtM43lR6Zi10=; b=127p9sdHFkBdat kKEU8vtt4WfKltSBM8lbwdrS/Xd5dQRQlHLxNfOz6h63LAh9KARMvMYwyAdivMRq4ypqfEyZDIuen CAuHYJhoIo0Yjki1xNrl0O+QZ/VseaWnwtTYffysIiouKWyTnvW4Bn2a/YMAyCBsfWf6YtEl3bULI jEIkB49Ctdb0T+LlvL9heMjmOnJPIDrxfOsObHA+HWK85juMZQ9y4L25DIRU0lVtVezmmaPdh8q4m MBhByigFR81AaS0smXNN3ksYd46c/iFzL1X9XOAJSZyDCCyCE7a7QrgSrQiTFELbuWvbaDiZtw4aO dlabqtVcz9aGase+Wclw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xGPse-0000000Bgbe-35EE; Mon, 12 Oct 2026 23:56:32 +0000 Received: from mail-dy1-x132d.google.com ([2607:f8b0:4864:20::132d]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xGPsc-0000000Bgb5-3DIx for linux-riscv@lists.infradead.org; Mon, 12 Oct 2026 23:56:32 +0000 Received: by mail-dy1-x132d.google.com with SMTP id 5a478bee46e88-3514b90bb89so4468790eec.1 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=lists.infradead.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=ZcXG/gTHuTSzCQvsQ42j7td2d8Cma2/jEEApoutNgQQgS1XOJlOX7z0h/UoNwQ6T58 Ar1EsnI3/y5CwgfecnlB/qH4+f0NFwBRVa9e4N6Lf3S5CZwazFXo6i69Ir0JpqPrGR+H 5YxCOH+rAA7ABIKsvLY4ci3SeYL0LxdRMlNuKKDzw0bGL2HCRVs4YnfHp72fqarD/Pkq zOnYiSoAg+/og3O7MZoJ6eXWTEs1Gc6odcWKphgNA5CxYtbAHvqogf6F+iOiLGQwRae5 OX7h9HUg+oAUgl1Z6yW9ko9Hk9rqRDRRBok0YXQGa0pDtXARuz9xLAC5NNqRgK7trma6 EH/g== 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=plkyyPalEuT7wnM+rvkqJu4rL3QUHcQ3aTVBDxBTwRNvMostbZk9dXhnkwCLYnT8yF 1SsrG6Uhu8ATRBU6prkv4mw2z45KGSET1KwUFfntf48D0+zsjMMW0wRgJ2IX44Vp2myC k/JaqXS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+Hr1d0VWS/3J7baZrtkfP2hdGhNZZTHpfv2DjrnSpysUoWP 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 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261012_165630_811381_B3A9F500 X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv 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