From patchwork Wed Oct 16 20:31:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13838898 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2062.outbound.protection.outlook.com [40.107.247.62]) (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 83CAB21790E; Wed, 16 Oct 2024 20:31:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729110716; cv=fail; b=Rm4ovrPMLio6XihMgoM62ukUIfFId0YLzh51o8e3dYTREmY1EOieLIjmOi20r3Q1Uau84HnljhLOemzaMD1/uZ4Tlr+Cuq4Jr9ivS95oJfqnPs8eQMSTuNkH2Y4tbEG7wbEug3b6lGB5Rchn1GSZeDu3y09IC5joA/DTKWCQUAg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729110716; c=relaxed/simple; bh=lyWe/ySMkDZ490wGZqd1uDY524RbQ2uyh4spYd1a1x8=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=O2eOq5q+TgLh2M32EXvGy9J5UcbzgbuSDUJo4Q/UlRNuDwA5ZwV2MjR/SOFdl4M78w5uyFD74lbNSwHRL1xG7jZ3wu6orHeAwTSn1yKytascpMCZKEnoClut1NrnfTKV0cTqn+MqPldVbhYcaQt9OWw9sd2vfudECTbGTT4HFIo= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=Eexrvk5h; arc=fail smtp.client-ip=40.107.247.62 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="Eexrvk5h" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KTFdkbS1NI+OjKOw7n4x73cTf/PvmwkPgysgY6Nr6DhoqKCq7XnFvodR1yDkoMiq6kqAvqZyiPTlID0uGeJERBNQLCdvj4gDXT5Mhs8oDncq6cU2TXv6J7Wx2aRYDbH8Qv4OMlwcxSRRvYUHuJX5usyKYAu6UNER+MbaPU1+nILS+NWx2oQrCi/hBVMQYXocXDZ1ucDBfeRIpf0W5yvHnkHjvB8VT/HUnvUFQlUyTVpg4WZdeETDXl2bJI9R9RQ7C653h/dMQVVoZxg610w6tF/QznrMJ3Id/ES4sZK7BsEEK/IxQqvhdNagVYzkwZK7qZpLIaOqM/APwNXesjlDEQ== 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=qMo2ngT7gPC02/8eJPlx4Oq5Zz9LMuVnQAOCsuCJbzU=; b=xf/xhWNFo9v+Kwjb+7nnvg7QOMVZYAcyov7+H7Enk0eX+AkYe282Zw3nNOiDBvQ3/u8MBrCPwAb4scnRtRcuHCrBONIWGd/oj7a14At+T76mO9vwgHm1Babfsiqovj6bEmN55ceBxWjrrlM2BU5RBxTpfwwkQISA+cL+j1pQ1ZYftwx/XyJEnHOFbYg9AI1s5439vbvcOyoTMzrL1JFX6KWkkQ51CfDV2wo40RR+Vx6hFNJYjObgCZPPF9Mkn8/vVunoUBv8SdPvwElkcrUa1+pMkx9ejfGpEynTJTpCNZQV3bjr+w6w8nVJVxJ3kA3kINFHwF7oiK+Ny9YE2JlTtQ== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qMo2ngT7gPC02/8eJPlx4Oq5Zz9LMuVnQAOCsuCJbzU=; b=Eexrvk5h+xTam/I2FMoMzP1beBZLqHbLUTvieQeL1/2TgGO2Wi0FCPuq4zEOYpdwIm2Ictxm8iFDhHvv6HH9MMiDQHu71X583mVDsRRZb81bzqqscmdOkUD2kzLQz4efwq5ufSGVM/1bHcBxrG/rvxPNeWXfjHKm9/n3wR+3YBu23KfF3Pj/bJuz4Q35nMnQYMAGALblRhQW4xY9aiHaD3KeEaCfrHsxVEFqBmSvCrgFmC/MG6QvJHetkyMbV8SG7SeIZVs8oRMte8heHsaWpfqRN+atK3qZRWGhMzPmEYT3aHJT6QxK+FhLpZ8SXnAwN4Jptd74ha80SWJS0r+Sww== 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 AS8PR04MB8738.eurprd04.prod.outlook.com (2603:10a6:20b:42b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Wed, 16 Oct 2024 20:31:50 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8069.016; Wed, 16 Oct 2024 20:31:50 +0000 From: Frank Li Date: Wed, 16 Oct 2024 16:31:12 -0400 Subject: [PATCH v3 4/6] dt-bindings: memory: fsl: Add compatible string nxp,imx9-memory-controller Message-Id: <20241016-imx95_edac-v3-4-86ae6fc2756a@nxp.com> References: <20241016-imx95_edac-v3-0-86ae6fc2756a@nxp.com> In-Reply-To: <20241016-imx95_edac-v3-0-86ae6fc2756a@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 , Krzysztof Kozlowski X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1729110683; l=1970; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=lyWe/ySMkDZ490wGZqd1uDY524RbQ2uyh4spYd1a1x8=; b=qavNKD3m0OnW/A7jjrg2/vgBrQs+uti8j5A1Eefj9Asqy/z29TGn9zSEI9eBCdmmWTPV9yLpp CKOQ8w7jC7XAuBCwZ/JfJ6Vm1NCDXSMPSS+gwGaDzkCqGmMrsP7v2cB X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR07CA0042.namprd07.prod.outlook.com (2603:10b6:a03:60::19) 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_|AS8PR04MB8738:EE_ X-MS-Office365-Filtering-Correlation-Id: 110464bd-dee4-49a7-b285-08dcee21903b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|366016|52116014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?PTRNXFWQt2IFYUlHGgLKP++Qc4d5TBN?= =?utf-8?q?sq6D5Ig0NSk3zVZNn+ioUmZjIj7EalXByqrBjcpD6qozb62SU4OmqFsiGuNQAIFYY?= =?utf-8?q?tkuaQYpAjHusjbltWUP8vLpSQnX/vclnVNtWZl83PP4uRg3U81NwZIhOMFJI2uW+T?= =?utf-8?q?EsgmTuPi8olt3hszrjnp4lEUXh519idMjYlMoQeQDKI6zCaMGghcy4FmsAx+Ic9L/?= =?utf-8?q?7XYrmLseA5+z2d6OyWG0rSv2EBqfsNuSb0X1dgx8FvhyyM8u1AaE12luHRS60VITC?= =?utf-8?q?ZenaIjGFEwjG5O50LlVfj7AMQaatvrLOCccC5Xs6uG1rFwmGMR6KfUaGMz8WiHnjb?= =?utf-8?q?24lidEWAxTVatmIMS8Q7j8wL98ls3aRfWOAF7LRiOZ2Ug2Q0sIbkyIzVSPLz7PYgc?= =?utf-8?q?/VfaIQ3JtuyZeSkZUrj9Z8cfcW8j0EdnSh9HYui1l/igVNHdYJXNXhEbf9h3dwjJb?= =?utf-8?q?vLwL6jsVoW7rszhKyzNWrXY3ctBT4tMDoKTQZklPlipqObkGGIxSZ75nT3b5I+kV+?= =?utf-8?q?V//HGKpjs3wBpB/UYQAdir5w6r7u5jv82kJ0wQg3AoZQ1sfvwcT3sP3aMPRuOTtd9?= =?utf-8?q?AJfD2sqE2+ZRXpvNn+tJZ4vjZYqT775kPNGtR4/2qFPwRR/bnBWx4zwNfr8Of3tpb?= =?utf-8?q?+h0AsxYI9i//wMIGs/aL2wRG1oGrOJOykFLjO4lS1vl0i12X1LON6hAjgzalB0FBu?= =?utf-8?q?sjQVzguqIuzX0pt8lVNoePbPK+j+tgxqvLcMmNJS3mRt4Uvu/CK6ywByL0/M8ohuj?= =?utf-8?q?ekzESHc4FBqeYvWTueG0VwLEXsrF2VotjnYz5sXZ9GwcMIZFKuTVRydEwlpWGOT0o?= =?utf-8?q?cndXNlJjdpDx5SFeOp5wMDUA89rX7CzbZ3iBxdYS5ulsWlGO6ohcpGBY1WyEy95ir?= =?utf-8?q?G+IyYstMIPRcVRr6EMXpgHFop8+rTFdP4DM+9rjPatv9Bx1VRhk8MqPvhyelUDjDL?= =?utf-8?q?XYUvqa8ZybZXqbpgwN5M7eQshKM5Yvx/S0OFIufKJL+y1a4D4qJRtcwH7YgBFRell?= =?utf-8?q?kaBMpTXl4b9/ElGdYlaEG73XWN/1cYiKiphAQ2yj65UaE8DhZhGarrwOSYdJLILV1?= =?utf-8?q?1/R28TVBKrGMYcqJp2PTxWG2AGWOzKdArQ3znP2Sf9xq4X+ppGyj7MLrndu60sVKX?= =?utf-8?q?OTrv4ibo5QH3JQAnqDk+Pfdq1mYw3oAirxnQO5lgUr1GdPbqH603/INaR4kj4fg45?= =?utf-8?q?I88zcxq0Hka8BFjZcOOPMh2WgNRM/I5nw8OJvlX9az0p4oXfxo1NEFhf66iwpt6F/?= =?utf-8?q?ZhP83FGvnuDXmZ9qKfDfB6Zmyf1ky9GRVkpPl6BF6OtvwL4CD8Y1shMf9Jiagu43I?= =?utf-8?q?7c0abybrLXy6?= 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)(7416014)(1800799024)(366016)(52116014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?xR98HjmwjUrahqotMreoYLA/fP2i?= =?utf-8?q?IgHSgF5ZmnCy+ixtyKnB0zbnbZAH7XDaFrkvN73bcMfnlMhOaviGzxt6fKHhmXWP4?= =?utf-8?q?LpRfOLRE0JQxMyF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rAuucNSsOse0FG6HZXLpP1ZYPRpTMzdDtu8ycmNTOSQYtllU?= =?utf-8?q?isuA1Jcw8zzdomDWIagYWATDgVm4tVVkCY+h5j0at3q7oQbF2PXj3xxqZUedw0X4d?= =?utf-8?q?5ApLEw0WelmJ8qJeuC/rEgy4z9ktWfNXlEx4GhFbu0iUXiErFGJZEuVWzX6drgQkQ?= =?utf-8?q?Iqi1zc11rzXE/fti0O3RS00G6ekX7XP3krMz81frKZVUJi0vhPJHJNMaTvOQVcMyE?= =?utf-8?q?kxMJcjiWI4Z8w/R5zn7g3hw/VK+GwquPEdNlbJlLlrAROcXEsih/bB+dkeBX2vhJ1?= =?utf-8?q?KVYbydX9fBffY1p5OJ5/GJmMeamWRMDpWKb0buS62iMqkxcObGZQ/iWWOTu+Xsnz9?= =?utf-8?q?JfBP40Gf0cZrwptY/UPlvFkrfF+DQIbhhEWO51eg/0WByJHL2XaHC0DDCMqXQ2chY?= =?utf-8?q?Qi/EtosRKpZHhAP+TuCuPkmZJY1nkusO9d4Zr4ki+EULeqgIovXWdLtwmYkk+KFVs?= =?utf-8?q?eBoCQvkjrIejMYRr1OVofAForcV2QaO1b57djzsfc2yRF4/dHszevGicdtKHVthYa?= =?utf-8?q?90FupKc02P0x?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 110464bd-dee4-49a7-b285-08dcee21903b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2024 20:31:50.1700 (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: +LsSMPJ8YOSKqTdqHsc1hqlQsrJrSX0CM4h2V3EyYXfxA/kHWuHB3FxHGRLSIINGlBD15K9C6uanIgMwmGURQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8738 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Frank Li --- .../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: