From nobody Mon Feb 9 20:30:28 2026 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 A86F4C77B7F for ; Sat, 13 May 2023 14:17:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239781AbjEMORo (ORCPT ); Sat, 13 May 2023 10:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239468AbjEMORc (ORCPT ); Sat, 13 May 2023 10:17:32 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5D66270E; Sat, 13 May 2023 07:17:27 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHNaJ083056; Sat, 13 May 2023 09:17:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683987443; bh=o2li5W6yBIlUhqZpwwogvoA2xEAQAkz7yXgGyB5lxO4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mJnR+QUy7qM2C7TwFqyZXYGBZyQfmY4K/YZT+j2gJi6CR7IOmovgFnv7GrFdIqt6i AE0nj1N3G3Ilu0X9fHzk55JrnglldS84f5S075ooCdFkKSgMGzmjeHIA54SjMlDaF3 +WWdwBnZM45eBquMwZxBvtDwrJlpd20IDxqef6Uw= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DEHNQU092855 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 09:17:23 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 13 May 2023 09:17:22 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 13 May 2023 09:17:22 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHLrm047455; Sat, 13 May 2023 09:17:22 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 5/6] arm64: dts: ti: k3-am642-sk/evm: Describe OSPI flash partition info Date: Sat, 13 May 2023 19:47:11 +0530 Message-ID: <20230513141712.27346-6-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230513141712.27346-1-vaishnav.a@ti.com> References: <20230513141712.27346-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Describe OSPI flash partition information through device tree, this helps to remove passing partition information through the mtdparts commandline parameter which requires maintaining the partition information in a string format. AM64 SK and EVM has a S28 64 MiB OSPI flash with sector size of 256 KiB thus the size of the smallest partition is chosen as 256 KiB, the partition names and offsets are chosen according to the corresponding name and offsets in bootloader. Signed-off-by: Vaishnav Achath --- arch/arm64/boot/dts/ti/k3-am642-evm.dts | 41 +++++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am642-sk.dts | 41 +++++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/= ti/k3-am642-evm.dts index 3db740f78cd2..6d4d9fcc1ca7 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -533,6 +533,47 @@ cdns,tchsh-ns =3D <60>; cdns,tslch-ns =3D <60>; cdns,read-delay =3D <4>; + + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + partition@0 { + label =3D "ospi.tiboot3"; + reg =3D <0x0 0x100000>; + }; + + partition@100000 { + label =3D "ospi.tispl"; + reg =3D <0x100000 0x200000>; + }; + + partition@300000 { + label =3D "ospi.u-boot"; + reg =3D <0x300000 0x400000>; + }; + + partition@700000 { + label =3D "ospi.env"; + reg =3D <0x700000 0x40000>; + }; + + partition@740000 { + label =3D "ospi.env.backup"; + reg =3D <0x740000 0x40000>; + }; + + partition@800000 { + label =3D "ospi.rootfs"; + reg =3D <0x800000 0x37c0000>; + }; + + partition@3fc0000 { + label =3D "ospi.phypattern"; + reg =3D <0x3fc0000 0x40000>; + }; + }; }; }; =20 diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/t= i/k3-am642-sk.dts index 003cff9a2799..b4e4a671e1a6 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -531,6 +531,47 @@ cdns,tchsh-ns =3D <60>; cdns,tslch-ns =3D <60>; cdns,read-delay =3D <4>; + + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + partition@0 { + label =3D "ospi.tiboot3"; + reg =3D <0x0 0x100000>; + }; + + partition@100000 { + label =3D "ospi.tispl"; + reg =3D <0x100000 0x200000>; + }; + + partition@300000 { + label =3D "ospi.u-boot"; + reg =3D <0x300000 0x400000>; + }; + + partition@700000 { + label =3D "ospi.env"; + reg =3D <0x700000 0x40000>; + }; + + partition@740000 { + label =3D "ospi.env.backup"; + reg =3D <0x740000 0x40000>; + }; + + partition@800000 { + label =3D "ospi.rootfs"; + reg =3D <0x800000 0x37c0000>; + }; + + partition@3fc0000 { + label =3D "ospi.phypattern"; + reg =3D <0x3fc0000 0x40000>; + }; + }; }; }; =20 --=20 2.17.1