From nobody Sun Sep 14 20:30:03 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8615C00A5A for ; Thu, 19 Jan 2023 06:42:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229884AbjASGmb (ORCPT ); Thu, 19 Jan 2023 01:42:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbjASGmD (ORCPT ); Thu, 19 Jan 2023 01:42:03 -0500 X-Greylist: delayed 69 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 18 Jan 2023 22:41:58 PST Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net [185.136.65.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C10C65F05 for ; Wed, 18 Jan 2023 22:41:51 -0800 (PST) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 202301190640435230c9ab1b311a69cb for ; Thu, 19 Jan 2023 07:40:43 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=jan.kiszka@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=o0QGfu5aYlJSGJDDc5cQ+AgSfA70JLHN2RUhvaqAiZU=; b=TmSXeKOJMPIs1rcDsjxeB6GArEXKdbQEj9jV2mC7ydx/7MsH7FvUpj482QuuUDh9WX3Skr 5+1H6fQiZNhrKxFJ8We42EOkiUm6XhXuL/SkUOdUZP9TDxoTVmjBUQrJZhfeAFUDX9puXbex wU+RiGkC68QoSxjSgieOyYjGKhAM4=; From: Jan Kiszka To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bao Cheng Su , Chao Zeng Subject: [PATCH v2 1/3] arm64: dts: ti: iot2050: Add layout of OSPI flash Date: Thu, 19 Jan 2023 07:40:40 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Jan Kiszka Describe the layout of the OSPI flash as the latest firmware uses it. Specifically the location of the U-Boot envs is important for userspace in order to access it. Signed-off-by: Jan Kiszka --- .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi b/arch/arm6= 4/boot/dts/ti/k3-am65-iot2050-common.dtsi index 3cced26b520a..96ac2b476b11 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -609,6 +609,52 @@ flash@0 { cdns,tchsh-ns =3D <60>; cdns,tslch-ns =3D <60>; cdns,read-delay =3D <2>; + + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + seboot@0 { + label =3D "seboot"; + reg =3D <0x0 0x180000>; /* 1.5M */ + }; + + tispl@180000 { + label =3D "tispl"; + reg =3D <0x180000 0x200000>; /* 2M */ + }; + + u-boot@380000 { + label =3D "u-boot"; + reg =3D <0x380000 0x300000>; /* 3M */ + }; + + env@680000 { + label =3D "env"; + reg =3D <0x680000 0x20000>; /* 128K */ + }; + + env-backup@6a0000 { + label =3D "env.backup"; + reg =3D <0x6a0000 0x20000>; /* 128K */ + }; + + otpcmd@6c0000 { + label =3D "otpcmd"; + reg =3D <0x6c0000 0x10000>; /* 64K */ + }; + + unused@6d0000 { + label =3D "unused"; + reg =3D <0x6d0000 0x7b0000>; /* 7872K */ + }; + + seboot-backup@e80000 { + label =3D "seboot.backup"; + reg =3D <0xe80000 0x180000>; /* 1.5M */ + }; + }; }; }; =20 --=20 2.35.3