From nobody Thu Oct 9 01:11:35 2025 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2043.outbound.protection.outlook.com [40.107.243.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 3884423C51C; Mon, 23 Jun 2025 10:55:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750676104; cv=fail; b=TS9yw/YYmNA9e00QcE5sNbP/2ylMESL2ExV0WHx8RknemQfgzKDlquY0i5Z1jYZnZ6ij1jy3C/UMWraFd4abBkZ4nYy0D7cW22tpcWC9KpX9Cq1mw7W0tnF15cx9b+GSMJJtQ9AX/2EwdmipFRuq0V7wBlbqXTDuV840AjS93bQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750676104; c=relaxed/simple; bh=b+bqEVxy4Lqsi3+Lk3MfUbUByU9B+4Z9QbigDEbjnyI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FOEiqyByGzusDX0YKyR64LKQcG3kS+1dKNVnZfiiW1ZgKY4LojK/IiuphPWNWuIZFS2T94t7+xmcLeZpcsloaqYchJaO6/shHm35AiIwt4hjAjmu7LiByX5fMhInolIUW81ietZc043sWhafaEchLtZcLmYxT8QugOiWyfep4Wo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=QA5rBx65; arc=fail smtp.client-ip=40.107.243.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="QA5rBx65" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kUfqVekl+YtTV+U5mMK73ttZuHceyGghEJKgU+Vu3SVRZvgI+a2NlGysXwGuXriX4QHs3GG6mYgwupzte4RDjfjAI/W4s9SX3HY0asydvm5S9x4ZVl6wpnXq5qKa1yNhu8jmG5/2obrZgRctCXyZwYM+udTBTVzA1Trj6PSJyHNTaqkHaK8l6gjHgJgvWJgK8/jQLADg0IvYGnguHg5U9NtstXj0gorIPx6naAUIFAErGWIUn+t7aCynOUUDuIOYUgzAp+/kFjA2cyZGqDeb1YW1SH0M9MTqHpzqA53H5F09oP149igJ+UqomflL4HhpskrtjnEw2KRv2XBuE3lk2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=07bqDF6NJsV60aR26XaGJpMTVrEdYlO5M/5TPYeLStM=; b=mzMSoXr/eK413H1qZkGkW+3wBSTNlpztHgoIpGegSmob+qYW63tPCR05cPYK+CxxojDt8dMWOxOor/SydCTYpFHfLd76nND3QCZsT3zyFZn7iT2mz0au/S8FP4xoDm7/YOdgxIhGXrzGbYH8/bBjae0O6WL20Kxf6HP2RLkX8VuplWG/zjvkqRngIZEK0IPfzoz/7fcUR5b1nrrKOZWiaqTWyj5Y2eW1fpEajZNmqCgc76QwknMN+UHt+VLpeGwdNYSFx/CAc0JDuHQ40gk8B7XQDL+9GpdFFU4LuA9mphJ0+27Fz+B/vvzvQA1Gm1zdzt3IaHcFghs4kdexmyinIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=bootlin.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=07bqDF6NJsV60aR26XaGJpMTVrEdYlO5M/5TPYeLStM=; b=QA5rBx65TEdW9QGf6ZAkLSDCPMWP2RPbIUnxA+3Uozi4KvZGmpbQ1IDtL3adp9I+spVO1UW7/FWpmRG/ogmxRYAYzqNOxF8bim6LP7n5hnBsHp0v9DdBLMreFD4Iy41yqB6ePdEfceMLERZMwfC8CMH6hFoopgCZVYkYLPTio/8= Received: from CY5P221CA0138.NAMP221.PROD.OUTLOOK.COM (2603:10b6:930:1f::29) by MN2PR12MB4222.namprd12.prod.outlook.com (2603:10b6:208:19a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8857.28; Mon, 23 Jun 2025 10:54:57 +0000 Received: from CY4PEPF0000EE31.namprd05.prod.outlook.com (2603:10b6:930:1f:cafe::b4) by CY5P221CA0138.outlook.office365.com (2603:10b6:930:1f::29) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8857.30 via Frontend Transport; Mon, 23 Jun 2025 10:54:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000EE31.mail.protection.outlook.com (10.167.242.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8880.14 via Frontend Transport; Mon, 23 Jun 2025 10:54:56 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 23 Jun 2025 05:54:55 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 23 Jun 2025 05:54:54 -0500 Received: from xhdakumarma40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Mon, 23 Jun 2025 05:54:51 -0500 From: Amit Kumar Mahapatra To: , , , , , CC: , , , , , Amit Kumar Mahapatra Subject: [PATCH v14 1/3] dt-bindings: mtd: Describe MTD partitions concatenation Date: Mon, 23 Jun 2025 16:24:43 +0530 Message-ID: <20250623105445.2394825-2-amit.kumar-mahapatra@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250623105445.2394825-1-amit.kumar-mahapatra@amd.com> References: <20250623105445.2394825-1-amit.kumar-mahapatra@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE31:EE_|MN2PR12MB4222:EE_ X-MS-Office365-Filtering-Correlation-Id: 53514971-8992-4726-2c4d-08ddb24463f4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|376014|82310400026|7416014|1800799024|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?P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Zp+nb3?= =?us-ascii?Q?t7G8zFAELvPH4m+xm/XZLQbRVoGNmyhirur13kdAHreSUgPQwMPEsy/wR/tq?= =?us-ascii?Q?nHZ87njPocEqnzh5rSKZJ70z7aIQHwumWYdAdhCgQkhprQVg5/6xFjybTEZD?= =?us-ascii?Q?/AK90jmT/gveGIpFkrT9KWtErOLWB5bzZ6nJ41b6UPc6kIkNdMEJ3vXRsNC9?= =?us-ascii?Q?oGggLGQUp/RPNSZzgb+A9ybK1CxW2MIu6xhlljZNX1ToQLhY95r4R54Xng/7?= =?us-ascii?Q?kwCIse5WSEKwjLfTG4BQqXgRZRfNO1dTAF1Nck4sQjZh0Rxt1QxR9gpiFg2Y?= =?us-ascii?Q?63etI5yB2+fJUCr5ToLEVfvLCVzL0SBf7X/K2OEKOIRs2umpK8nbeYIYcZxI?= =?us-ascii?Q?dUHjQnHgJA2Rimt2HXHPyRdPGz9GkSpXmsIktjkhZhAFv+OJZDWRKcvM5Xlr?= =?us-ascii?Q?P+7/73oDkJsinPH3zNKuDungFMj/KVoHlaSqOgTQRnpC/fMUOKzIetYTrBNP?= =?us-ascii?Q?W1WK3KM3Gtnjj6aU2c8rKk2Q3UAwwheUnS+3ewG5bxytXtFnPxDdyX+4kmHf?= =?us-ascii?Q?TuoTNIhDsEbIY2+o3mUopQ1+JBE7OLmIEB4s9zT4nm8xFaoPVwkG2ouRf8MB?= =?us-ascii?Q?lwRTRZwGZ2DwpB2LFIESJx+gXjm4ahhNZtxK77df0aoNFrG6Pr0ygSG/QA?= =?us-ascii?Q?=3D=3D?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700013)(376014)(82310400026)(7416014)(1800799024)(7053199007);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2025 10:54:56.0069 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 53514971-8992-4726-2c4d-08ddb24463f4 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EE31.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4222 Content-Type: text/plain; charset="utf-8" The AMD QSPI controller supports an advanced connection modes called Stacked mode which allow the controller to treat two different flashes as one storage. In Stacked connection mode flashes share the same SPI bus, but different CS line, controller driver asserts the CS of the flash to which it needs to communicate. Stacked mode is a software abstraction rather than a controller feature or capability. At any given time, the controller communicates with one of the two connected flash devices, as determined by the requested address and data length. If an operation starts on one flash and ends on the other, the mtd layer needs to split it into two separate operations and adjust the data length accordingly. For more information on the modes please feel free to go through the controller flash interface below [1]. To support stacked mode, the existing MTD concat driver has been extended to be more generic, enabling multiple sets of MTD partitions to be virtually concatenated, with each set forming a distinct logical MTD device. A new Device Tree property is introduced to facilitate this, containing phandles of the partitions to be concatenated with the one where the property is defined. This approach supports multiple sets of concatenated partitions. [1] https://docs.amd.com/r/en-US/am011-versal-acap-trm/QSPI-Flash-Device-In= terface Suggested-by: Miquel Raynal Suggested-by: Rob Herring Signed-off-by: Amit Kumar Mahapatra Reviewed-by: Rob Herring (Arm) --- .../bindings/mtd/partitions/partition.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yam= l b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml index 80d0452a2a33..c9aba6838b3c 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml @@ -57,6 +57,15 @@ properties: user space from type: boolean =20 + part-concat-next: + description: List of phandles to MTD partitions that need be concatena= ted + with the current partition. + $ref: /schemas/types.yaml#/definitions/phandle-array + minItems: 1 + maxItems: 16 + items: + maxItems: 1 + align: $ref: /schemas/types.yaml#/definitions/uint32 minimum: 2 @@ -138,4 +147,15 @@ examples: reg =3D <0x200000 0x100000>; align =3D <0x4000>; }; + + part0: partition@400000 { + part-concat-next =3D <&part1>; + label =3D "part0_0"; + reg =3D <0x400000 0x100000>; + }; + + part1: partition@800000 { + label =3D "part0_1"; + reg =3D <0x800000 0x800000>; + }; }; --=20 2.34.1