From patchwork Fri Oct 11 15:31:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13832680 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2042.outbound.protection.outlook.com [40.107.103.42]) (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 2FE6D1991A3 for ; Fri, 11 Oct 2024 15:32:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660737; cv=fail; b=cANnCS3XRH3UT4EbqFjOAnSOSNgzBtTkeiThBKqHTVQaPzMiQTDCkz94G6dp9qGytULjYfHwIXqz4u5jHhbu6oHho2o2uZnZ+SOQ3QtGPYcU1Bth8ZGpq0dy3anp78OC9F6eDMnXYX3mrjJ59OCfkSYvLx+YhA0bFpOCUW/z6Vg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660737; c=relaxed/simple; bh=lyWe/ySMkDZ490wGZqd1uDY524RbQ2uyh4spYd1a1x8=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=UW0xZ33tI/kXOl5uFRS8s1eHdRocz0bAmWyOZ8VfsRzQOnMU2g0dkMw7vLxx1Xl5uQibKmS2xAzfrtyy2v/KaDw8I4OhYcn5aYsHtoeqpfoAEvzFzdF6IzMB4f76N3r/qUWzDSKdm2b8uhSP2P4oMckBofzfCA67uE+8fn1uGfw= 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=i7hM8ayA; arc=fail smtp.client-ip=40.107.103.42 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="i7hM8ayA" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UGxKQfLwGyZREdw4HxRv4wrJ2iZm18NK+X3uwJIdL5cDFGKKWwuB4lOB6trIS/+AL/ak4drnMEqPg/BBVV7vtv6zzq723zVjU+41Va6qH26XT2DUUJZMenROAoLpRHDGk6FaRBlLoExhTLqWmnsxKIMD7zJ1q7IOpc+8VxppIuw9JsPuR8pdOL/COgJdmOQuAhq8nMdmjNypyYiEGv3FohXcFgCb4uygUAPAvwieJtiVpG4etAky4vL74IpCx9mvu4XLLnanut2KKyssPbC2GK/iBnPhVKJbUAaRLh9u6f+pTJ7c5XBqO/wfR9F695r10fEtpVVL00eUJW0roJPbwQ== 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=NAD4mCozlbfl40y/GccvCefq9CSxXyu4Ulp6rMGucHpGa3Setx643tvnprH09Bw63mSMD82i3pCGDisTGIZMmIya9FZEZNA5r2JVhZ9c7nx+esalTCuJjxq1Hb9nSC3gr4+zkN2ktXdJZLL/OzpnBUJ9Ga0grynRqu7SqZs/39gUnwvgyi81LD6JY2oaq+cZ6XFC61a/hvhMEX6OEO24z4bYQi+zvcJlLumno1aoAVW1WU66N0cspaBcHTshUgQaWdwsngfYlx4mGl4qzojpzut1BDuOfyc0amsDUauywTxZfGjag5zxBl3Pb0CzTWXIXVDLdD+84CvDOABeAGvm0g== 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=i7hM8ayAI0mDQCWGuR2nvsP8Z+kKvamnuB7HoxGyy+DMCqvrpDh4RendBFLwaM3BFAi6ra4sE41lwwZBaV46IZEhUomEFsmw6/Aw1oiU4xU8QOiETb2yB9oA7sdcDMi1TiGHl/SNar4L5G2Dx1D2FL0m/+LPtKjniQiCKUnvglONPqRttwpuGB1WuRyhZjbA4QhpTK8hduCU825LBIu8Mso6V5Z8+ivg4+tymHO9lSDPPQItsEhjg6l2jthCHSGEl3IjXgHopb4GUCFkaaht+3P/a+LauaCpFq4Uas2+cd4Sigzf+h4TIgfY2DJaY2bAPisAPuaBSsYNF01JrF7t3g== 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 VE1PR04MB7360.eurprd04.prod.outlook.com (2603:10a6:800:1a3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Fri, 11 Oct 2024 15:32:11 +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.8048.013; Fri, 11 Oct 2024 15:32:11 +0000 From: Frank Li Date: Fri, 11 Oct 2024 11:31:32 -0400 Subject: [PATCH v2 4/6] dt-bindings: memory: fsl: Add compatible string nxp,imx9-memory-controller Message-Id: <20241011-imx95_edac-v2-4-011b68290951@nxp.com> References: <20241011-imx95_edac-v2-0-011b68290951@nxp.com> In-Reply-To: <20241011-imx95_edac-v2-0-011b68290951@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=1728660703; l=1970; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=lyWe/ySMkDZ490wGZqd1uDY524RbQ2uyh4spYd1a1x8=; b=8xslh7HyUKmks2Olrk03Ae8GT5TqK/INwuDUBhtlDDIKksmu24kLZyPT7edpKvnbT/Be06O3Z Y4s6zNk2GrFAcsi7vbKkJBbrYW+H64BVD7o25CZGmtRRLxDfSq2Sr6N X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR04CA0014.namprd04.prod.outlook.com (2603:10b6:a03:217::19) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VE1PR04MB7360:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d46f4a2-257b-47c8-3d54-08dcea09dfc6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|7416014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?9EUgAEuReTqyBoSK/5Dcd5JrS8Ln18F?= =?utf-8?q?IJ5Ysf/ueiA6AMIZH5GQHIJ1lSYWq+W3nEPmE4LcvJf3pJNgSiiD+OCgyYCbGd8Hc?= =?utf-8?q?1AcvX2f9TDMCysQPwuYoYV0UC7EmH70ygDKJmz5k4VBZ9OsSd/1fig3BWSaYN5MUx?= =?utf-8?q?/HniZc/400JdNf1DIoN3CQ+1OGanCzYY1zjOowYKnjzqvzqHRetHOOBcu1HL4h1Fm?= =?utf-8?q?u6BY49qeYav8df1vXiRl5YOACy/9uPl7mSG44OgkUCQswRrtAfyXdenf5sNOcKpsL?= =?utf-8?q?LcW/yjMi8WDFawDhxzgIPfkxcydvi3vjOhZaiAwDjbwaqe3l1JpVgxAPGLTZe0+u2?= =?utf-8?q?UK0gbnHj1YlszJFjTXhIX0W9R9pdAb4jad26ykLGqQSM984E3b4dTb6aDw3gE8cyx?= =?utf-8?q?iDq5OyZ9GHHk1XjlaQcQJjOJHE0/dr91lruYXjelwvffwMLxIHAOjUOSmtnRRFTVF?= =?utf-8?q?aSHT9nN90xVWxU7EEkRFQZdoYxMr+WnYgtgiyPwz+Du9u+1mvVwRRgCH//EwMiBd0?= =?utf-8?q?hWvaN5NzUsJQwVd4zV8ohnpwVS6wNYpRuGQGNzdsU6TPeune+trcW/u8HT633u+Ap?= =?utf-8?q?5TRkXjwuHIrY6DRBidD8e3XubC8fHJzbO8VxXCb+QBQqE9oEvbcBFfVyUVLEub5A9?= =?utf-8?q?057XnPAMdQgpf/m2oevfqN8Q6uocrKqSRA0QtZxS3ouDrtT2mwS6RKvFGqZ9oKILx?= =?utf-8?q?T12oFXgIgV3nu4eCGUwA0L9cQdWavHxCmYrirjA5O4/tUJmYBFN92XoVbTqcXti3a?= =?utf-8?q?1q6+veyLRoPC5VMDJBvGkrI20pa2F2wTWmfD1pPrj9bXVUYBBkZA2/EiFYOcJvMlv?= =?utf-8?q?j7Sb+EvFiZg6xg/fGbKgltBBT3W2dOnj1My1hVCQOH226VG+75sWbuBXJkhXkKVtV?= =?utf-8?q?C5x5jGGyYIxbGbpmwe1QKZhVhzq1vo+XsL2IMlB+/L6DTn5hjaWKqGB7/oyxteTa1?= =?utf-8?q?qSCdRhHQbh7i3hiIfdofSzEopSZzxaHwvs9+3lNea2eSOnfq081SNbgFPkS9thiFn?= =?utf-8?q?QeUZ4p/yrkg0JgcUtXe3pasgA5BD0/qB+ZFQd4YtOa7snDkGhR6i+4zA0Yzl1vQpc?= =?utf-8?q?2wtCyr/6m8PwkbBgrF+PCuvxGKtUJZCcvXxKCG3WD5GsVkXkvhRmQV5nKU5gULyhy?= =?utf-8?q?NJ03P+AFZq1CPGVIZ5xA9VAnyYa7isARPzNge7Zoqc5u+MNsBhKIsGDURlHsR5azE?= =?utf-8?q?ACy7jKAVN6e1cRFTqLUHvJIlb93fmwV2kuxgK6ZaOVecO3U/BJ5o0i8sI/CHMtT37?= =?utf-8?q?GrgPxbNolEA2bIUnNMdb7IXMagNM8MihnbQ=3D=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)(366016)(7416014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?4Ni0hFiRnjWJf01bBV4llu+ygTu/?= =?utf-8?q?/SwaRHNSnsyniYhG7rR4mzFu6qEaq8sndSpya+NHnJOn24La6zTrfMpbe0JnTJjz5?= =?utf-8?q?5tW677Snt1+r2xHSPwdat/kbdXZIpxnIjA3JxL4mVtu8SmXtNsb44MDgXZGrggBAc?= =?utf-8?q?xdeTHhm8/Pah8mxnQ0+qae5v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Pzi3bLWetoo1rIjpsAKk4Wl4KpyZlqd?= =?utf-8?q?5hs1A9nmIi/Q+I1uItznnumsNXsTIAT1y+AfF4j3WWi/RiyEUmejty4g/OmfxMKvN?= =?utf-8?q?VJs5B661uHHMfw+oXB/lV3K/D5flH/GiJyn0GHrnvIttLmsWghNrEpt/XlLVdGbW+?= =?utf-8?q?bLCqwgcnO4dlH7duri1FoCecic2E8qVFn+z/94MPBZtUVHnH60jXlR9ZyRFVnZHnc?= =?utf-8?q?WR+1F1X4U7Or/03orp+H+iCf6riUCIVe4O4ZUdWu3JTrsvyOzCX4vGYa//UNyz/LO?= =?utf-8?q?8IdNbnNNmKKI93CMhRKNz7Lt3acn1GQhS4GUpnNqbYAq4S59Br130jyYipZrWJa/I?= =?utf-8?q?Lv3i7j3eCAw/rKtz1FnyWSsLXMKm7xBnEAx/z+bcOSmE1qxG378oJI71ugeZG9DyU?= =?utf-8?q?ThqTXu/Xg4cZ2LIwwBD+pupMEKwgsNWN2PO6WRzDwsyVn9LAvjVFfiQ96sKIaAM0G?= =?utf-8?q?1p1EvjabuojU?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d46f4a2-257b-47c8-3d54-08dcea09dfc6 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2024 15:32:11.0828 (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: VAzlLe0S7kgcgZsVFsmqVLzX02+BJ7gHLOo7jRqF7Oy4zOWWD5Mb7GKeZfsQxtGFNRZvJ5MI1B9tiyf4iSoxKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7360 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: