From patchwork Wed May 3 09:12:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 89659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1184916vqo; Wed, 3 May 2023 02:15:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mHvuk+Nn6t7H9eSwwyGh9v61c7vuPhonMYEGU5HxJc0wcXgq3nlM6teq8styTEVo6w7p7 X-Received: by 2002:a17:90b:4d87:b0:246:c097:6a17 with SMTP id oj7-20020a17090b4d8700b00246c0976a17mr19791160pjb.24.1683105333248; Wed, 03 May 2023 02:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683105333; cv=none; d=google.com; s=arc-20160816; b=SS0u9I9lP5U8elM8DhYxEV0gqsBVYw8llsA1H/ag1y6dqSiFxrIqN/dZdRcuvb3amx 2b2VPdEgYpTFpbTgUvHpwp8YCfAcnyMW/xgoShQc16d13rCWlXLxcOsvdqSvxgldf5re TwVYveXNoBqV29hzF5FNA8WLId10nnBIa0sxYZ1YeX+w59y/N9w8XM8aeHK3f3JPKdIA 9EjO1lM9/tRCKoesWpnIlt2iO3eti8lOxxgYQ0ouvu2Rdg+gVj/fyBse7Q32GbF/p4KF k6LkHvYTJdkZSyoo/O0xY/BQAHFajCfuDwFrkvxeFl9JHZtQ9X1lxrltDyUALw9ZqZEj W5MQ== 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=3Z6rEIUPhUJ2Z630Krx9A/3oGlWvzLv0Q++lmAq39i0=; b=JSxI5EDflGFdb0nu0EcDI5X74FnvnZMIZRzZL0fg9bUj+t8d0wHnmlZLXF/AsXJ926 Bhxfws+acYXTYnRKyS2xUjqRPLxpqpngBOtJaSMoUppln3s06GNZm/nCwZEnFrlNDCGT JFWQDZTyH8JwDl3kIgAPU42Nt0LMgnslWDrDQo8pxLuQN2fAXnFe0oaEW5dwL9M13JgQ VgQ2Whjigng+jK0NMmm+kzA//gP16/aneU/AvqeDFMENMdpriTP7zcG+ycfsVwBUWcyk bEE20LP7sgEEY9GTSMpJdtses8OTra/sstuJOa7vWzUo3eKoYzZ0vh6NpXCWTwTm/pwi bWIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XEqydVw+; 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 j4-20020a170902c08400b001ab1d1a6802si999019pld.1.2023.05.03.02.15.18; Wed, 03 May 2023 02:15:33 -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=XEqydVw+; 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 S229651AbjECJMw (ORCPT + 99 others); Wed, 3 May 2023 05:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbjECJMt (ORCPT ); Wed, 3 May 2023 05:12:49 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40F5959EA; Wed, 3 May 2023 02:12:29 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3439CMHC129050; Wed, 3 May 2023 04:12:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683105142; bh=3Z6rEIUPhUJ2Z630Krx9A/3oGlWvzLv0Q++lmAq39i0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XEqydVw+x6uWgb9PI2snLAjRtRhi0vWzwOJC+SxBgd+CqgIpYUjvVvbDovAYuFlFf D9D+2SiDe/KEFc1zB/HUXQgmbxtdmueXrHMkBMtoQrF1Kx7xAHu2GRyRnTxPOH7WWI ZSbS8zqCQzv0HhZfTDkYi/fyH2BTRhrR5o+kebG4= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3439CMmH083516 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 May 2023 04:12:22 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE103.ent.ti.com (157.170.170.33) 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:21 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE112.ent.ti.com (157.170.170.23) 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:21 -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 3439CKsR009520; Wed, 3 May 2023 04:12:21 -0500 From: Vaishnav Achath To: , , , , CC: , , , , Subject: [PATCH 1/4] arm64: dts: ti: k3-j721e-som: Describe OSPI flash partition info Date: Wed, 3 May 2023 14:42:15 +0530 Message-ID: <20230503091218.25899-2-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?1764863857721418640?= X-GMAIL-MSGID: =?utf-8?q?1764863857721418640?= 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 SoM has a MT35 64 MiB OSPI flash with sector size of 128 KiB thus the size of the smallest partition is chosen as 128KiB, 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-som-p0.dtsi | 46 +++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi index e289d5b44356..1472c11d6660 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi @@ -182,6 +182,52 @@ cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <0>; + + 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 0x20000>; + }; + + partition@6a0000 { + label = "ospi.env.backup"; + reg = <0x6a0000 0x20000>; + }; + + partition@6c0000 { + label = "ospi.sysfw"; + reg = <0x6c0000 0x100000>; + }; + + partition@800000 { + label = "ospi.rootfs"; + reg = <0x800000 0x37c0000>; + }; + + partition@3fe0000 { + label = "ospi.phypattern"; + reg = <0x3fe0000 0x20000>; + }; + }; }; }; From patchwork Wed May 3 09:12:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 89664 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1189602vqo; Wed, 3 May 2023 02:26:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jCEJaC5hMZ/3duGD8UuO6K9uFDsJm7LaG8QwkqXD/WamNcGEMRFW0JVjajVdIgRsipf0u X-Received: by 2002:a17:90b:17cd:b0:23b:38b2:f0bd with SMTP id me13-20020a17090b17cd00b0023b38b2f0bdmr22052199pjb.15.1683105984383; Wed, 03 May 2023 02:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683105984; cv=none; d=google.com; s=arc-20160816; b=XHUAsAEVyI3s6YkAYNbX3LCiSztzqeAwUTiEHXws0L+bB3hiLr4wVPnEomnPnIaUBz 0l0gAx/5vJHkbUaN6UB9FrAe6+loEPKEWyjWmEw6HNozbyKZh9+JTDg4BW28jANtTmwd BKk9PC6eJSs7ZEleutZwY33Bgh1Zpw3wriF3o6K3gK71nOTodzMGf1V7mrcWNr+VO0IV fck178vEhPREIM6Nrl2BKTHueSu5toJC3WCwlPm9uG/O6QcrQ3+thNJimy95h+8VjVDf SVy6O7DD9SjR+Ww9xfcOkXyq6uDo5GVJir1tgG29n0l93eehhWNwfynI34I0Mo1TWcp2 H+qQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a63db58000000b0051b33c863ffsi33187513pgi.399.2023.05.03.02.26.12; Wed, 03 May 2023 02:26:24 -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 S229732AbjECJNH (ORCPT + 99 others); Wed, 3 May 2023 05:13:07 -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 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?1764864540597583892?= X-GMAIL-MSGID: =?utf-8?q?1764864540597583892?= 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>; + }; + }; }; }; 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>; + }; + }; }; }; 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>; + }; + }; }; };