From patchwork Wed May 3 09:12:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 89661 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1185608vqo; Wed, 3 May 2023 02:17:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6aTsw6NKQJWtZ9FcGAiqZDG9WdGYmqzUyr01drVpGcNmWGD3zcZ0H1aqVc3hlDo+b8T1jx X-Received: by 2002:a17:902:c40a:b0:1ab:25a6:a54b with SMTP id k10-20020a170902c40a00b001ab25a6a54bmr123724plk.4.1683105427157; Wed, 03 May 2023 02:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683105427; cv=none; d=google.com; s=arc-20160816; b=EE+qryvFxclh9qTOmoYClKXK4xEeZ+oxYXjo5qX9oqMCHq6m7PsyboJNYfgXsg8qJE 5Sji6BM2Opwt/tO2CX3RVA/5lS3clE4GNTYpBA84MBiz6NpmJPhleagAuh6RU5mQn/TF nY/wgy7c7O4Ha0XTOL4sw8GnOuGQ+MgT1LPadY6fHuBFcRrNyzW8TdCfMEvFdRDIbc3Q SdqhAul0riZ+Tra7Mw4NL0wHzYOhOEAX0bEUgFnfImttr6x8CQ/k0zulZnOXAQ+r4Jpk fuAvbDbnV8GJPTxXjV/01oQH8JpmO+eBvg7d6N21Slx8rcdacqrJyUGc9+udAB4bZUwb u0gQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a63790e000000b0051f6974b6f9si3763927pgc.789.2023.05.03.02.16.54; Wed, 03 May 2023 02:17:07 -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 S229770AbjECJNE (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 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?1764863956449491991?= X-GMAIL-MSGID: =?utf-8?q?1764863956449491991?= 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>; + }; + }; }; };