Message ID | 20231215191838.1925082-1-nmorrisson@phytec.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-1559-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp9520500dys; Fri, 15 Dec 2023 11:20:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEowf4o3UrXs/tf6sdoCw+9ly2R3o8lN+FsxB5F783OiTnxhJTgHF5rB9vwLRtJr6OQpEir X-Received: by 2002:a05:6a21:7887:b0:18c:382e:48fe with SMTP id bf7-20020a056a21788700b0018c382e48femr6624356pzc.15.1702668023446; Fri, 15 Dec 2023 11:20:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702668023; cv=pass; d=google.com; s=arc-20160816; b=lZpMG5fTNGhVgcJXz8EZMixmsxC1/lgsU9Q6m0Se1Q/PZtApR6dJbhh6VjV2akHDw5 5TuiKAanG5EicLa5Cf7zPrZNjstWgiOQ1S6KDnbgybUl7c29OGLC/Hib/KVPRjA0hUie wg7BQrr0OSkFRoTlAr9atq1cd0yXdBDwHTunQbEfOD7nJDlr/gWjw1poz1iV0BEe7z9r FxWhvLxxj2AzkqU6NjrS7LMq2ye9w4lwQ5x4LIAaCCVVDz9PS42dQTVg5mC4h/gQbkfK RI6qpwa/Dal7c12NQr/4wdW+hDeLmP384MpFPFgx3Yu4UEwaTcNpqsLGWSR6oeOCIzHC fv/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=6vS6RUGQ7ehc1eLdE8A3PYekLaSCCm+d5mKlV3mZKpg=; fh=tXxwUhdnwT9tIYjNCTKIpAWhr4+aS/1Av4CqHcNCw5k=; b=fMeUrOCmtJlEtVfMTDaUPndU1yCNw8vQ9enGIMR9hfNtW8+y+1Md/9lWZWqEFPd77O fdvvZjpEFl2dtIRzR+fO1Hwr10QhJPZYteDgLyWHUMvM2dE8YW8cWY4hYq8Qg/p+6Osq rDnjyt6oPKjpQFv/dMteBwyLx3xpXYOYCdsuQg75cgxb65r10nKttKQJE7jbzg9SbT28 Ukh/lxbulhMUVuROoldXU6d3wrpVlIlubTT1quPT21dgCzD/ZAUCRmA8fnWRzZDcTQvM asPggw+xdXMNJvC5Tk+o7rTVbc5SdRtzrehUHCGOQf8ZGEtZ8VQDgkQwS3FoZphcibD1 QX6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@PHYTEC.onmicrosoft.com header.s=selector2-PHYTEC-onmicrosoft-com header.b=AIDw9EA3; arc=pass (i=1 spf=pass spfdomain=phytec.com dkim=pass dkdomain=phytec.com dmarc=pass fromdomain=phytec.com); spf=pass (google.com: domain of linux-kernel+bounces-1559-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1559-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y2-20020a17090a86c200b0028675cb4aeasi14696656pjv.47.2023.12.15.11.20.23 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 11:20:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1559-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@PHYTEC.onmicrosoft.com header.s=selector2-PHYTEC-onmicrosoft-com header.b=AIDw9EA3; arc=pass (i=1 spf=pass spfdomain=phytec.com dkim=pass dkdomain=phytec.com dmarc=pass fromdomain=phytec.com); spf=pass (google.com: domain of linux-kernel+bounces-1559-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1559-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 742D8284258 for <ouuuleilei@gmail.com>; Fri, 15 Dec 2023 19:19:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 677A541870; Fri, 15 Dec 2023 19:19:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=PHYTEC.onmicrosoft.com header.i=@PHYTEC.onmicrosoft.com header.b="AIDw9EA3" X-Original-To: linux-kernel@vger.kernel.org Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2043.outbound.protection.outlook.com [40.107.96.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A07243FE2F; Fri, 15 Dec 2023 19:18:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=phytec.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n2z65RJyk9cP2lZdhvoErAeHEaSPzcaRHRTf1VFylxLSpOQF6wdzFZbOV79Q6JecTzJhzocpJTPeI/cye0owVzdwvaZliCOrOAf6D5Nmtvs+Lb+VNZfl4iCxnXcmG/vVo/OiwToK+To4U6N6QPOmJ+VqDYiT9NlMNeA/SyARmuhbfrn8fTOb7rnKxkjIakige6h1QvWzI35PyW+XAhEupkFssGcuMcO/Qpv4jLkdKsdtOTUTOdsCEsDjLPeZ5B3sekiY2aB5GH1b5Cn/OvySoelL2H+riX7K/LSMppxgiUY5KnRbfNQGuWKok6ue7LhfXrGdW8EVyVTCWkZTuZmkIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6vS6RUGQ7ehc1eLdE8A3PYekLaSCCm+d5mKlV3mZKpg=; b=YCnFhpNdbT/YlbmtDfdrY2t2L8GGAQrBTvhGwDBoeCjsFZdOzTWFkKPiWAgbJvoZLkcgxQ6tSbpRQ0dJknDCZaK/A2F903s6PGdycuyzMoyQlo0eheU1hXwnyfbP0hQWreN0SuShPlf6S3AwTs0Y8JEiK76Yo8UCgDg84cJ1/v+BhpebdT1+wV6+GRyfmCiRlm/YXSXE7lryTrXVsfMAW+BhHrUow/yhEGLJJPT+ZdkhuSK/vlBgT3+6HYjFwJ88dVqGlmfgbhHVpMhn/oXqS4OZEdz4+lAZCdPmENUljG7jB8HqMow2jREsn+6lropUeB3B8I3A3QLR7MHgbGDckw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=phytec.com; dmarc=pass action=none header.from=phytec.com; dkim=pass header.d=phytec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=PHYTEC.onmicrosoft.com; s=selector2-PHYTEC-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6vS6RUGQ7ehc1eLdE8A3PYekLaSCCm+d5mKlV3mZKpg=; b=AIDw9EA3sNAmOcWI5huWVXe3lgfDE0vTQyB1alp75Zt7AEwNy7y9DLcLK811AF2dc7VCgEVb/toNhK+yKzlg0nhYf0aA3qEj82TwmTCBjr0bVS/l1CjBKPTd/qX6GgyvP3qARkbow33mcwU8B4qUi2w7S7wHE2oL4C9e2SGYaV8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=phytec.com; Received: from DM5PR2201MB1515.namprd22.prod.outlook.com (2603:10b6:4:36::18) by CYYPR22MB4299.namprd22.prod.outlook.com (2603:10b6:930:cb::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.31; Fri, 15 Dec 2023 19:18:52 +0000 Received: from DM5PR2201MB1515.namprd22.prod.outlook.com ([fe80::89be:ff90:a5ab:1821]) by DM5PR2201MB1515.namprd22.prod.outlook.com ([fe80::89be:ff90:a5ab:1821%4]) with mapi id 15.20.7091.028; Fri, 15 Dec 2023 19:18:51 +0000 From: Nathan Morrisson <nmorrisson@phytec.com> To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de, w.egorov@phytec.de Subject: [PATCH 0/2] *** Add fixed-paritions to phyCORE-AM62x and phyCORE-AM64x *** Date: Fri, 15 Dec 2023 11:18:36 -0800 Message-Id: <20231215191838.1925082-1-nmorrisson@phytec.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: CH2PR15CA0025.namprd15.prod.outlook.com (2603:10b6:610:51::35) To DM5PR2201MB1515.namprd22.prod.outlook.com (2603:10b6:4:36::18) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR2201MB1515:EE_|CYYPR22MB4299:EE_ X-MS-Office365-Filtering-Correlation-Id: 6aa4c4a0-f7ad-49a5-5e34-08dbfda2abe4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MoOwafdYYiMB4tnLqkvtNAOoA0a9mf99aBevj1118+s7Dx/kfuEo/gqorx+QiHcuEZLOXdhdx4NzYLe2dwLA4vh0+oC0b9YAXhQBSGcGjNvqfuFf5t98L5JymKSjHJKsp5c6WSoz3ZuwB2vNJa9nUJZPQBKQDuNhjSDpyQ7n+5/cf7/Hkjzoitw+Ty1Od9a+ecm0ezIZtBL6c1XyXtNJ0OnA8kMLc4UFTk00xIAAFHJsZv/KW9vfC95OEzLPrPRkEkC7oe9p5h15p47uM40qd/2k9NNlX4arauuWJFRmCi0wk9dlgRt/w7hSgPQVob8/lk44f+lnoQzSdGSG29lA6AFOmXH7hL+ajx+z9TuLAU665f74MwQd3ehnNhk8ZdQyedc/LBTDmLtNiiJcQZtSWtaARVZ/d4gbXvittYuI2LrOUSeplpRxzJhQMR7G7y5GSqiFlOBeNaSVr8Kmc6AuTQxmobZHLey7IPCkrTZmDyVRs4l/rDwMP3IP176vhe410bTVSZmb302TvlQVdlePPxEpa/XpuzUKWjg94q9QK9F4aAox+4RL8h3m1v4TxFFhpn50I1Yn1R6xb30yLuZ5vDvcWy/zLo8HJKYZTncn3UrlBu3UAhVZFehgTV9Ah9fq X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR2201MB1515.namprd22.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(376002)(366004)(346002)(136003)(39840400004)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(2906002)(4744005)(7416002)(38350700005)(36756003)(5660300002)(6666004)(6506007)(38100700002)(1076003)(52116002)(26005)(2616005)(6512007)(478600001)(66476007)(66556008)(66946007)(6486002)(41300700001)(86362001)(4326008)(8676002)(8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1TOPdJzJLGL78pii5hwa9aUd9uMbi8i6y8I+U6dtkXFcuK/QUEh4y00/XvLVFSN07/bowxkks4wO7Znks0cCUEq99umGx/NCTJl5LAJZec7i0nwVOexJlX3NCNqKaSu0+QP3NGeG08TzLzNIcG3dWYD1mppsVjnIwhr+h416pwZaklKs1uydH6SgWRkIeK26+7TlpDrk/yM1O/HcEIGpMPUODD+pNxbkTo3s+l1tVkm8qO8s6QasSxnJYx6LFqI+shtP5HfW6AqB2Lr3zbPSNIk14p3lxyARGOkfcFxAgZwnvju4vv0pDnq6CefzMs0+9h8aB5JfuYyl+7C62psT1oZOqxphcMQnnqAMFf72nkM28XXFH/mLMsEWy8UG9OMlZTIiAjN8LzjEFI8u0Vjg3pAFJfxXhPVxEk1O4NLTXMz4pzSODOkfrbVFnNYeTJq2sTMILW231WXuovtwA5KJPiappkCgFj2ofelsIoe+ey+6YEfljTLVBnbztbQRni+12WLNu8UKOq9SogSBnooKrCZ1GRZl54AklYc7H/V41L+ojTQR5dcM6TMLQ3Du4O2nLx0D7OgDHGgwBeVh4VS9S/M7R X-OriginatorOrg: phytec.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6aa4c4a0-f7ad-49a5-5e34-08dbfda2abe4 X-MS-Exchange-CrossTenant-AuthSource: DM5PR2201MB1515.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2023 19:18:51.7489 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 67bcab1a-5db0-4ee8-86f4-1533d0b4b5c7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ajQFSJnL0q7MpMJ/YDzls2+k8Ym4nmXVBy348mxN2tX0YPTF89x33O9vQZRWArPhw7Y2jyr+3BeQr8cNNlVBDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR22MB4299 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785376825600566000 X-GMAIL-MSGID: 1785376825600566000 |
Series |
*** Add fixed-paritions to phyCORE-AM62x and phyCORE-AM64x ***
|
|
Message
Nathan Morrisson
Dec. 15, 2023, 7:18 p.m. UTC
Add a fixed-partitions node to the NOR flash of the phyCORE-AM62x and phyCORE-AM64x to enable the bootloader to fixup the partitions during boot. Nathan Morrisson (2): arm64: dts: ti: k3-am62-phycore-som: Add fixed-partitions to NOR Flash arm64: dts: ti: k3-am64-phycore-som: Add fixed-partitions to NOR Flash arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi | 6 ++++++ arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi | 6 ++++++ 2 files changed, 12 insertions(+)
Comments
On 12/15/23 1:18 PM, Nathan Morrisson wrote: > Add a fixed-partitions node to the NOR flash of the phyCORE-AM62x > and phyCORE-AM64x to enable the bootloader to fixup the partitions > during boot. > Why can't your bootloader add these nodes? Andrew > Nathan Morrisson (2): > arm64: dts: ti: k3-am62-phycore-som: Add fixed-partitions to NOR Flash > arm64: dts: ti: k3-am64-phycore-som: Add fixed-partitions to NOR Flash > > arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi | 6 ++++++ > arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi | 6 ++++++ > 2 files changed, 12 insertions(+) >
Hi Andrew, We are adding the nodes directly to the device tree to match what is done in other device trees, for example: k3-am642-tqma64xxl.dtsi. You are correct that this could be done by the bootloader instead though. Why do you prefer having the bootloader add the nodes? Regards, Nathan On 12/15/23 11:20 AM, Andrew Davis wrote: > On 12/15/23 1:18 PM, Nathan Morrisson wrote: >> Add a fixed-partitions node to the NOR flash of the phyCORE-AM62x >> and phyCORE-AM64x to enable the bootloader to fixup the partitions >> during boot. >> > > Why can't your bootloader add these nodes? > > Andrew > >> Nathan Morrisson (2): >> arm64: dts: ti: k3-am62-phycore-som: Add fixed-partitions to NOR >> Flash >> arm64: dts: ti: k3-am64-phycore-som: Add fixed-partitions to NOR >> Flash >> >> arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi | 6 ++++++ >> arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi | 6 ++++++ >> 2 files changed, 12 insertions(+) >>
On 12/18/23 12:47 PM, Nathan Morrisson wrote: > Hi Andrew, > > We are adding the nodes directly to the device tree to match what is done in other device trees, for example: k3-am642-tqma64xxl.dtsi. You are correct that this could be done by the bootloader instead though. Why do you prefer having the bootloader add the nodes? > k3-am642-tqma64xxl.dtsi should be fixed, it slipped past me and shouldn't be used as a reference. The bootloader might not fill it out at all, what if we start using the new MTD GPT partitions? Then the new bootloaders will have to start *removing* these stale half-nodes. If the bootloader is going to add fixed partitions it should do the whole job. There is no good reason to have a half complete nodes here. Andrew > Regards, > > Nathan > > On 12/15/23 11:20 AM, Andrew Davis wrote: >> On 12/15/23 1:18 PM, Nathan Morrisson wrote: >>> Add a fixed-partitions node to the NOR flash of the phyCORE-AM62x >>> and phyCORE-AM64x to enable the bootloader to fixup the partitions >>> during boot. >>> >> >> Why can't your bootloader add these nodes? >> >> Andrew >> >>> Nathan Morrisson (2): >>> arm64: dts: ti: k3-am62-phycore-som: Add fixed-partitions to NOR Flash >>> arm64: dts: ti: k3-am64-phycore-som: Add fixed-partitions to NOR Flash >>> >>> arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi | 6 ++++++ >>> arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi | 6 ++++++ >>> 2 files changed, 12 insertions(+) >>>