From patchwork Wed May 3 09:12:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 89668 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1191164vqo; Wed, 3 May 2023 02:30:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ZY1Gkr0+fih64YbSP9SWgll+IDJ8vWyFbna/VaYi90MsttiSOpgmU4Z6LnXNCqTc9iH5n X-Received: by 2002:a05:6a00:1885:b0:63d:6984:7a93 with SMTP id x5-20020a056a00188500b0063d69847a93mr28289156pfh.30.1683106204606; Wed, 03 May 2023 02:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683106204; cv=none; d=google.com; s=arc-20160816; b=LDCdmgSK7ARuoGV5/+1Ct+4oViKKr3KfiZ+xdZOPiRCTpDU6GfykWmQPMiqKRECsZ0 ZhIOql9XPgwEHFKd2ZRX26Vu9Qa72fN6UZRi54fmGI6J/erho2G/MZ4X4CZJvDz9V1xL 3O+xeOtqTBug8tuwds79TOaXBX8G308W2XytM0gJOUhZDvW7iOjQiahSdiYuqIUzZ731 HFUm67ptvFgMIhllAYmUrJvuuqR6A4DcwnE8YG36few09nZ44fjAMZsibeLMOR8lWvxh ftCZF0Whxxnn8znK/QA2HIbApkrmeB3u04y+rtd/Iep/MG9hQAF5xgm2tUcQJbbFnbvj nLdg== 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=lVDJIsQ0S2BXDL0aE4jmdUNqxmhZpOYTho+RaZVBNIA=; b=zMJb0ztKfAAGQUP0k9a1rEMbW5MUBCdGSSFO3DDZMO9Rc3elJrSC2eT9qcBeyH9+jR gW3kN39tOHvVdT8PmRD3SarkpuiG4HKa0vCXj+PFoBr5yNXFbJufMExWhe0MPijzAymH OHWQYd0+3t2KfXQ2QWdUEJQu3tfQHo2iZejkEX57sbjGtPiAhcfmEjNl79uDujD9bsHc 4gdWqQvCsIw3UEh5brWTyPtZHphROzC/GTQ3YA3O2ROirmHYAqWBNfIg7Fcib8VJbw/X F8elc89u9YUiw4mxJcSfYXFJ7bXFaghiDIyNxIAT+2K3RskZX0oSUmhGIe5Nlzgq2pZL a6fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jd3umEQX; 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 y63-20020a638a42000000b0051b930b2b4esi2858876pgd.620.2023.05.03.02.29.52; Wed, 03 May 2023 02:30:04 -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=jd3umEQX; 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 S229771AbjECJNL (ORCPT + 99 others); Wed, 3 May 2023 05:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbjECJNA (ORCPT ); Wed, 3 May 2023 05:13:00 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BCEF19A8; Wed, 3 May 2023 02:12:35 -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 3439CR1o122542; Wed, 3 May 2023 04:12:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683105147; bh=lVDJIsQ0S2BXDL0aE4jmdUNqxmhZpOYTho+RaZVBNIA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jd3umEQXVSUx33LaxFbYR0LQ9dwDARtPVEMBX35NH0kxU2t4fEQU7/J4tOcCF8YfW 2O/AGqGJOxQWyEqBjJZrzzkv+TsVNTvtogN8tkZNS01e/TYCTuOOG8e968363R2Tgf lh0Yk8mxBxoJi/2uzYZ2dv4LGr/SOqewBYUA9s1I= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3439CRNo026854 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 May 2023 04:12:27 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE106.ent.ti.com (157.170.170.36) 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:27 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE106.ent.ti.com (157.170.170.36) 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:27 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3439CQR7037091; Wed, 3 May 2023 04:12:26 -0500 From: Vaishnav Achath To: , , , , CC: , , , , Subject: [PATCH 4/4] arm64: dts: ti: k3-j7200-som: Describe OSPI and Hyperflash partition info Date: Wed, 3 May 2023 14:42:18 +0530 Message-ID: <20230503091218.25899-5-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?1764864771141059821?= X-GMAIL-MSGID: =?utf-8?q?1764864771141059821?= 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 fa44ed4c17d5..198408fdb017 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi @@ -140,6 +140,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>; + }; + }; }; }; @@ -229,5 +260,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>; + }; + }; }; };