From patchwork Sat May 13 14:17:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93534 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5800188vqo; Sat, 13 May 2023 07:19:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zOXruNXUEjvgFYDnOjmdw8MUNq7NcMD6N558L3SpQb8OLvQvWfres16TG8wR8rOQAufrL X-Received: by 2002:a05:6a20:428c:b0:103:8d7d:e57c with SMTP id o12-20020a056a20428c00b001038d7de57cmr14381292pzj.58.1683987596007; Sat, 13 May 2023 07:19:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683987595; cv=none; d=google.com; s=arc-20160816; b=FrI5hWgmxLAh/FjwhPIYIBJQ3xvST2wIcIvW+A2xMyuTUc0ID2dQ6YsFGtBlCmrmvy ZPPw3JUCw/0dwDK1AWeSCSEIAJyA0h3cm4C8WtQO8bA6GRyVwRom1o+bZV2iWZegVpLy 2asoMEG9VuMDDuFiczBxVP97xxvmgaccuD01faSCjnulPR0ldxKtYDI0zeXbGQYzbBP8 t1gau5zohp/H6Tf/uT70XvaPm43ySo1CAB94wvMFpSfiv/ty2Bx4yKbaO+nUpahuwUcO QgEXMddyQ7DiKT/lkcX8FjKtFVBpEo4nXrMu8KUbrc4qPslToryqzo+YO5prONc71AcP R0+w== 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=Wqr5u/RldaRTwXy/Ndar1RQLuXUF8bzeJnE/KH+c1IA=; b=1KqoC170pb5/aMM6FoGBwXsKoGCgQaSarU426x0b89+wQyyqXA5m6MN9tSy9wyyukx 5BYe7x6wUq/6pWVN2NhAw3l/YiE6JDTAqdZFxYuAMIg1tHUtnCe6ANoaUyO3qore0cZa RHNQeJ4p72mPk5rNk3EfyFQ2eNsJD9eTLX3EIFHHgEJp5mfLeGfLSgvMRgmcRNkZO1L4 f/ZWpv2H2VV2Wvd9JsgXwCoANvHAvryHKPe4fpkmOPRdJhFXIdXMxOnW4oE5KZdU8lLJ 6TE9JW9jr2OaBnh9b1SFi+gaUMtVsnxD4/HfWVeSEDo1kXJH7Wjy3w+dMcnE6Ts5fcQS kgkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lPS2UovS; 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 a25-20020a637059000000b0050f66d3f72csi12322451pgn.532.2023.05.13.07.19.43; Sat, 13 May 2023 07:19:55 -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=lPS2UovS; 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 S239560AbjEMORe (ORCPT + 99 others); Sat, 13 May 2023 10:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239199AbjEMOR2 (ORCPT ); Sat, 13 May 2023 10:17:28 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569D8213E; Sat, 13 May 2023 07:17:25 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHJCZ092981; Sat, 13 May 2023 09:17:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683987439; bh=Wqr5u/RldaRTwXy/Ndar1RQLuXUF8bzeJnE/KH+c1IA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lPS2UovSkw+16R2CAqLmzElb7r0Ks8zYgEvgX1zJa2iCQjMkxrZSwXBXZn8jTPjBx WSdpy14SVRWuCk/qo7DgTMfNfhvveYk8AW9z/++NP9+PIq2uWtSvu2qGHovUkAn3k6 YzuvRA3FGk4625W4ry3J61XO8NQJaOOk+QO8YG88= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DEHJi9128655 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 09:17:19 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE100.ent.ti.com (10.64.6.21) 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:19 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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 via Frontend Transport; Sat, 13 May 2023 09:17:19 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHHDw047419; Sat, 13 May 2023 09:17:18 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 3/6] arm64: dts: ti: k3-j7200-som: Describe OSPI and Hyperflash partition info Date: Sat, 13 May 2023 19:47:09 +0530 Message-ID: <20230513141712.27346-4-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?1765788977241838670?= X-GMAIL-MSGID: =?utf-8?q?1765788977241838670?= Describe OSPI and Hyperflash 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. J7200 SoM 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 SoM also has a 64 MiB Hyperflash present on it, 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-j7200-som-p0.dtsi | 72 +++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi index 269424154771..2a743b895074 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi @@ -149,6 +149,37 @@ flash@0,0 { compatible = "cypress,hyperflash", "cfi-flash"; reg = <0x00 0x00 0x4000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "hbmc.tiboot3"; + reg = <0x0 0x100000>; + }; + + partition@100000 { + label = "hbmc.tispl"; + reg = <0x100000 0x200000>; + }; + + partition@300000 { + label = "hbmc.u-boot"; + reg = <0x300000 0x400000>; + }; + + partition@700000 { + label = "hbmc.env"; + reg = <0x700000 0x40000>; + }; + + partition@800000 { + label = "hbmc.rootfs"; + reg = <0x800000 0x3800000>; + }; + }; }; }; @@ -250,5 +281,46 @@ 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 0x100000>; + }; + + partition@100000 { + label = "ospi.tispl"; + reg = <0x100000 0x200000>; + }; + + partition@300000 { + label = "ospi.u-boot"; + reg = <0x300000 0x400000>; + }; + + partition@700000 { + label = "ospi.env"; + reg = <0x700000 0x40000>; + }; + + partition@740000 { + label = "ospi.env.backup"; + reg = <0x740000 0x40000>; + }; + + partition@800000 { + label = "ospi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fc0000 { + label = "ospi.phypattern"; + reg = <0x3fc0000 0x40000>; + }; + }; }; };