Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp528251rwr; Wed, 3 May 2023 02:13:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6wIWU6n//+D8+Fo/FPU5NAnNahwxxto81tPdBP6Y7nEuHNZHOGbpLymX+3foud6oemIYC8 X-Received: by 2002:a17:902:c3d5:b0:19f:a694:6d3c with SMTP id j21-20020a170902c3d500b0019fa6946d3cmr1231730plj.55.1683105222064; Wed, 03 May 2023 02:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683105222; cv=none; d=google.com; s=arc-20160816; b=yJ2YXXZ3CHr9PfijPQgLw03DD0DOwnI2xknISaWfmNXlNPCecxBLlYDSz4SrPMy2f4 D1FbDTHrpAhoOpPRAKwN59ZiOpD575mnaa5I928xrYKDDo0M21idnyVS9JAobdDfbDCg 0Fm0xlV+SoETGeRZwf79OxEOQvf8YGhlch7dBoOgDZ28RqTAcB7arF+cbkFZSxOVCZt6 onJxZXES/ElIbO/GgcEqsTskQNnWDE/gl8Yf4S771mOumIuzPzLS9FbmTr1ZA4jtmIVi xWzY6VxO0kxhCmBtVIAhQGStA4a+GQFd7LOz6l0xHz8XQbTWjQDVQtTmBvFXSDllzy3N pMxw== 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=7PmGC/VVDHmRjcp5MZ63Fa+GLTmXH9voDUoDStahHdo=; b=SI0mlAIplwgIPMTEzR8n8slDRWa09swy4R5igHQgM6YlTs4Ei/Jjq+TnYddJt+JHWT 8xJD2F35DIFIKz5s9s7CCcxPUnORzxnX826X9VYmOtVnLZIarFfA4/p+S3ZBOQ2fmoME qwR4EyGNMit5a8scqNUfe9al6oBqDkIRbtEAis2pHB21gcrABggB3FJu38YJ0vWrjMWT gX34rLT5g5zwJiWH7iT7avvcILwmzga/tRkbaKDrh7clABwx8kX1sEVeDxl880Jjcv3V Aj5E6nG9wlP33xYJDQG5z6F3oxd+NTqWoSHkqJU0/aSBEe0tcqVmjfEsSZwKrf5SlDFD XpvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pjZ68dOW; 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 e12-20020a170902784c00b001a6547bfdadsi29919505pln.156.2023.05.03.02.13.26; Wed, 03 May 2023 02:13:42 -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=pjZ68dOW; 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 S229756AbjECJNE (ORCPT + 99 others); Wed, 3 May 2023 05:13:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbjECJM5 (ORCPT ); Wed, 3 May 2023 05:12:57 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EF7D4C31; Wed, 3 May 2023 02:12:34 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3439CPIB122536; Wed, 3 May 2023 04:12:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683105145; bh=7PmGC/VVDHmRjcp5MZ63Fa+GLTmXH9voDUoDStahHdo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=pjZ68dOWcjlKv/FN4Hg8uIZG9wgMenn9Y/UwN2OhJJMB9BfjUt4i2G/qEpKKbns1A W3tskZ/xaoItQOG1XFXeQCMxQ1tVkPgch4Yp9glU83upVaMIqguandpHjNQheNgK7H DEnU3q6t9+pN9O30hR0FzVQ0WPyTdiOFnRXXUa44= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3439CPWn026842 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 May 2023 04:12:25 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE113.ent.ti.com (10.64.6.34) 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:25 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE110.ent.ti.com (10.64.6.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; Wed, 3 May 2023 04:12:25 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3439COLq009559; Wed, 3 May 2023 04:12:25 -0500 From: Vaishnav Achath To: , , , , CC: , , , , Subject: [PATCH 3/4] arm64: dts: ti: k3-j721e-sk: Describe OSPI flash partition info Date: Wed, 3 May 2023 14:42:17 +0530 Message-ID: <20230503091218.25899-4-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 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 f650a7fd66b4..6d100a6aae05 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts @@ -569,6 +569,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>; + }; + }; }; }; -- 2.17.1