From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=54.92.39.34 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794057601; b=BEwI2ofEWk6x1YWKuwwBm4mRYNnJqhKaOL/SEQjXiG9Je6WYA+m+c0QNe2vyz1Ifn2td 0jOuGLH/2jmjK4XDPcUI6eh3LLsurhwySNZXlVDaUpLwvd0Wi5RB+JPDWLYtvttnJEr8H ze6tfr4Ri0j3fJWo35Yi3cF/v0+WZ198QyzjYgZMOq7xy3ex/Cco0aCDNJMa6Dqiiqjnf 9iFZUtsv9pS3hucB1gVsrhInzrjDtX+fiBoKhSS6PyLnxsyqq1dEJAmhC8kFFSXFhYsuS /XRywTyQNFePBOLbkLzDNpTG/3L84JC5jSRy87VIkHsEx4rUa9krSCRjvVvbcW9h2eQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794057601; h=DMARC-Filter:DKIM-Signature:X-QQ-mid:X-QQ-Originating-IP:Received: X-QQ-SSF:X-QQ-GoodBg:X-BIZMAIL-ID:EX-QQ-RecipientCnt:Mime-Version: Content-Type:Date:Message-Id:Cc:Subject:From:To:In-Reply-To: References:Content-Transfer-Encoding:X-QQ-SENDSIZE:Feedback-ID: X-QQ-XMAILINFO:X-QQ-XMRINFO:X-QQ-RECHKSPAM; bh=Vv1qxZPlk0vkh8L3xJUWyUVlD4vXJ4Gcl2ZuiOio4dw=; b=sGPv8zJ75RdqFLGdel587umugGWnnutf6tLL/3qzKd6nLBA15njJcyrE2oKO4XHFZ6mK rtewIfFz0KrdEG/qkI4XrGvM32Mq7XJGASaIT2ljpUFDSeknrB5+YVGaFyPKjju58UtwX SQAwZkGj3n7hAN/y4P5SrpQUr1LXxQyc6wWMUbyQTMQeygLFxbtYtgxLvlgETHIB7t2OH /rF+bzISFpr0xrb57xVDXndyDbj1qlEw+KMhqfAt9oYykpaYsBAOJNY/DomxoGwMqQQXZ KRYuRrvCFR+YFpKj/MWIflgEv+Nxe6r4XiYbN0+aDWVf8iljzlpraeTUhF93AFEtO5A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=linux.spacemit.com; spf=none smtp.mailfrom=linux.spacemit.com; dkim=pass header.d=linux.spacemit.com header.i=@linux.spacemit.com header.a=rsa-sha256 header.s=mxsw2412 header.b=CYldCipq; arc=none smtp.remote-ip=54.92.39.34 Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7319606A335; Sat, 7 Nov 2026 13:19:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C7319606A335 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux.spacemit.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.spacemit.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.spacemit.com header.i=@linux.spacemit.com header.a=rsa-sha256 header.s=mxsw2412 header.b=CYldCipq DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.spacemit.com; s=mxsw2412; t=1794057586; bh=Vv1qxZPlk0vkh8L3xJUWyUVlD4vXJ4Gcl2ZuiOio4dw=; h=Mime-Version:Date:Message-Id:Subject:From:To; b=CYldCipq5BagZLXme6wuPePkCbHZaFQx6CDcKEdW3CR4GoNL/AHcndA1sl2gxuRe5 NJ1VEzr7H45Me1JjNlboBfvsFVZoD2cZB+MHP7MXQlBIfzmyTaqVhQ1sPOA91VOdbO wj59PrxeUrFQcEH9SIbPo759rX5u7NxVELeGaA9E= X-QQ-mid: zesmtpsz2t1794057585t8b0d7424 X-QQ-Originating-IP: MnVFJSGk3Q8VFD+XQqbWfmBpJkYvSe1EFIeqkTdJt6o= Received: from = ( [58.254.68.27]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 07 Nov 2026 21:19:43 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 9492300081805224949 EX-QQ-RecipientCnt: 14 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Type: multipart/signed; boundary=cd90495969691536a859394151b1932e9ba645d5efb1309eed502dd53e7b; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Sat, 07 Nov 2026 13:19:39 +0000 Message-Id: Cc: "Troy Mitchell" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Yixun Lan" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Alexandre Ghiti" , , , , Subject: Re: [PATCH 3/5] riscv: dts: spacemit: k3-com260: Add SPI NOR flash From: "Troy Mitchell" To: "Sarah Emery" In-Reply-To: References: <20261105-k3-com260-module-sd-nor-mac-v1-0-138b39d74602@linux.spacemit.com> <20261105-k3-com260-module-sd-nor-mac-v1-3-138b39d74602@linux.spacemit.com> <79211469-cf77-414c-9a10-2b684833ad64@canonical.com> Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: zesmtpsz:linux.spacemit.com:qybglogicsvrgz:qybglogicsvrgz3a-0 X-QQ-XMAILINFO: M4rL4XrBLbwKcgXYdAzZ7Fj6FVw1625bw40kZxg7X4sx8Glm5iKgFLbu JRv02fxx+nleACDZUEeAsmaIbfB5o0fJzIUJ8MqBoPk65EYJ7ErruHTZYR3rt1I+uKhLLyg NmLKva/uKBCJQ4IeyxhaGzPqopPfs+65b3mutcVidU5/Zk3NhKk+U5iMvAf599HR+ySpPtW q8lluW8WAhpSN0S0W521eyH01fsuBeQSQIGkb4VN5Mvv5j+BTlJEgzZUXs/Mx+BCYzQJHek T5B7NjAWfg9SmpV76YFHk5l3bv3zKyFcBLc3VJ8GqKH6fLrEk1rk2CzthS+62ZrWkLI3k2f OSfIwNIzaqdrtAx+J6BVp2P1YL/xTh1I8Wry00tN0bxFJormasLMnFV3ZWK3bEUe2iTpNxM eLiI/5Zt1x352uEydV24id6CieljO4T61HaVGcZ2tGMhXHtOXaM3eQCEbm4xAnBUKJDH9q3 vbVtpjdkZWtkZWKEDAqCr00KFyrySyEDXgkNKPd1r8fAzFXy7BED7jQTpy4rU46tmn3o+ST MxlJRBI5vUD8d5WK3D52Q+rnwCjMPUqrFvCyYra3JCNYBd2T6bbLHup/ZVjg+Sacg3dLZV+ OgpEyn/n5NSfwtz/S7Rvf88LRMncaSF1h9SuUPUpLBg9DrqTXflXkeiEk4JLbh5nJ8L191d N5utkRoVK6xJyHGYcdG8IwPKr4338sEpFeCKbEgZ0GsKrn2NVF+VHdXriFcBDc76up/i35F kXz/yK+ae0x8yG9dvdrhHXbS3QfWZEi0ueOq6QNyXWfz6e66fyeMtNB2tuX/olM6+fcEUXV SgXoza3IOdSKbyMd7J+aTx6qmGvUMvkKhD++GffcI5edcGmhIKKBGhaxyntRIk6B1KeWsEc zeLQKd4ich+tM43zBbvMR0NzFuseQH7ZzmJlSOMtzfVh7e28ZJRFkBfsZDFjb5hu3R6ioJr wcv4E/cUq+ATOPb7x0KZXfOkVG+so55BNDwOF3R3/rcurVeGo8XpbCxeefLyuAQL2drHYpT RaKLzpU98JXxf7Qm5Atwros0YfXsCWlYGel/V8NQ6OWEjCcYxAAyxPckHGJUzQCvr6cu7MO /ig7WIwhGlVWBmqMV/AqLc= X-QQ-XMRINFO: NyFYKkN4Ny6FuXrnB5Ye7Aabb3ujjtK+gg== X-QQ-RECHKSPAM: 0 --cd90495969691536a859394151b1932e9ba645d5efb1309eed502dd53e7b Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Sat, 07 Nov 2026 12:48:33 +0000, Troy Mitchell wrote: > On Fri, 6 Nov 2026 17:25:48 +0100, Sarah Emery wrote: > > > + uboot@210000 { > > > + reg =3D <0x210000 0x5f0000>; > > > + }; > > > > This partition ends at 0x800000. On the CoM260 with EDK2, > > 0x700000 to 0x7c0000 holds the variable store (NVRAM and FTW), so > > reflashing this partition from Linux would erase it. > > > > I think we could split it like this: > > > > uboot@210000 { > > reg =3D <0x210000 0x4f0000>; > > }; > > > > var@700000 { > > reg =3D <0x700000 0xc0000>; > > read-only; > > }; > > > > What do you think? > > The layout here is the one used by the SpacemiT boot firmware for K3, > where U-Boot owns everything from 0x210000 to the end of the flash. > The EDK2 that SpacemiT ships for K3 (including the CoM260 > configurations) keeps its variables in memory and does not use the > flash for them, so it has nothing at 0x700000. > > Which EDK2 build places the variable store at 0x700000? Sorry, I checked an outdated EDK2 tree. The current SpacemiT EDK2 for K3 does store the variables in flash, in a separate region pinned at 0x700000 with size 0xc0000, and the firmware image itself goes at 0x210000. So you are right, and I'll split the partition the way you suggested in v2. > > The Pico-ITX node also uses 0x5f0000, but I think it should be > > modified to split out the var part too if it makes sense here. > > Same answer as above. For Pico-ITX, the same layout applies, so its DTS should get the same split in a separate patch. --=20 Troy Mitchell --cd90495969691536a859394151b1932e9ba645d5efb1309eed502dd53e7b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJcEABYKAD8WIQSL4Ay2cExaPXAQcU2YCe+A+TM0LwUCau8layEcdHJveS5taXRj aGVsbEBsaW51eC5zcGFjZW1pdC5jb20ACgkQmAnvgPkzNC8mjAEAgs2JcthFsP1D X0CRVNci79azmcIjmw43lI/q3Mp1We4BAJiF7dDYWSszpFNzPWE068epMe+unJfn VBoMajSNo8cN =FnAV -----END PGP SIGNATURE----- --cd90495969691536a859394151b1932e9ba645d5efb1309eed502dd53e7b--