From patchwork Thu Sep 14 10:20:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13384988 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B353FEDE9A1 for ; Thu, 14 Sep 2023 10:16:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=swl2lg+OOJHh7gppMYxYE7nI1wHjhDl6hByz/FqsppA=; b=gUgan4tHzwwrC1 Ql+iupSe8oI3gj5m51kxiE6yaSZYUxyh7X6WjcWWrRwz5e+JYFX/t1wX2VEp3LJ83+2IybDBrGycB QCO5A6B0yhJUijSIx5d9kPasZBQrI01HnlwguUfIw1s4xQL0ZNx1vuNZlgiLHZ+JsZ7i+STqKFVQO rmgcD/hJN8JE84jE4woHv552d256k03zbjjY+bLbQQLzi27h9AblaKfawLYDBlxjQQ7Wl+U290Rwf /tfzoNWFRb0lMKgcmD6PUKX17PFJl8oowKrT/oAgF4D8OnVGdvvEg/WCb1I5Ne0lSY0GGwP0rLAq7 QkKeXriZNacQk+1g7x9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgjOS-007xam-2F; Thu, 14 Sep 2023 10:16:16 +0000 Received: from mail-vi1eur05on20620.outbound.protection.outlook.com ([2a01:111:f400:7d00::620] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgjOQ-007xZr-0x for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 10:16:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CINsKfM/MneZ+GrOF0NMMH/7C/yjLmbO3vUN9fSL8LQ0c7jCY6/eNO7iFME5xR2neajIcaKqRkSEmkcbeBixNGf8Qzie/+UsOhaK3GefpmlYWCLEzJ0K4SufZWOCH+SGJmWst2LyzJ2uDX0pdvTcOgjLVw6qUvt0UfoVf2tQ7sTTlGRx2nDi+/kmBWuNF39GtWTz1P+HbI38SglE9jHz4yMr+CpXh8KArienEHemLd7NUVpwHvp88r1T5qXPzJpQYtAuosvMDzqfthx1eHLUFBrb2T7fSfIw7H/s+WtuHtr3RFNhz1xF9dIisYr7FJ/ZiBQSLNMzAhUcEPt8yI2dzw== 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=4JzJS96XWCYONka3qB8XuWxgt4RU82gDx4+KS3A3pmE=; b=dBOPCcfgbUvCrIHxfsYtcTxTrigZ1SplAR69Sn4fprDKUKCrE/pTTJ24xheAm5bTVcjfimpXGjhd+553EH01wcMQVfoizfvoLfGG9Tc5ewRXtNwE8ZLRFt9AVIGGoFeAQejVaJac5ecScBrcC9DSRDdU9q7K5RLwZCDuObxLrA3Vd18NUGJb3ecTpymDuPSkV3BxTrNeww72rzjN7HrXXlIgD5dvYTUZgm6f1CaC153owfgwR+AkrDz3zc14L6kcLofIQspcE9/IME3LuS9zGIYALlsWKhzJSImNlv/4dwlAkdmqcaa+NmqVe/3jc8G2//RwaPg4nLiv0zBOqNxdHg== 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=4JzJS96XWCYONka3qB8XuWxgt4RU82gDx4+KS3A3pmE=; b=TUSgcVVuoeg+8yhlBdLXImkdbUVytP8sd5uWlKiETGoM0HJDYTs7HJnFiNCvI/nsDdZY4QPH9NO/LVP2fS9/vm73zBbBqfHgd6OF4DCyHaipxAHB1LXPSnx6fjkxLvUSekADBK0LtyNLjOgCsPscOEFeDZwqZz+ZkWFZTw1crBc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB4505.eurprd04.prod.outlook.com (2603:10a6:5:39::26) by PR3PR04MB7337.eurprd04.prod.outlook.com (2603:10a6:102:81::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.20; Thu, 14 Sep 2023 10:16:03 +0000 Received: from DB7PR04MB4505.eurprd04.prod.outlook.com ([fe80::6444:e07a:e7f7:3923]) by DB7PR04MB4505.eurprd04.prod.outlook.com ([fe80::6444:e07a:e7f7:3923%7]) with mapi id 15.20.6792.020; Thu, 14 Sep 2023 10:16:03 +0000 From: Xu Yang To: will@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, shawnguo@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ye.li@nxp.com Subject: [PATCH 1/2] perf: imx9_ddr_perf: resolve resource map conflict Date: Thu, 14 Sep 2023 18:20:37 +0800 Message-Id: <20230914102038.2944844-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR01CA0022.apcprd01.prod.exchangelabs.com (2603:1096:4:192::14) To DB7PR04MB4505.eurprd04.prod.outlook.com (2603:10a6:5:39::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4505:EE_|PR3PR04MB7337:EE_ X-MS-Office365-Filtering-Correlation-Id: f9e68d14-1ead-436a-4d56-08dbb50b99b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UrLh4Gjsx4CETqY78DwEqToy8yimMg3HCiTQLSFsu6pErMcXyJvAARJpFUQgg0g4VbVgNZyq8/voRMCdpssZgUX+AizXukCCxl9F2t/QbQwq/WFY3PI3I6vrDHPh2Wz0Tr0r3MNSHOnas9XiffwE1LOC5JxROzZjh4tnoAccw/IK5U4mPehkgZZdfDDwvIPwsKSatrnWM6gqGIGNoeGhpLKa73r68/5yVGzx080yyQd86MwJy2tXlA6qOG/JmCjVDIXgEeyJ8YhhH5iTqkBBuGCnFiscHt4Lq9SiMkwy14UlzJDk5OVYbBhTT+32kYB/wsvxqs0KB7Vs633t3j2zEFO7ME4w2AVXg1QSxe/j9ogh3X3vOK1gzjo0N/gOqteK3GIJJqYUQpARzbCKBBJkt3i7GHWxEAfiYes7EIKsWyJyL75/cbAvwRvSMfg0lRK2tB139OmPlHlyv3muX+nZ0VuiqKEuApmmGrH+VHwiQB5XFrg15o06qMXW6qoBCQAQrUWlxhHbobJ0jQSSTbdVNdLLN1YFhnnvPQyYgidzjel3bZlX4Cyg8JclZD5TbuNwglKkEKTo5dSijIhTnutS1n3odhzA4Ssi53mOauszj/3f37L7eaONSB4Tjx4eN07C X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB4505.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(346002)(396003)(376002)(366004)(39860400002)(186009)(451199024)(1800799009)(5660300002)(83380400001)(8676002)(4326008)(8936002)(2616005)(26005)(1076003)(36756003)(6666004)(6512007)(86362001)(41300700001)(316002)(52116002)(6506007)(6486002)(66946007)(66556008)(66476007)(478600001)(2906002)(38350700002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: N8TyIm37VIJGRC4AP366q3+X4wN8n9sp0mSf2u01F0VWZ+vniO31x89ELyp/ALRsAXVr7YjaIiI5FqTWz3C2Ftt5GZ8HeJN+ZSPMM3/OGIIKw6b8+ZAjO74ZzNrnzbVtNg4a90aq4FSPE8CfP5iBT4lQMtkImJpC8+vswmxXitm17rAzvgaSBnaK0p7z1FHFbN5tq5Vo0bZDYFUROMAyoWTygfYpgWajfM6b2rZqyRk2PabmuZeB+BxPeuL7usMDCRl6JTz1sX9u7KGKgXl29fxRf+6pyIbLAT2iyL2wgmzAGHJRmZbYD8MBVfgLYGu/FnFT/1cpUAqiSILbbzEHtAQI4UfJJJL4T+seQFg8IkbyWckwHBUD8ifLQUDhGJndu0sMGTvD9D54NHR1wVUw14mmOK3VLzOKZkmb6/krSKiBD/938ZNcromsGD2zsex8ib8xubPsDR2kB+IRwbnvPMlDwVeKLPK6vjtfW90lNBqPORhpt0Ae5UVzu1F0xUeRn1kgpcMds6GosbCiJuLvvXJs3ZpBdWuu4a3/ADZ30aUJnh691UQCUW2oaGvyc7W04Ru6kZEIIG8g6r2ubOUFS48ix4qS90BSeGV89FbxyyJvMl1BA+Z8z+LPnoog5YKmlE+aGEgRfK97gjMzYZTM+9Z3gebsuZiztFdMN7MSF+1IBl0gUkv1PaSOlb5u0vMPO8D8qoGG3HGrj2mZj3yncIhz26UZS1Y72SqjD/xscDCwaWmQOgvZA228g7R96J3/hGyMnQvMj3Ur4VpVQFvY+ehF+PWD1LTOdf0x4bcKBg5KwuNhlZl7zPsnrubvxSrMUvGUxRyUNBjv9gI1KwppXsxnnfrysz+QcYwBOJM5da1L5XC+EVuCpWf9qN+hWRzWHVpMuTNH/7Hdz4CoFTDh05sc6gbJbTpdjUlzq49UcpeWaDwYmllJc1Ocd2mUW/jIPrH7UulXfwVv3i1KlJDgJADM4JcYlINt36+Bv64nXmgpYXsSzOl8s2sCINhaFMHWphvUh9lPXEcjkxaPnyyUSe12m4Si/0EPeGEffRwE06sD2OZS7mItXOqRCxW/Ct2ZCjXBXUCcJ3EW0t5DlTMp7rMLgTizPrQo8bvHXetWJVaj/NYODAh7/plRnXXq7FJ4X5tAQ6fbexFHhcNQPZJYyF0WgaHs4gtw3hXZQ5Mt7WIe7Zk2ygyyngCE9skHjy8ftuuzWpOR8kreIMluR5tLUFTWrmkEnMkCnTLWS4pYn7tXUyCUMeQPP489hoRCISPeRV5zcdv0Vz8BE1Z0QBisams/TqzAc2f0IFpTw7S9z3Y36XRjCllpx5ziGESFWaFbHZNZUzSXMGXAlBHdjVBDhAJFtwpbuaZK1yALPn6+IFV/Jb/RUDE30cSEK7ahq1LIT+A9Dh2vD2wY32ISYXaSI43PRDad6mpDRei4DzlN8MdJSziktMv21YlZaNL7KmH2nQuvyMoEBa7VWnW+731xj9GSDmf7WxRfC/xx2zKeoHw0P0IWHvQeqiyJYZTF29kHfY8Y0e9G/aVZ247Nm6DXofkPHFPrpJNcEBP9uBf7i/PaVughsZguoNTrkX/qfAz2 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9e68d14-1ead-436a-4d56-08dbb50b99b1 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4505.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2023 10:16:03.4176 (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: qFN964syRFFDdHk57HgnH+hRgYCuWt/IxzUUCh1o6qngjdEEbET/HeTfCOblhxp5crFwNbcERRXcOeCrreAqAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7337 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_031614_378325_BA427191 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Usually, the ddr pmu node will be a subnode of DDR controller, then using devm_platform_ioremap_resource will report conflict with DDR controller resource. So update the driver to use devm_ioremap to avoid such resource check. Signed-off-by: Ye Li Signed-off-by: Xu Yang --- drivers/perf/fsl_imx9_ddr_perf.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/perf/fsl_imx9_ddr_perf.c b/drivers/perf/fsl_imx9_ddr_perf.c index 5cf770a1bc31..885024665968 100644 --- a/drivers/perf/fsl_imx9_ddr_perf.c +++ b/drivers/perf/fsl_imx9_ddr_perf.c @@ -602,8 +602,15 @@ static int ddr_perf_probe(struct platform_device *pdev) void __iomem *base; int ret, irq; char *name; + struct resource *r; - base = devm_platform_ioremap_resource(pdev, 0); + r = platform_get_resource(pdev, IORESOURCE_MEM, 0); + if (!r) { + dev_err(&pdev->dev, "platform_get_resource() failed\n"); + return -ENOMEM; + } + + base = devm_ioremap(&pdev->dev, r->start, resource_size(r)); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Thu Sep 14 10:20:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13384989 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2A53EDE99C for ; Thu, 14 Sep 2023 10:16:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JTD8rxaiTqXFA+OPt736kDphvDjaXD6Yi3oZblPecbI=; b=taHkpmUOkl/fkx EqcAVcNoXtrQcilW3bZj3y9Id2AafXM5mxPBzY4kdNJeivbLq/wVo5Z3q4MdfPFSZUX0+UPpDA2/q d5Fgdy/YebfM59D1/+s8d76vXN34XLXbusdwt+GUk8aumCcNRkiuVqw0Rbo7eDGqrjCFRp/XxpT6s SGMC9ZtwP3KJ219uXwauGK/HcIMhmRqnwsAoGoqyTy69m8ePFFLKsiCoLr8P70Fa8kHJAv2QegL1H pGvm+1OTcndDr78EzxFHBB2JrWkCf4vXFFw9Yi/pQGw9Rd6tuNNM5m0lpfRaZLflJ4IhFZl0+hPvQ AUfy3ZTjhtsI9QxMwCFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgjOX-007xc4-1D; Thu, 14 Sep 2023 10:16:21 +0000 Received: from mail-vi1eur05on20620.outbound.protection.outlook.com ([2a01:111:f400:7d00::620] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgjOT-007xZr-2Y for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2023 10:16:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f5+USOl9Wgvk3DUfaF3HEvOOwhY0/O9rC6MZgfJ4bbvy9s4r9pXbP9mWtqqFJIBqClWNbjzIVP6xS2Ibu1rXXNF5xcs+W3jnNnSdOaA+SU3+NvO3+PJE47W76YLinx/hMv4X9+l+jLSnbKykth4VEaIDsRODVJ3Lyje4kms/5pVRLksU7bXl1UCyqNWoHdr6ZOlKcS/u8nQ7i1KvLMtvtPDzGKRrXyOrpSRoOCgjtIs6n5T0qLJGUQV6/uKD8sgo1JpQCLciKRniXIdL4phPnorINJwH/Hfd95JY8xEOiDfcyp9NA5Az5++jVgf/kS1BzZ0RP5BoC54ruZGjmjAXXA== 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=zirBXX8DzpLhKulGt4KVTJ7YWL53IEfZj0t9xYXPHIg=; b=egNGKhTZOmDanVDN8+M9zAczf4L3W/3hVqxeE/gt1QodAf18fxAYg8V8nZOKy22i3+vN9xS9z1TYPLOPzNFxEbQEWkXjVL859ebdiuzMgrrAIVvAw8CQ9or+M/y+V42fdA7KkSvT/rqPRJkw2f28cqX0qbP9vNVK6k/FtmO2IpgnIT0zmikh7oP/CLLzbBcRn1ACoF1sXCnUH575b1q03OOjS0pZ6ju9Q9mTt5dneaaUj+FHWD4i1YbS8sAUES6kVLoakBxX4vvZNWajdfNw6OF8QK+ltYC895qqo6NLRvhdSx7x/bslY/jM7aFlDP4ayKeXAkvUkuc7ZbdQf6/t5g== 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=zirBXX8DzpLhKulGt4KVTJ7YWL53IEfZj0t9xYXPHIg=; b=mn+EfhkmFXmUhlrXQTb2CjGBbRqIV0q37RTMmhXAsA6lxFrcImHUvYuvaxqMnm16BRWAtqECz5T3PYQtfWLerFQ8l0g3BGheyubVVgg9CkGXYwkpta9sp7H5kGf2Cu1WxpohJ6G5ZU9LXfdv1JeYwKI+OtyMhbAmxlANba9EXgw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB4505.eurprd04.prod.outlook.com (2603:10a6:5:39::26) by PR3PR04MB7337.eurprd04.prod.outlook.com (2603:10a6:102:81::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.20; Thu, 14 Sep 2023 10:16:07 +0000 Received: from DB7PR04MB4505.eurprd04.prod.outlook.com ([fe80::6444:e07a:e7f7:3923]) by DB7PR04MB4505.eurprd04.prod.outlook.com ([fe80::6444:e07a:e7f7:3923%7]) with mapi id 15.20.6792.020; Thu, 14 Sep 2023 10:16:07 +0000 From: Xu Yang To: will@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, shawnguo@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ye.li@nxp.com Subject: [PATCH 2/2] arm64: dts: imx93: add DDR controller node Date: Thu, 14 Sep 2023 18:20:38 +0800 Message-Id: <20230914102038.2944844-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230914102038.2944844-1-xu.yang_2@nxp.com> References: <20230914102038.2944844-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR01CA0022.apcprd01.prod.exchangelabs.com (2603:1096:4:192::14) To DB7PR04MB4505.eurprd04.prod.outlook.com (2603:10a6:5:39::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4505:EE_|PR3PR04MB7337:EE_ X-MS-Office365-Filtering-Correlation-Id: 1dd89190-358e-4eed-4e24-08dbb50b9c05 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VLHz0SrMfuVILq65q/JuhtiI1jOjTHO5te25IpwwR6SLmkRv4rFRDl9gmI+2hFDimq83Bj2ICPSRYEboJ9Hkb/x8Wqs8g5l13wERN+DYdEKEfFQbntXm5lrNLjyhZ+5N9dALM0WWmtofAlludSnda40CbKwP40AnJgbNvhPIEXgV9rCmOfuzILJ9R8wCoNSJnCYTp2xmNtN5JglBaq7oYuH+J6sCC7kci57TvUtxJVG34qd+oDvPK2xxbp+Y3auYC1dFtuv+lynvmonEYH/FEqIXuwsAnbz3tqYLcUnJvBCP/xVudEk5QNx62qdGk1lqE1FMgpODcp2T0YFdva8nyDPljjNv14zmJ5/RKTuJ3huSfigLEuxEsOJPcE/816BF+p6osHJ5gHkXfoCg2BLk5eUDySiP2zKQQVr8T8PAvSvYfG4TQmqTsXKHw0ojQ1pJwCk3E9bDEHrvI6a0BAsGlwMgsT5yO1QRos6asLjhHJ1n2+kfeniXypaed3XZ92DoTpNyTLQbukZtndDbNzwSEFZsv9krWx9M5KIwdA2+0N0OzJaUF//2UzDX/d/8c98NdthNmr8cmlzI+FCkG/5ZkfHpbQ5K74yBefLSodCjedtWK8uAIWvPi4VJ9Dy2NahM X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB4505.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(346002)(396003)(376002)(366004)(39860400002)(186009)(451199024)(1800799009)(5660300002)(83380400001)(8676002)(4326008)(8936002)(2616005)(26005)(1076003)(36756003)(6666004)(6512007)(86362001)(41300700001)(316002)(52116002)(6506007)(6486002)(66946007)(66556008)(66476007)(478600001)(2906002)(38350700002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8k0Xz81swWtQEGJIsp2zAusDqz7DQ2du4yofp8Df38eT1hWJKOjQcDCc7uoDymNlB2rbELO7AkPAVnIpkdQMffz1o9yRlLuYKfJuxpABBKFgEH6ED5vEeO4GfEBR2qkpoEcHG+ZLzTBtKqD0WTJIzRIIHMrinLaRzucNt5sDeHahUcKu/KOA70woaqMmxAvpUurhV8Na2clY4QJaAtjrvAb5VAvbWPw/6Qc1WPCpZWuV9XBFKOazanReOU+s4e7dee3r6BBCL6+RFJ+qq3NxLgw4fsq5R/3S9vIt8mYQArl+e2AGy2KtxPYHR5PFMPboeSWjHlqDU8kf2hiZHcXs1Corg5HahAMEnCPikWuctj30eKVieOAJNve/f4qrH5MFK5DpYEl+B2qJRkhcCMLweX/FrTC+Qwju3PICKpqkAPOWNfbeTBGd7ikgrmQTpvQl4EDWi9i9u3u24kQaqAuyWf0seG09AiDptN5Z7wIpQzy+Xk9cna+FY3tFRBScpgIV4ApcozDtq2Cn5QwbXoSLRkgrJ5FN88/E4jWWsA9WwJGso5vlm4m+qLbS2bChR6n9Cvt8jW/ccgGte63q7o+BcbXpIQpZYsKQFSorBk3lx/GdWanVxrC4rpoiC3cAmAwokfxg27j1hNBev+iowbYDklDAwJtGBab4LpxCe/C/9kNKsDydcOaFqNX9SUZQWwOrhiHBMme639xUGf/ddZQ06CV4uNyJuuF5m/SlydhjMWbAUPxKkhhOtRn8NI5x5DdSnv/bR+7YTurFsAKs5dc3GsIBOu0p/zSdA9owwXZNWtKmIdfEDPSLavncu5jPyOBFO0cwi34JMx1mgDVtxmEQQOorqbAgILKbCIy/Fy/GRU9aKMc25hHKWH/gRUyNnCOIKYfTqJSnpAbGYJrbrGmavkU3ENdndUnQ5m8vsyqNhWziRWm3bEOIugi0/hE0ykkAMjBYzkECinggqIKQfeILOsx4y0OrW+H4u30j3QL3F1QGC+2C2Td7588UMcNR+SSZZ5XUiNtBOhPJtGXKgSccRVEYwk8NPL6W11bu5bsXGRPSyUlgj38qLwwNrmfv0XAw3SsR6VxGCJhobaBQZ7+h2vZf0jwkkR1EO5+acE+xiQyDmc+Py5Of/pSoRqdrwS3asCTgd+u6xy6/Eo3Sx768eI+PexbwqsBQc054h208wkRUkI4v0fcNO0yA0FaPBynbPmkVXT9FInUQmDwZUiwukk+NywllvCrniADVDIxDxJbD98gra+He9MqpHhkSH5h8PX6MLz3rMKWuoFjAfMGVx5TNzGzBv6MAFjr+9mu5TR6/56wBl20UTq05VJwkECjMQWpXG8LrajEJG1X7ou/VFnqX9Sqn2GB9hkZU8/ar29XgQNl7kkkbraD2krAQkT+oV6gIULE1QDhXwd1qWtcEGBHKCfXU3TeIamdFmjhMrt3p7i+nSQMOCrKHkDOFlD0icKlRqsQqk0hcynpkuGK3wqNU1hXZr725b+HfuecOD4Wu6eTMUXDPWX7gCzOvjQ+TCRmLKfpoxNi/zebrpiD58O3ObRMx8UkIAiR/+MXyqOLyFotRIgSr+vLgJ/60+E9W X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1dd89190-358e-4eed-4e24-08dbb50b9c05 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4505.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2023 10:16:07.3408 (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: 1yBBj0CwhM3Hm9/1L1ge31i0qVlYZ5V/M3WiItKEpKAk4Ce51GhiHU/5AbemkK90+2VqH2DngXTUVxqlwgvaqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7337 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230914_031617_830570_DE820BC7 X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add DDR controller node which will be used by EDAC driver later, also move the DDR PMU node as the subnode of the DDR controller. Signed-off-by: Ye Li Signed-off-by: Xu Yang --- arch/arm64/boot/dts/freescale/imx93.dtsi | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 6f85a05ee7e1..992bdeef70cd 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -917,10 +917,20 @@ media_blk_ctrl: system-controller@4ac10000 { status = "disabled"; }; - ddr-pmu@4e300dc0 { - compatible = "fsl,imx93-ddr-pmu"; - reg = <0x4e300dc0 0x200>; - interrupts = ; + ddr: memory-controller@4e300000 { + compatible = "simple-mfd"; + reg = <0x4e300000 0x2000>; + interrupts = ; + little-endian; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + ddr-pmu@4e300dc0 { + compatible = "fsl,imx93-ddr-pmu"; + reg = <0x4e300dc0 0x200>; + interrupts = ; + }; }; }; };