From patchwork Sat May 13 14:17:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93532 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5799846vqo; Sat, 13 May 2023 07:19:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7elKTlkYLF6IDrJveASXqYjY2i7moO4DUfRzsLwfuz74HnDQf3cy1IoYzrHZfRRN4+gfGA X-Received: by 2002:a05:6a00:1301:b0:64b:f03b:2639 with SMTP id j1-20020a056a00130100b0064bf03b2639mr480281pfu.22.1683987562102; Sat, 13 May 2023 07:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683987562; cv=none; d=google.com; s=arc-20160816; b=UYTTthQQSV7HXNGiG0E8wRKEhbGrKE8RAXdP1C4vt5mN0/Gut7BAMiKWZcFeJcLriu YTo1YjMbmDyGLa3dlMqyNAhqj5gx/1/lOohf8tu99e8RZrgAscWN7VpD0VIMB+YKVDSb O3j/x7eHNTnH6mFvRVobwMDNJzkIrDUFpB3pWarbpSkO+Ppj4Ztx5zJXBMExzUqc0DDt wxMnWUc1V+yDZ6GZnbfSs1E2lva/oPGyokvE/UAaQ6huXWogZYrEcVZYuGMvpDd2Ue6f az1uE/mE62VQs2ivUkvHWGphAr5dubndndHvWTRhT2nj9OBG4nMlPTA8D3wHRcGdHdZi ICSA== 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=D/yrkRtaQG65/BSegW5ZEtJsd5ONLr9YlIcTdwDVxsg=; b=iZ0z2hYbAkYWxj6hD//Um+UBNgmOZYkhIkc1hs49xj8BBnR8uNWHW7QMULKAS6OIwq QO12ZB9gtU9G5YqPCjHhrs0VtypJgXM7IUpp0Iimc4zpOTQf8g0fVxIkhaDi9vmFfaD1 t3tueTQB0fQhWLM8ZtOF4dn8wkEN+2sSkcPHgQH6QSYNpj3YPj/h6SA7xXE/5gpvPpew ItguMSOrhPyPwPgmBiS6i13jxLfFPMAi9ycqOoXL37AXlx5Ht/iIKl0Ywx34pdMmZKSd F06YY2AM2gM6S0v+3WwhuJ2FYRi3QJaw8tIIpbTnuMXpmAWNvOGQylJvUebSkc8LUtij +Ebw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ksxrYLJW; 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 a3-20020aa79703000000b006488f469a58si8189728pfg.71.2023.05.13.07.19.09; Sat, 13 May 2023 07:19:22 -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=ksxrYLJW; 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 S239308AbjEMOR3 (ORCPT + 99 others); Sat, 13 May 2023 10:17:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239190AbjEMOR1 (ORCPT ); Sat, 13 May 2023 10:17:27 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5C7E2133; Sat, 13 May 2023 07:17:24 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHFLD005710; Sat, 13 May 2023 09:17:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683987435; bh=D/yrkRtaQG65/BSegW5ZEtJsd5ONLr9YlIcTdwDVxsg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ksxrYLJWNgsSndk1DG43ce1JB+HWv5gKqTe/FZlxp08VI/JYqGTA0Plq3n874btZ9 GXgIv6UChvSCVNLVqMrPOb9ficN5G/J1wgeMhWmzQPAhEPIOdxS1tdgWuNPvA20vch olbXeg+3nIEH9VGGrCZQhSyQK6sENYuvakLoUZ1A= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DEHF0x128632 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 09:17:15 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) 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; Sat, 13 May 2023 09:17:15 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE102.ent.ti.com (157.170.170.32) 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:15 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHEBe056450; Sat, 13 May 2023 09:17:14 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 1/6] arm64: dts: ti: k3-j721e: Describe OSPI and QSPI flash partition info Date: Sat, 13 May 2023 19:47:07 +0530 Message-ID: <20230513141712.27346-2-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?1765788942248434390?= X-GMAIL-MSGID: =?utf-8?q?1765788942248434390?= Describe OSPI and QSPI 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 and MT25 64 MiB QSPI flash both 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 --- .../dts/ti/k3-j721e-common-proc-board.dts | 46 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi | 46 +++++++++++++++++++ 2 files changed, 92 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 c11c092c1ce0..b6c8d2f1e460 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 @@ -512,6 +512,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>; + }; + }; }; }; 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 Sat May 13 14:17:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93533 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5800084vqo; Sat, 13 May 2023 07:19:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HY1+JhQmBoOQGUbaJsuZODhJwgPQXo4X8BkKk9llg9qC8VtjUHvKrJZBljCuOWd33yTZ5 X-Received: by 2002:a05:6a00:134a:b0:64a:ede1:13fb with SMTP id k10-20020a056a00134a00b0064aede113fbmr5955244pfu.9.1683987587277; Sat, 13 May 2023 07:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683987587; cv=none; d=google.com; s=arc-20160816; b=rxTdp6Z4ZOe2S4w/yraTN1SkRMBBjKioI9XRLFhuUMDUsKotyTYP/Rkh9EUssQto26 Zt4dJrwzheCG3pcPIS1zd/t2Dkxw7L4U9LpdM1OLMj6DdddVAn+kUHc+ChaSyoPhS1xO wAl3d41pb6p+xjGpKyomiJ5wtCDy1M8YtBYb2v6zLsQOmfuvGE38776TfBXSR47ovHz+ bMEwE+xd3rRQ1krcoQQs3gSGhxmLsfAsP8GCJoKbeHFOEC5pwCtcBOdSbdRr9Abfy78R 6ypSD9gAAW6L+hBl6kY4WZ878OcS0bEPdM2TvGuisNYJYc+uy57Yk4aEgxZV6rlv+iZK QtHA== 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=KLNkzNc+8lzA7Q5OcqIZjLPstwCTH3EcjCe02slIYkc=; b=XIJR3cwf76ytPTwPlRQ6dGgDF8qpXsjNcXvKjbzc72fhrAqJuq+I1W9GZWNP5VdqR6 D0CjwZZjZTlnT4NYthZ4t/PjNZJUClh5G5sFDeeJempAvALym89E/HswSrh/6Bbn6XP4 Lb3MoeCssiNvNZSUltCRjr0NbkBAtmGQvL3QhqG5QXDSVZSDGMaRKD7wcoS4UMLZBzCx F9LWFfUJCf21AMfdU2GfSofIStkjvGNALd2j/gtknb5J58fAoj59d37CMpx6K9koTCUj SlsAfAYJA9WRmGOerTNp10ugGzUzUnd6MyUqOg17OWk8y5UDEWX7MsQBGP4JD6mqisXS Arlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="JvpM4O/t"; 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 q5-20020aa79605000000b00644c36e2079si12502377pfg.92.2023.05.13.07.19.35; Sat, 13 May 2023 07:19:47 -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="JvpM4O/t"; 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 S239467AbjEMORc (ORCPT + 99 others); Sat, 13 May 2023 10:17:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbjEMOR2 (ORCPT ); Sat, 13 May 2023 10:17:28 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 331902136; Sat, 13 May 2023 07:17:25 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHHm6082935; Sat, 13 May 2023 09:17:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683987437; bh=KLNkzNc+8lzA7Q5OcqIZjLPstwCTH3EcjCe02slIYkc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JvpM4O/t64qf7sUXCo9tg0XZoBrjOspxJzzAZctkOkrJdACS1lgfvHYoO/D2pEKJB w8wz9iX8eQCoA9BjCK+15+4NdcNCRjuWagw1TYVjls94pG9jyFRgbfIjsl2yhHOlMT IQInqTH/R053YgcwoYlwjbTEFrw7H/Mlp4mLFNgE= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DEHH5P042576 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 09:17:17 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) 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; Sat, 13 May 2023 09:17:17 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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:17 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHGkX056464; Sat, 13 May 2023 09:17:16 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 2/6] arm64: dts: ti: k3-j721e-sk: Describe OSPI flash partition info Date: Sat, 13 May 2023 19:47:08 +0530 Message-ID: <20230513141712.27346-3-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?1765788968479548503?= X-GMAIL-MSGID: =?utf-8?q?1765788968479548503?= 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 ad7b45aeed0a..54008334d315 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-sk.dts @@ -568,6 +568,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 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>; + }; + }; }; }; From patchwork Sat May 13 14:17:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93537 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5811441vqo; Sat, 13 May 2023 07:43:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ntIDqlRFSyyHxBMH+EWqSQVlfpxDn5M09aytUX9ESYoLS3cvjauQhvsGBO3BPyXWdYETL X-Received: by 2002:a17:903:183:b0:1ac:7260:80a7 with SMTP id z3-20020a170903018300b001ac726080a7mr28543252plg.43.1683988982463; Sat, 13 May 2023 07:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683988982; cv=none; d=google.com; s=arc-20160816; b=PKu3a6EtbF/MK4A8319fwMc99S2ft4pTo8jD4bs8lzDjEphKxp64SfKwasApoCz5kJ 24FGLP3VFANSXtvtGf13ut22R5YzZ3i2LHbjvt70iyTcLGaFqvhahFSv7RRFPFF7GeCo Geudl9KfjU+D0BR6IhhTjNeDfymmcU7ftTOa2y+DQ2MqIHyJP+mLsUKavcQKlMTGaWpE +tkDGAR70mVhw+FYz7kbhY7Rs51IYDNmIwuD7anzh50Pnle4xBVZFHhSVSuCqELurJAA VC3AcYCK/llh21EewJyyog8He9DSaw0Rsyf3hFKU310U/gCi54JHUIej+d31HjWm0FYb YQrA== 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=ABJClZqOZxMXInTQef0ixgPzIqPSyo+n0ClPLX6q9zI=; b=bJ0ch34x7utW7p/zOgdF+8I7S/RUE46FbY3wRPCQgK6CMDkJOi0iGEEMZcKmVQJ1vg 65hDc7escNhni0UKTAe2YYwCidBMAxK3unNuU9THXmBB8JlnWqN+wCyZcoXA3ttDMD4A +KGjgEzFKnD1f5tylCDc+c7pWElkR/pY3+WXEfmEFCWWtZOM58WWYnL2+mi6lB7Knkjq lCq9dzhCBqI3lR+7wY0pQlvEJC/YLZulFO9cUvUzYK/CpwnmBbI85kvEuLrAYftnZ+81 hHEbkoWwZkYVpJHwCGNvAdfzKsD2dSvhCtFAIqrzOOC0QlDKwMAjM5T5tHu+IAKQQ6gP eWrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ufl68Reo; 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 j2-20020a170902758200b001a9581bfb91si10649816pll.543.2023.05.13.07.42.39; Sat, 13 May 2023 07:43:02 -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=ufl68Reo; 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 S239663AbjEMORi (ORCPT + 99 others); Sat, 13 May 2023 10:17:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239292AbjEMOR3 (ORCPT ); Sat, 13 May 2023 10:17:29 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86E4726B3; Sat, 13 May 2023 07:17:28 -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 34DEHMgT005751; Sat, 13 May 2023 09:17:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683987442; bh=ABJClZqOZxMXInTQef0ixgPzIqPSyo+n0ClPLX6q9zI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ufl68ReowbSNLSY8ba15pWtCo71Hvbdy24FoTS9dIUAcaBYFtSsErU3LD2D4OCahx 4ebjiPVM+WL3hcA2Jp5wFkWKfFuWad4uBbNnT1757c1nrm8+Es3brcD+715PHSomwq Rm0CZAuGNyJ0gUoq6idh6hG9OsGyq67M6End+kSk= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DEHMFi092845 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 09:17:22 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) 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; Sat, 13 May 2023 09:17:21 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE104.ent.ti.com (10.64.6.25) 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: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 34DEHJpv013982; Sat, 13 May 2023 09:17:20 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 4/6] arm64: dts: ti: k3-am654-baseboard: Describe OSPI flash partition info Date: Sat, 13 May 2023 19:47:10 +0530 Message-ID: <20230513141712.27346-5-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?1765790431571856173?= X-GMAIL-MSGID: =?utf-8?q?1765790431571856173?= 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. AM654 baseboard has a MT35XU512ABA 64 MiB OSPI 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 --- .../arm64/boot/dts/ti/k3-am654-base-board.dts | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts index 15524cf71b58..b49911efebc6 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts @@ -544,6 +544,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 Sat May 13 14:17:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93536 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5800667vqo; Sat, 13 May 2023 07:20:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/YVpjLcXKU3Hc+6DvtGlwO1PA+gkVkoxGX0yPSbcpYsmQfw35ekF/GNLXeMsnKhDPSn9P X-Received: by 2002:aa7:88ce:0:b0:645:6142:7f5a with SMTP id k14-20020aa788ce000000b0064561427f5amr28230857pff.3.1683987642385; Sat, 13 May 2023 07:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683987642; cv=none; d=google.com; s=arc-20160816; b=WsHA1fKS4L0waKdsmqn/L/Q29WP8UuVZTxNUfm8tICOt99x/ufv5ZoHzLTXrXL4Xy5 ANZqDR2uFsOTxSzCD6oaxYLdB69Wm8G8VIZalKwrVPOQFUVk2qMN7O1rC1amH3mH4ihy QFH/5jL/x4MMdiCmuorRh1lNi6AI/IqzYc40c2jl6HEOHB9cntl9hfotb/yu1VQ0Bbpl j8IliGahOkALjRppk+SO9tcX96j9O0BWG0WeAVD0PMpb0S7D77m33W0ouPvzIwz1Ha7X pkxq6sRIyLVx6nWw8fa1pJslt1dgAm0mq4f11aiO2MNhDIUMF98uj8nhcGT7fRSzl2IQ yhuQ== 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=o2li5W6yBIlUhqZpwwogvoA2xEAQAkz7yXgGyB5lxO4=; b=0fUX8GiQ+dBo9kkLPrdGbhpAZf4pwX0UsrGrhqqwciYWC5PtmhMyfoMSEgfn91ASUE 03kB7PifywMDMamfK+aozmR3Rwk5+LLcNCQKJ2BpQbVoPkTdOLEIgO+/b3EfhrhATOMZ SM8Yw5rHAG3vfsJD/ZX1AfRiiVCDKChu2sLzDhGK+KGlyanuk9ybwQcxHsJ1vQp1TwL0 SHrmZlbU/Q9p9/YTzeSMY6Ux/JRiY9zX5bsSsgASx0/YI3WYeB4HFpx65XRvj4cjJoBY hSRS9YtfeZO5fePUnKo2ERwxY8HKrv2KbCvXak7U/3DvW0z84ZVUfpR1XlLylx7Gw8Yy Q+CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mJnR+QUy; 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.20.30; Sat, 13 May 2023 07:20: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=mJnR+QUy; 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 S239655AbjEMORo (ORCPT + 99 others); Sat, 13 May 2023 10:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239468AbjEMORc (ORCPT ); Sat, 13 May 2023 10:17:32 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5D66270E; Sat, 13 May 2023 07:17:27 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHNaJ083056; Sat, 13 May 2023 09:17:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683987443; bh=o2li5W6yBIlUhqZpwwogvoA2xEAQAkz7yXgGyB5lxO4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mJnR+QUy7qM2C7TwFqyZXYGBZyQfmY4K/YZT+j2gJi6CR7IOmovgFnv7GrFdIqt6i AE0nj1N3G3Ilu0X9fHzk55JrnglldS84f5S075ooCdFkKSgMGzmjeHIA54SjMlDaF3 +WWdwBnZM45eBquMwZxBvtDwrJlpd20IDxqef6Uw= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DEHNQU092855 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 09:17:23 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) 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; Sat, 13 May 2023 09:17:22 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE101.ent.ti.com (157.170.170.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; Sat, 13 May 2023 09:17:22 -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 34DEHLrm047455; Sat, 13 May 2023 09:17:22 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 5/6] arm64: dts: ti: k3-am642-sk/evm: Describe OSPI flash partition info Date: Sat, 13 May 2023 19:47:11 +0530 Message-ID: <20230513141712.27346-6-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?1765789026099214846?= X-GMAIL-MSGID: =?utf-8?q?1765789026099214846?= 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. AM64 SK and EVM 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-am642-evm.dts | 41 +++++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am642-sk.dts | 41 +++++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts index 3db740f78cd2..6d4d9fcc1ca7 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -533,6 +533,47 @@ 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>; + }; + }; }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index 003cff9a2799..b4e4a671e1a6 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -531,6 +531,47 @@ 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>; + }; + }; }; }; From patchwork Sat May 13 14:17:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 93535 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5800392vqo; Sat, 13 May 2023 07:20:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ41Kvqi6BEgbawITD8X97VGIHksV1LSldC3R510GiOqebrOld9Wy8V5Tcs7F8ds8N6dTrPO X-Received: by 2002:a17:90a:5d13:b0:252:7372:460c with SMTP id s19-20020a17090a5d1300b002527372460cmr13006993pji.4.1683987616988; Sat, 13 May 2023 07:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683987616; cv=none; d=google.com; s=arc-20160816; b=zgGwr66mctCUQCGnP9c75fMTb+ntb02aoPEIREJhaaM+6tBYTb9IBx/OeA9quvz5D6 t5s97MmCjiINkiAZep9oA9YeVZDvjEaoeXSNiKWftatP5XWH2YulPMc1jdrnE+X5Q8AK rT0gyn6JPXU4S9MMG2rZQU4tizBU5LaPfpOy6ZZARAdDO/K9SARm290YB3gJ7OJ3GWWb IQ5hdi5i5sd6qydbn68hN2kbOBKf4hySZXD4/50OlPXy6rqTNblTP4qKXtaW6CghaDXB IOH0qFjFCddpJ7b/Tbgh/I2k4DU9MV6w5ZDOiHJi2wYublIZN7HO3iA61YWeUWaMm8w2 DcVA== 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=rv9RQvTi9dj3agO6UaLgCL/rdf1mSZb2RQ9few6o2Y4=; b=BBmCwuxBRomMgigE7/Z8DhxA7Oet9pQLNjeWhF7d8kSH2ZJuqD37KWoAIDVfchCoCb rZQJyAhiiP2WqSV6S5/GAC1wC+YzN/l7M0ToeURKFfCZCzkEvf0JzdDrL8NiYxS75gha W6yqpv3kX+kJ4mQOGs6dv220/lY0Hb6R7iS+xxk17XZiaT+GGeKEr0RltOQ5X2rRSdVz jyb0cx/LUHhbpnPkqa05WBTLF9fjcaoQpfu3nh4ca/ULMpL9f7qH4E1h1DyBIJIAcWFH a2GINa0DgIj/WkJ4wV5tih8qWZXjG5eVbP1WdpPQfG1Ik1cWcGrNpi9m1iB8hMSEo3VS yOXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=E116e1ou; 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 t9-20020a17090a950900b0024e24699dfdsi24777985pjo.78.2023.05.13.07.20.05; Sat, 13 May 2023 07:20:16 -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=E116e1ou; 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 S239712AbjEMORl (ORCPT + 99 others); Sat, 13 May 2023 10:17:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239475AbjEMORc (ORCPT ); Sat, 13 May 2023 10:17:32 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D369226A1; Sat, 13 May 2023 07:17:30 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34DEHOgR005773; Sat, 13 May 2023 09:17:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683987445; bh=rv9RQvTi9dj3agO6UaLgCL/rdf1mSZb2RQ9few6o2Y4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=E116e1ouLQemb1/B01i9hKAVmqFoecnVGVsLQTg8UpkU0nQnuX5CqHAKRw4tph7ub uF/dy7FcO7nNXyHYbdwraCqa0MaW5s/dTBYA8I0X06MWn7lY7QsrjrLoDoyM/oZdi0 6HgDT6DKBYUw2ZRLucQM9CL5sZa0m8WTBjczCZfw= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34DEHOh5020429 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 13 May 2023 09:17:24 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) 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; Sat, 13 May 2023 09:17:24 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE104.ent.ti.com (10.64.6.25) 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:24 -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 34DEHNXG047479; Sat, 13 May 2023 09:17:24 -0500 From: Vaishnav Achath To: , , , , , , CC: , , , , Subject: [PATCH v2 6/6] arm64: dts: ti: k3-am64-phycore-som: Describe OSPI flash partition info Date: Sat, 13 May 2023 19:47:12 +0530 Message-ID: <20230513141712.27346-7-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?1765788999337268065?= X-GMAIL-MSGID: =?utf-8?q?1765788999337268065?= 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. AM64 Phycore 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 partition names and offsets are chosen according to the corresponding name and offsets in bootloader Signed-off-by: Vaishnav Achath --- .../boot/dts/ti/k3-am64-phycore-som.dtsi | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi b/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi index 8dfb6301b17d..0d3d785530cf 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi @@ -219,6 +219,47 @@ 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 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>; + }; + }; }; };