From patchwork Sat May 13 14:17:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93537 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5811441vqo; Sat, 13 May 2023 07:43:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ntIDqlRFSyyHxBMH+EWqSQVlfpxDn5M09aytUX9ESYoLS3cvjauQhvsGBO3BPyXWdYETL X-Received: by 2002:a17:903:183:b0:1ac:7260:80a7 with SMTP id z3-20020a170903018300b001ac726080a7mr28543252plg.43.1683988982463; Sat, 13 May 2023 07:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683988982; cv=none; d=google.com; s=arc-20160816; b=PKu3a6EtbF/MK4A8319fwMc99S2ft4pTo8jD4bs8lzDjEphKxp64SfKwasApoCz5kJ 24FGLP3VFANSXtvtGf13ut22R5YzZ3i2LHbjvt70iyTcLGaFqvhahFSv7RRFPFF7GeCo Geudl9KfjU+D0BR6IhhTjNeDfymmcU7ftTOa2y+DQ2MqIHyJP+mLsUKavcQKlMTGaWpE +tkDGAR70mVhw+FYz7kbhY7Rs51IYDNmIwuD7anzh50Pnle4xBVZFHhSVSuCqELurJAA VC3AcYCK/llh21EewJyyog8He9DSaw0Rsyf3hFKU310U/gCi54JHUIej+d31HjWm0FYb YQrA== 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=ABJClZqOZxMXInTQef0ixgPzIqPSyo+n0ClPLX6q9zI=; b=bJ0ch34x7utW7p/zOgdF+8I7S/RUE46FbY3wRPCQgK6CMDkJOi0iGEEMZcKmVQJ1vg 65hDc7escNhni0UKTAe2YYwCidBMAxK3unNuU9THXmBB8JlnWqN+wCyZcoXA3ttDMD4A +KGjgEzFKnD1f5tylCDc+c7pWElkR/pY3+WXEfmEFCWWtZOM58WWYnL2+mi6lB7Knkjq lCq9dzhCBqI3lR+7wY0pQlvEJC/YLZulFO9cUvUzYK/CpwnmBbI85kvEuLrAYftnZ+81 hHEbkoWwZkYVpJHwCGNvAdfzKsD2dSvhCtFAIqrzOOC0QlDKwMAjM5T5tHu+IAKQQ6gP eWrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ufl68Reo; 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 j2-20020a170902758200b001a9581bfb91si10649816pll.543.2023.05.13.07.42.39; Sat, 13 May 2023 07:43:02 -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=ufl68Reo; 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 S239663AbjEMORi (ORCPT + 99 others); Sat, 13 May 2023 10:17:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239292AbjEMOR3 (ORCPT ); Sat, 13 May 2023 10:17:29 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86E4726B3; Sat, 13 May 2023 07:17:28 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHMgT005751; Sat, 13 May 2023 09:17:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683987442; bh=ABJClZqOZxMXInTQef0ixgPzIqPSyo+n0ClPLX6q9zI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ufl68ReowbSNLSY8ba15pWtCo71Hvbdy24FoTS9dIUAcaBYFtSsErU3LD2D4OCahx 4ebjiPVM+WL3hcA2Jp5wFkWKfFuWad4uBbNnT1757c1nrm8+Es3brcD+715PHSomwq Rm0CZAuGNyJ0gUoq6idh6hG9OsGyq67M6End+kSk= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DEHMFi092845 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 09:17:22 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE112.ent.ti.com (10.64.6.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:21 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE104.ent.ti.com (10.64.6.25) 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: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 34DEHJpv013982; Sat, 13 May 2023 09:17:20 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 4/6] arm64: dts: ti: k3-am654-baseboard: Describe OSPI flash partition info Date: Sat, 13 May 2023 19:47:10 +0530 Message-ID: <20230513141712.27346-5-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?1765790431571856173?= X-GMAIL-MSGID: =?utf-8?q?1765790431571856173?= 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. AM654 baseboard has a MT35XU512ABA 64 MiB OSPI flash with sector size of 128 KiB thus the size of the smallest partition is chosen as 128 KiB, the partition names and offsets are chosen according to the corresponding name and offsets in bootloader. Signed-off-by: Vaishnav Achath --- .../arm64/boot/dts/ti/k3-am654-base-board.dts | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts index 15524cf71b58..b49911efebc6 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts @@ -544,6 +544,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>; + }; + }; }; };