From patchwork Sat May 13 14:17:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93533 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5800084vqo; Sat, 13 May 2023 07:19:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HY1+JhQmBoOQGUbaJsuZODhJwgPQXo4X8BkKk9llg9qC8VtjUHvKrJZBljCuOWd33yTZ5 X-Received: by 2002:a05:6a00:134a:b0:64a:ede1:13fb with SMTP id k10-20020a056a00134a00b0064aede113fbmr5955244pfu.9.1683987587277; Sat, 13 May 2023 07:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683987587; cv=none; d=google.com; s=arc-20160816; b=rxTdp6Z4ZOe2S4w/yraTN1SkRMBBjKioI9XRLFhuUMDUsKotyTYP/Rkh9EUssQto26 Zt4dJrwzheCG3pcPIS1zd/t2Dkxw7L4U9LpdM1OLMj6DdddVAn+kUHc+ChaSyoPhS1xO wAl3d41pb6p+xjGpKyomiJ5wtCDy1M8YtBYb2v6zLsQOmfuvGE38776TfBXSR47ovHz+ bMEwE+xd3rRQ1krcoQQs3gSGhxmLsfAsP8GCJoKbeHFOEC5pwCtcBOdSbdRr9Abfy78R 6ypSD9gAAW6L+hBl6kY4WZ878OcS0bEPdM2TvGuisNYJYc+uy57Yk4aEgxZV6rlv+iZK QtHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KLNkzNc+8lzA7Q5OcqIZjLPstwCTH3EcjCe02slIYkc=; b=XIJR3cwf76ytPTwPlRQ6dGgDF8qpXsjNcXvKjbzc72fhrAqJuq+I1W9GZWNP5VdqR6 D0CjwZZjZTlnT4NYthZ4t/PjNZJUClh5G5sFDeeJempAvALym89E/HswSrh/6Bbn6XP4 Lb3MoeCssiNvNZSUltCRjr0NbkBAtmGQvL3QhqG5QXDSVZSDGMaRKD7wcoS4UMLZBzCx F9LWFfUJCf21AMfdU2GfSofIStkjvGNALd2j/gtknb5J58fAoj59d37CMpx6K9koTCUj SlsAfAYJA9WRmGOerTNp10ugGzUzUnd6MyUqOg17OWk8y5UDEWX7MsQBGP4JD6mqisXS Arlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="JvpM4O/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020aa79605000000b00644c36e2079si12502377pfg.92.2023.05.13.07.19.35; Sat, 13 May 2023 07:19:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="JvpM4O/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239467AbjEMORc (ORCPT + 99 others); Sat, 13 May 2023 10:17:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbjEMOR2 (ORCPT ); Sat, 13 May 2023 10:17:28 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 331902136; Sat, 13 May 2023 07:17:25 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHHm6082935; Sat, 13 May 2023 09:17:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683987437; bh=KLNkzNc+8lzA7Q5OcqIZjLPstwCTH3EcjCe02slIYkc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JvpM4O/t64qf7sUXCo9tg0XZoBrjOspxJzzAZctkOkrJdACS1lgfvHYoO/D2pEKJB w8wz9iX8eQCoA9BjCK+15+4NdcNCRjuWagw1TYVjls94pG9jyFRgbfIjsl2yhHOlMT IQInqTH/R053YgcwoYlwjbTEFrw7H/Mlp4mLFNgE= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DEHH5P042576 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 09:17:17 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE103.ent.ti.com (157.170.170.33) 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:17 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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:17 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHGkX056464; Sat, 13 May 2023 09:17:16 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 2/6] arm64: dts: ti: k3-j721e-sk: Describe OSPI flash partition info Date: Sat, 13 May 2023 19:47:08 +0530 Message-ID: <20230513141712.27346-3-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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765788968479548503?= X-GMAIL-MSGID: =?utf-8?q?1765788968479548503?= 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. J721E SK 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-j721e-sk.dts | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts index ad7b45aeed0a..54008334d315 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts @@ -568,6 +568,52 @@ cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <4>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "ospi.tiboot3"; + reg = <0x0 0x80000>; + }; + + partition@80000 { + label = "ospi.tispl"; + reg = <0x80000 0x200000>; + }; + + partition@280000 { + label = "ospi.u-boot"; + reg = <0x280000 0x400000>; + }; + + partition@680000 { + label = "ospi.env"; + reg = <0x680000 0x40000>; + }; + + partition@6c0000 { + label = "ospi.sysfw"; + reg = <0x6c0000 0x100000>; + }; + + partition@7c0000 { + label = "ospi.env.backup"; + reg = <0x7c0000 0x40000>; + }; + + partition@800000 { + label = "ospi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fc0000 { + label = "ospi.phypattern"; + reg = <0x3fc0000 0x40000>; + }; + }; }; };