From patchwork Tue Jul 9 20:23:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13728460 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2068.outbound.protection.outlook.com [40.107.22.68]) (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 D925D18786D; Tue, 9 Jul 2024 20:23:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720556632; cv=fail; b=NAvG3oe7eXgYzsHPImYEMKl01oRdEiPfweof4NoIDrYo+ZLvdG9OTcBCIFs8ZoUQFVFh/TAHkjAgf7xd6nC2FucmXQIz6Z9NJhLPdj0XKXZ3ZaLpp7qyTNPBoa+zz3mCcz3AskmeiN6gdF0XvuOJLl4itotmI5E02WfKDCg4Z9E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720556632; c=relaxed/simple; bh=sEQ2s5DOaJpFElpdRGOeANeI0KjitaYMW7pvhbkIm/o=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=psCKSrvvTs1knuQpFmXh+8hrj/z5tuicpZ0TW6DaxwiTZ7tS6ffGtAkdNXHAogRwsjue3/mMMvO97H+NDsEW+ksD9vnVdh57axV5+1LzvI6xRtwJMfhiIG9xiKjDXZExrkXdFtNMWFMPfU2LOGnI4dTCNjk2DwDmsT1tL1hILcI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=kowJTigb; arc=fail smtp.client-ip=40.107.22.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="kowJTigb" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DyyLR0hypnLLAMg5sF/rZdjgcc+IlRVs7caqIItBgKrOu5Vg/CCYa+I9zGpvfLeIOj6u5BGZA6Yq22VAbhl9SErQkJFlxJoSXR/fg2Lj0u9yXWrEe2RngXQxjsRV/8tT5q7TnzeavaA2nJoy9qe8S5bsShW/jXLw+n9vT2HIZ8M8nF5DfXKKGBUt2bu9My1i2LWi9PfH/mzt3uV06VRgf7o7WJLp+ihh6n6ElHVZ+iQEaJDseFjFoCG5IOuDzXDnixR6PgHq6dAnjf3K1F8A5KgZaA9H/xEUdYyjoNSVqhj23r52gPsApRJ2Lbd+d+DBLmS+ab9N3asfJhdq0pG10A== 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=M18oDrIm0n7SzSLcID9y8NvUus7H0YWm2DEQVvXaTa4=; b=g5HBjqeNMdhMdvOoYaWBCYLzeqhIXwq2aSWV0d2S1fZMQVCPkQ+rKNIypTc5a2sPQU/C2WHYEjG+8F+9/DqThL/2iSsPuRdJpI+IBrDiIqdVz92PlWS2OD6O7cr1n7V/9IKqK+6A0SW0EVrUe2k5tYvVSiBp2tAlbjC+pu+Zaym6M7Y913Pec4Q9qVCL/GK+6plLUVKtb1T39MmJ5qAWxOymD5SrG5DMIYj/Wn0Vm5u+hUMaDx6BAe3o1EKYsi2b25u4TVFNQPx98SK0JVl5ZWowsJZN/uI+axxXgKwBdAHja9GRblOHv26TClnLTHGTK5TA3CRpLbPeRSwoAUQ6NA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=M18oDrIm0n7SzSLcID9y8NvUus7H0YWm2DEQVvXaTa4=; b=kowJTigb5+Yy8KmG6MgyhdmlcUxrDJN7b99FqrhtMKhQYofMhtfigg9wMOh580JYa/XhFu+vNqf9L+eLd08mhOxyYUyT+d2ZBQKcYTBn1Auf8EMFCKPhkdRaModdcC6GG9PvTvURKuDektqhSYkxrb9qf91cRCvrdec9jQPOpYU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DB9PR04MB8267.eurprd04.prod.outlook.com (2603:10a6:10:24b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Tue, 9 Jul 2024 20:23:47 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7741.033; Tue, 9 Jul 2024 20:23:47 +0000 From: Frank Li Date: Tue, 09 Jul 2024 16:23:05 -0400 Subject: [PATCH 4/6] dt-bindings: memory: fsl: Add compatible string nxp,imx9-memory-controller Message-Id: <20240709-imx95_edac-v1-4-3e9c146c1b01@nxp.com> References: <20240709-imx95_edac-v1-0-3e9c146c1b01@nxp.com> In-Reply-To: <20240709-imx95_edac-v1-0-3e9c146c1b01@nxp.com> To: York Sun , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter , Krzysztof Kozlowski , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1720556601; l=1903; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=sEQ2s5DOaJpFElpdRGOeANeI0KjitaYMW7pvhbkIm/o=; b=Vn4XK7e4+72Pi4m92N5oOm/JDIRynHBP8bwx2ivq6Qq5Aq+1ByMcJxulB0TemTYYyw79FST35 MR90BpuRCgwC/GukSWTTSdmCUIs1G8hfDgKGMUAZTUuKcCN6oq/Lge8 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR03CA0033.namprd03.prod.outlook.com (2603:10b6:a02:a8::46) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-edac@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB8267:EE_ X-MS-Office365-Filtering-Correlation-Id: 2032ff1e-d238-4907-dc00-08dca05509a4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?2AuG3JM8+MrBAB3XAOEQ8qmVhiarD62?= =?utf-8?q?M8rQSIwq3RJ7CW7vs4sxgwikNZaNrawLEODSAW+TiVLWrHVB236aUn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YXP?= =?utf-8?q?B1TnV0a7QJs+kD+lHEKY7bS0QV50OlvQhQNmaB44qtoApO+8ZVndYSYY7RmT+nzZZ?= =?utf-8?q?QHT0iULm1PFwuePjyPu2tHCUaL2q7z657fn3tmluniM1tUmPEaiJLdT5dcWk+uBGv?= =?utf-8?q?eF/yhXwfrfbKa9/QZ3kGTdUGQXOZwLq+as8w/YEH/234t7v2VH5+z4MXGsDDF6rq3?= =?utf-8?q?vlohUrpHdFHUVB0KHhQcr3c7eGbmrn4ZOTVn6ZkARcdyFScNIeT8poAAwdQjiaiuQ?= =?utf-8?q?U1CwWUO2rtctZS1omIh067c2buz0yIB5jYxrpWGIxz2EqFcv4iclIBOC6ZMJ6eS1c?= =?utf-8?q?O5IDLf3r1S1fznvlKr/oeFwzEpxCz+OTkWurGLRhGDu53wiBe1FiUzrog29R8OTe1?= =?utf-8?q?Dn+mo8WOkRVUQsrSS3H1bshzBWhi0aQrMH0GbBkTc+JFvUI2EqKi+/4=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?WEJ6uG5OfE8vXRIB5IOGSulf7GMm?= =?utf-8?q?aXgnPyFNo+ArsSwwn2oP6OWE4wbrLMRWoKFXKSB7awhO2xwZ6uEmiA/3OLx75zp4V?= =?utf-8?q?bmfCpSeKCCB566Vc2IdSCmUHC5HfR+mxor2DVm/8zbxDUZRSFjL/+x6DMigLO8qZw?= =?utf-8?q?NC26sURgaPR6Gkq0XjmEclplBFXzJRmI25I/LEYVDRifckimM8bHWSPZ6E4HnpHUD?= =?utf-8?q?/f2l9M95gB3NbFx1NpZxeEU6ksC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8VRvTzpmNn9YnZneeKIz3H?= =?utf-8?q?yI1x2KX8fBBBUTqOve8hgAhWvKOofiJ3Qrs/9kWSn9f0E9DfDu8HoFwIosuWQGvM7?= =?utf-8?q?SJRLQfxcNG18MPs8Vk6Yz2pk3cC19n5n6oNzUA73ddiZVDzO0vLV8RAFSCfMwM87A?= =?utf-8?q?4WK6aIXo7oEdZLSC8f4wwYqWmY1AdsHh5Z3oe0O3ntPcePXA85XPjxEhbhoZ57bhd?= =?utf-8?q?6oxlEzOuZXVopZnRChxk0Ejn8cTBLj5OuIJAqYzDcAcqpBnNbuqNQ45GQDtwT+H5n?= =?utf-8?q?L7bAP2CkuAAq0l1c2KTP30w7GCoud7JfAOdYiMv8+g9WuSAJBUIpb1mno/kjFoZ4j?= =?utf-8?q?/5Cxdk6PgnMGbJw9Ef4ncu+IfECWymh42Gy7MiHEDTa+d26o2UgulXMzHEN8BsEP8?= =?utf-8?q?0VXW4BeFMk5Q?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2032ff1e-d238-4907-dc00-08dca05509a4 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2024 20:23:47.5064 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bGgxXaA2c//yA9Cu3x7GhhR15yBLvrBjbkCm3uD1ZKQwXiJDre2sFToU026xQ6xouC+OEMuNxgzwT8QsZZJlBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8267 iMX9 memory controller is similar with other layerscape chips. But some register layout has a little bit difference, so add new compatible string 'nxp,imx9-memory-controller' for it. imx9 need two 'reg', one for DDR controller and the other is ECC inject engine register space. Keep the same restriction for other compatible string. Signed-off-by: Frank Li Reviewed-by: Krzysztof Kozlowski --- .../bindings/memory-controllers/fsl/fsl,ddr.yaml | 31 +++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ddr.yaml b/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ddr.yaml index 84f778a99546b..e0786153eec73 100644 --- a/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ddr.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/fsl/fsl,ddr.yaml @@ -40,6 +40,7 @@ properties: - fsl,p1021-memory-controller - fsl,p2020-memory-controller - fsl,qoriq-memory-controller + - nxp,imx9-memory-controller interrupts: maxItems: 1 @@ -51,13 +52,41 @@ properties: type: boolean reg: - maxItems: 1 + items: + - description: Controller register space + - description: Inject register space + minItems: 1 + + reg-names: + items: + - const: ctrl + - const: inject + minItems: 1 required: - compatible - interrupts - reg +allOf: + - if: + properties: + compatible: + contains: + enum: + - nxp,imx9-memory-controller + then: + properties: + reg: + minItems: 2 + reg-names: + minItems: 2 + else: + properties: + reg: + maxItems: 1 + reg-names: false + additionalProperties: false examples: