Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp528252rwr; Wed, 3 May 2023 02:13:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4h6q/ODdbvyaTftYVKl/Go7Z1bUBmOr7llr4F3jikABo6kgWy1F1UIAZyU3beK57+d1Lo/ X-Received: by 2002:a05:6a00:2d93:b0:63d:4358:9140 with SMTP id fb19-20020a056a002d9300b0063d43589140mr29326897pfb.34.1683105222062; 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=XpTEESUVee7iq1RLS0AZCMBXX5guSkfoViDFk6woCEZEqv2soE0kjtiXOjBXLd6R31 VRlh4jqfMimkDgg10Kmyjdx+x7nG7OhDOyHkmFXy7bs6SQhQPZn7YmlH7KxjbgWY3gZ0 fOD/9+MPEc89FYKPBvrjT538VqSPmkzwn6+bPX0b5CJGyUQSpzRUBTGvnvrXv5JCeySZ jQ0fH1WeK7d4aUqrR7bFCrly9NUwN63RG4tRndPIOSg7ixt0Sop6n/4qUIwxy35+qRbK FCTA9Qm23P6J7b9J8M6M66vEDFQugZ4dw46sbSzMSsoZWVE+rCqbLY2XwIh4/jIsbX3k lwYw== 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=sq3rV/s+dh78Mkhf9Tf0XLo1xiQuNdvhZ2datCes/tA=; b=hXEgFHQR8vTsguLGW+5ezzWHGxlatMvv6rN066zgrVwLUD+NzyGeZt2udn3tEC5BwS 2C1wc4KTuDZl9bJYRzTlrxlJR82EIjJLKPgdhyfzbudZM8xnlp66/iQuWwPg0Ua7fthY Si+IWPth8tXeLC9CfpN/QE+L4f4YGiA160cdKyWqm4QdU0qZp6CFP0HxzHwtcAxEhDaH rhJH0ht2p7iVNRYhNRMbucorYUw76usai3vuQ2ha1guzKbJaVlW471V7YKwUNlXrn1+J FxJWSC+6T+2BW5JdsYQN3qj9Xfw/R8pAAUV0mxKdRCtYmfygvpdFc3sqB6X4Xx7XThKV IpAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=d0RqSKy8; 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 w70-20020a638249000000b0050f6aaf7f27si34650244pgd.331.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=d0RqSKy8; 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 S229707AbjECJNG (ORCPT + 99 others); Wed, 3 May 2023 05:13:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbjECJM6 (ORCPT ); Wed, 3 May 2023 05:12:58 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2660740FD; Wed, 3 May 2023 02:12:33 -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 3439COCu085321; Wed, 3 May 2023 04:12:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683105144; bh=sq3rV/s+dh78Mkhf9Tf0XLo1xiQuNdvhZ2datCes/tA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=d0RqSKy8apDXvQFLrc5e3SckI0P5ANNOLN/FYDZmGnrZCaVXV92D1iauRB95RqeJH 61CpVSglRSGgoh+R9kAVxSMhg21LtknUeTaCSrorhoq9eQkb8VkApAOrn4jhTJ48/m CrMAqrRdrqk+DpOQiVM6gI4XcqLVp8+EvuWGootI= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3439COe2083527 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 May 2023 04:12:24 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE109.ent.ti.com (157.170.170.41) 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:23 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE108.ent.ti.com (157.170.170.38) 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:23 -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 3439CMHb009543; Wed, 3 May 2023 04:12:23 -0500 From: Vaishnav Achath To: , , , , CC: , , , , Subject: [PATCH 2/4] arm64: dts: ti: k3-j721e-som: Describe QSPI flash partition info Date: Wed, 3 May 2023 14:42:16 +0530 Message-ID: <20230503091218.25899-3-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 CPB has a MT25 64 MiB QSPI 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 --- .../dts/ti/k3-j721e-common-proc-board.dts | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts index 7db0603125aa..d6873402ee76 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts @@ -513,6 +513,52 @@ cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "qspi.tiboot3"; + reg = <0x0 0x80000>; + }; + + partition@80000 { + label = "qspi.tispl"; + reg = <0x80000 0x200000>; + }; + + partition@280000 { + label = "qspi.u-boot"; + reg = <0x280000 0x400000>; + }; + + partition@680000 { + label = "qspi.env"; + reg = <0x680000 0x20000>; + }; + + partition@6a0000 { + label = "qspi.env.backup"; + reg = <0x6a0000 0x20000>; + }; + + partition@6c0000 { + label = "qspi.sysfw"; + reg = <0x6c0000 0x100000>; + }; + + partition@800000 { + label = "qspi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fe0000 { + label = "qspi.phypattern"; + reg = <0x3fe0000 0x20000>; + }; + }; }; }; -- 2.17.1