From patchwork Wed May 3 09:12:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 89659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1184916vqo; Wed, 3 May 2023 02:15:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mHvuk+Nn6t7H9eSwwyGh9v61c7vuPhonMYEGU5HxJc0wcXgq3nlM6teq8styTEVo6w7p7 X-Received: by 2002:a17:90b:4d87:b0:246:c097:6a17 with SMTP id oj7-20020a17090b4d8700b00246c0976a17mr19791160pjb.24.1683105333248; Wed, 03 May 2023 02:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683105333; cv=none; d=google.com; s=arc-20160816; b=SS0u9I9lP5U8elM8DhYxEV0gqsBVYw8llsA1H/ag1y6dqSiFxrIqN/dZdRcuvb3amx 2b2VPdEgYpTFpbTgUvHpwp8YCfAcnyMW/xgoShQc16d13rCWlXLxcOsvdqSvxgldf5re TwVYveXNoBqV29hzF5FNA8WLId10nnBIa0sxYZ1YeX+w59y/N9w8XM8aeHK3f3JPKdIA 9EjO1lM9/tRCKoesWpnIlt2iO3eti8lOxxgYQ0ouvu2Rdg+gVj/fyBse7Q32GbF/p4KF k6LkHvYTJdkZSyoo/O0xY/BQAHFajCfuDwFrkvxeFl9JHZtQ9X1lxrltDyUALw9ZqZEj W5MQ== 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=3Z6rEIUPhUJ2Z630Krx9A/3oGlWvzLv0Q++lmAq39i0=; b=JSxI5EDflGFdb0nu0EcDI5X74FnvnZMIZRzZL0fg9bUj+t8d0wHnmlZLXF/AsXJ926 Bhxfws+acYXTYnRKyS2xUjqRPLxpqpngBOtJaSMoUppln3s06GNZm/nCwZEnFrlNDCGT JFWQDZTyH8JwDl3kIgAPU42Nt0LMgnslWDrDQo8pxLuQN2fAXnFe0oaEW5dwL9M13JgQ VgQ2Whjigng+jK0NMmm+kzA//gP16/aneU/AvqeDFMENMdpriTP7zcG+ycfsVwBUWcyk bEE20LP7sgEEY9GTSMpJdtses8OTra/sstuJOa7vWzUo3eKoYzZ0vh6NpXCWTwTm/pwi bWIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XEqydVw+; 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 j4-20020a170902c08400b001ab1d1a6802si999019pld.1.2023.05.03.02.15.18; Wed, 03 May 2023 02:15:33 -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=XEqydVw+; 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 S229651AbjECJMw (ORCPT + 99 others); Wed, 3 May 2023 05:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbjECJMt (ORCPT ); Wed, 3 May 2023 05:12:49 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40F5959EA; Wed, 3 May 2023 02:12:29 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3439CMHC129050; Wed, 3 May 2023 04:12:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683105142; bh=3Z6rEIUPhUJ2Z630Krx9A/3oGlWvzLv0Q++lmAq39i0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XEqydVw+x6uWgb9PI2snLAjRtRhi0vWzwOJC+SxBgd+CqgIpYUjvVvbDovAYuFlFf D9D+2SiDe/KEFc1zB/HUXQgmbxtdmueXrHMkBMtoQrF1Kx7xAHu2GRyRnTxPOH7WWI ZSbS8zqCQzv0HhZfTDkYi/fyH2BTRhrR5o+kebG4= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3439CMmH083516 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 May 2023 04:12:22 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) 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; Wed, 3 May 2023 04:12:21 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE112.ent.ti.com (157.170.170.23) 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; Wed, 3 May 2023 04:12:21 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3439CKsR009520; Wed, 3 May 2023 04:12:21 -0500 From: Vaishnav Achath To: , , , , CC: , , , , Subject: [PATCH 1/4] arm64: dts: ti: k3-j721e-som: Describe OSPI flash partition info Date: Wed, 3 May 2023 14:42:15 +0530 Message-ID: <20230503091218.25899-2-vaishnav.a@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230503091218.25899-1-vaishnav.a@ti.com> References: <20230503091218.25899-1-vaishnav.a@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 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?1764863857721418640?= X-GMAIL-MSGID: =?utf-8?q?1764863857721418640?= 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 SoM has a MT35 64 MiB OSPI flash with sector size of 128 KiB thus the size of the smallest partition is chosen as 128KiB, 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-som-p0.dtsi | 46 +++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi index e289d5b44356..1472c11d6660 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi @@ -182,6 +182,52 @@ cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <0>; + + 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 0x20000>; + }; + + partition@6a0000 { + label = "ospi.env.backup"; + reg = <0x6a0000 0x20000>; + }; + + partition@6c0000 { + label = "ospi.sysfw"; + reg = <0x6c0000 0x100000>; + }; + + partition@800000 { + label = "ospi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fe0000 { + label = "ospi.phypattern"; + reg = <0x3fe0000 0x20000>; + }; + }; }; };