Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp527888rwr; Wed, 3 May 2023 02:13:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6QEFeBWB0T3Jw9ZGtd+MmyvrxS4gdBU80BMIyBxD7RFyB0CMYpoRnFBUz9MKND9npC16Aq X-Received: by 2002:a17:90a:246:b0:24d:e3c1:959d with SMTP id t6-20020a17090a024600b0024de3c1959dmr13573632pje.37.1683105200681; Wed, 03 May 2023 02:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683105200; cv=none; d=google.com; s=arc-20160816; b=TE5QEDHL7koigYqpzrLLMFeZ3DIvUHnMGCGHCi9OWlt6I37o2OAuOnJxrLIjwyOdWX +wkgdTP0EDbchyVtKyw6awTRqE/ojFw0rxP6DLXOWmNYve69vMs94SBZD+dZdIi27LcN MaiFk8xHcJiYfjv5DRO2XI4Kx9KjjDjsbgJu9zHamxRX/YU+RaDxdDqyhD8XMzaq70Ki 6j4Lfe/YGtDk0XA543+DLkL+jMV8oKrO9/4fsDkuJ9EZw+umVba2hvbRZMqXZjUUiMqW RfNe3IIf4UUpwmWD/k2XOJtHEI70I8Dk3X8WnWzACjijf20SflVFN26RZ5uxoX/N8KC5 jHww== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s61-20020a17090a2f4300b002473c8f52fcsi1070267pjd.91.2023.05.03.02.13.06; Wed, 03 May 2023 02:13:20 -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 S229656AbjECJMv (ORCPT + 99 others); Wed, 3 May 2023 05:12:51 -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 Content-Type: text/plain 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 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>; + }; + }; }; }; -- 2.17.1