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>; + }; + }; }; };