From patchwork Wed Jan 31 23:25:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 768606 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2083.outbound.protection.outlook.com [40.107.8.83]) (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 1024613EFE8; Wed, 31 Jan 2024 23:21:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706743311; cv=fail; b=sHmcJ9nf5k7ytxEye6XZg4vbdukcBFR//itbKe9XRd9osaAb8Xo7d7O/6IWEQ987MdYS6kZ1w7MILk+quEchHfNQIr08knjlI1VqlFamWp7tpFX6ZwatPRnI4886kppod50MeSpOYnMgzOCti0hFK/xg0kC+SgOAhuUTa1L597Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706743311; c=relaxed/simple; bh=LNvnoYEPuJOC3Q7udUjfyXtGxEcwyGp7uy3bSHg159Y=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=UFZkOChThSODIv8lzYGZZAJMxIlLLOW4bQ2Tlz1cQ2LwGAySzf9fFMSPr3PdtFY/wV9MGoGF9VN/I54Are9nMC40ZsDssgWCoawChmnN4NBSjXarvNBFVZdVJk8i5CCPcZMeT/pg+ZdPuFDH7+P64dlMKW96PBTKjAY+TYQXrng= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=ONi+w8mT; arc=fail smtp.client-ip=40.107.8.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="ONi+w8mT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T6jHzL4aIjgUqzUC9iUk78VY+7e2R8UPyTR9uioJKksjVy8O5Ksx3LYtVwmMM05ZUSZmZgntEVp9Ly07SVKqLvRo5yd5W2o4RCJAu6M8suWbUu+xnv9EEg41CqSCuscsywTz2PipmBYMrW9U1yOLKOiOMxUP+7E6zcwi22d9aC1efd9hPEPY0JDFxRi6cEOMGeI1GH/jNAPsW2H0u8XR6qoYD3TBQfAmuMabiBAMq/WnuKFpJ4UdKMm6IGDu4GBreI7ShdsukChCv2d/AH5AxBLNbJ8fbkWEAojxs6EKvbP0kQTtcDuIzouN1z1o+UUYiWZIk/5vjLrgxa2N4fjipA== 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=xTdoC8q5FApmt4DLfehA123RyfVCBe5apC77EnASDLU=; b=QlFXhhi4fK+98Zg4CoRVBWBDovi46kXU5FYk3r5Ag4yAhKpTLvUmllF4RjW5a6RXWCbheO8l5Fa6ypDsUPQ48CTuIacsiFOmvieA4BIEprmb5l2qDMJBygAhQEpzIle8wtgsBHQMgqyv3tve6Gv/LHr152ksIR7OEjNE69msVEhyTsHe4s6akaHOBI+rE7K45CCAL8E1VUnK334bhUQlbA2s9g7w/xJFB0yooLeqIDzSpimQMpYSIJSUjT/4gCDFcjPnLEiKrv9w/bwsz0j3tYW2VgO2V0pBRSjJcIB4w6j34j/GMwW2jFcWFOWZVnxvH35lZwv4pW+qfGckOQ4nvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xTdoC8q5FApmt4DLfehA123RyfVCBe5apC77EnASDLU=; b=ONi+w8mTgf0elc6jQPHznl7GHN5+Mf9m/zy/nQ5yeLzTBfvLqxpp26kPrs7QeBM4hYZacWDUutSmNesZhcvTVICVWMsBVGLWJaSBWsMBrevv7ysQwr9E4cMtI1YHSwpdzTiCMSCXWLmsY4v6luhI0C22EkAGkLa0xHcRHkBOd/g= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM8PR04MB7396.eurprd04.prod.outlook.com (2603:10a6:20b:1da::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.23; Wed, 31 Jan 2024 23:21:45 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c499:8cef:9bb1:ced6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c499:8cef:9bb1:ced6%3]) with mapi id 15.20.7249.023; Wed, 31 Jan 2024 23:21:45 +0000 From: "Peng Fan (OSS)" Date: Thu, 01 Feb 2024 07:25:40 +0800 Subject: [PATCH v6 4/4] mailbox: imx: support i.MX95 ELE/V2X MU Message-Id: <20240201-imx-mailbox-v6-4-76f4f35b403e@nxp.com> References: <20240201-imx-mailbox-v6-0-76f4f35b403e@nxp.com> In-Reply-To: <20240201-imx-mailbox-v6-0-76f4f35b403e@nxp.com> To: Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706743555; l=2040; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=lL3X7pJ74yWEAfSciMF66PVspSe1EXpJ2ahQLd5ain4=; b=i6/lCiQ2umyZUmJMNhniuiwQy9mXJA8EaTH/+NNH5USx8c/0JSX8+Imv3Dimnkj/lhrvZSfnK cvNEs+nZJn1DrkCJryn9eXr9vBuht1h7hhHcZk1aAmPGXBRU9K4rWD0 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0049.apcprd02.prod.outlook.com (2603:1096:4:1f5::18) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AM8PR04MB7396:EE_ X-MS-Office365-Filtering-Correlation-Id: 744534cd-7f89-4a75-b66e-08dc22b36442 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zYO1/mHZLzc/9npkzLlRh+unuZm6Iz3sxBm+y5od/QUOrvoZrf6KDTlpOz78pRMESWxzJSfG7Ss/M3lave47ZNWjO+NgO0tV/JNiKO/hOXQzlqkIZTW2UAyeuOfq9HipWJld46jlC8vtk52KNpQEz+6G7H5MEqCfxMphNgf2rtRkoRApCpQMAnPZ01qcQOgvMWCwYiw1aRaSj/ql4dSbAIo0FbPpUtmcqTc9F6jcOQpN0rmbOqlkDuj1csF1FKjQJZp5yhqz0T5vgrrnizibVh3M2GHaDwuTGECSp4eI5fXZQjCA46ub3lnqBJdMtz9h8xCvOgQ1TL+qWf5dvBHeBVGj4JVgCaSpCPXb/R9lJ7VgPePeysQ/iVGFdf3UgLfEYU4fEWObYIicxdYJ739/EQWCGjicxpW52dosm1wlBJGK7bBIp/SuHVLomedXeud9QiIKfcI1WoUg9nkKfKqM0dqvS9Vbzawe/lqaIAW6sZ8jUatgcHSyyn33LsMQhLxs2l6Jff+EDSbnC8ATN2nkH8JyBRfscqAz8WAjvUsh8Dsj2qvCUfUJTU8ADi0pkiBW2JXc5D29RT+ydvgR3batydoPiz82cksyAbXzEF6N4/5n6XrOxyQOfcAmPF7NMAMrnrPXUh0PMUYlCzT/F0HlwA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(366004)(376002)(39860400002)(136003)(396003)(230922051799003)(64100799003)(451199024)(1800799012)(186009)(921011)(26005)(41300700001)(316002)(38350700005)(66556008)(478600001)(36756003)(6512007)(9686003)(6506007)(83380400001)(52116002)(6486002)(6666004)(66476007)(38100700002)(66946007)(5660300002)(2906002)(8936002)(15650500001)(86362001)(8676002)(110136005)(4326008)(7416002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?KZJPWMzn+qA5oNvT6rTLCgfzQvKL?= =?utf-8?q?aJDeAm6HfoUQlO2MJVBzCG/oFjEN2tg+Q6Our4YTsdqrYS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rp2qp0jusItZk5z?= =?utf-8?q?27CweKhlK6/v1ST+ZExMdoKfCuR5nxF0W9bAXRBvnb19GLAJElqXB8+Tkio75nX0E?= =?utf-8?q?azaL5w1fAp2JGv4IFBnLqhz39xCp/W40Jz/MBNZMA/wGorxouXhiUAj/1+CGAVBOh?= =?utf-8?q?xegBolicX1I3D69kebExQPIUI5yvZTxBsDMHALUPK2Cz0wrFmkXdhwqVVt3qg68JA?= =?utf-8?q?jVC/bBjkvmBBE6BHJsux+h5TIzrTco+7czzvv6G9ZTS/q97SKHpMi8kdiPsoJCB4R?= =?utf-8?q?x8QISIK71PC1HxNS6Goj8RLainmCHAHE8BnmpnQ4yhobKrlrV5eQyNUv9pgfbIhaT?= =?utf-8?q?55r52LF/8jkQmtC8Tx3lWSll1Q6G5GbvromeD7kPWJ+f6oworqVX4toP/7bXuP0Wr?= =?utf-8?q?6cKISCnoWWysyGtKj3nPyMy7OlJeilV763XIjgyEP78mgfKRunN5RqH5JdKQ5p+3n?= =?utf-8?q?mUKjlwzeUwm92onr7elpS5pzXXgUUxm7ycoHq0NC+EmArOUciyt1e3AhziAht8y4q?= =?utf-8?q?NPkTMT2JekU0Vg9jCoQE/xCRDfye+vGuKo9ymtOCDTLj1MThYjFwSNiOdJ92X22JI?= =?utf-8?q?DRIVC4sy57Cv?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 744534cd-7f89-4a75-b66e-08dc22b36442 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2024 23:21:45.7255 (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: Z2N9FEcRRNx42LO6D2fXV0v+29ahHb0/MoGLV77TLEYHnPXz56OanDZganphXBHIAOV7n2Cg6j2L8g6arltuIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7396 From: Peng Fan Add i.MX95 ELE/V2X MU support, its register layout is same as i.MX8ULP, but the Parameter registers would show different TR/RR. Since the driver already supports get TR/RR from Parameter registers, not hardcoding the number, this patch just add the compatible entry to reuse i.MX8ULP S4 cfg data. To use the internal SRAM, need populate its sub-nodes. Signed-off-by: Peng Fan --- drivers/mailbox/imx-mailbox.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index 9e89f773d2f9..5c1d09cad761 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -4,6 +4,7 @@ * Copyright 2022 NXP, Peng Fan */ +#include #include #include #include @@ -15,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -919,6 +921,8 @@ static int imx_mu_probe(struct platform_device *pdev) if (ret) goto disable_clk; + of_platform_populate(dev->of_node, NULL, NULL, dev); + pm_runtime_enable(dev); ret = pm_runtime_resume_and_get(dev); @@ -1031,6 +1035,9 @@ static const struct of_device_id imx_mu_dt_ids[] = { { .compatible = "fsl,imx8ulp-mu", .data = &imx_mu_cfg_imx8ulp }, { .compatible = "fsl,imx8ulp-mu-s4", .data = &imx_mu_cfg_imx8ulp_s4 }, { .compatible = "fsl,imx93-mu-s4", .data = &imx_mu_cfg_imx93_s4 }, + { .compatible = "fsl,imx95-mu", .data = &imx_mu_cfg_imx8ulp }, + { .compatible = "fsl,imx95-mu-ele", .data = &imx_mu_cfg_imx8ulp_s4 }, + { .compatible = "fsl,imx95-mu-v2x", .data = &imx_mu_cfg_imx8ulp_s4 }, { .compatible = "fsl,imx8-mu-scu", .data = &imx_mu_cfg_imx8_scu }, { .compatible = "fsl,imx8-mu-seco", .data = &imx_mu_cfg_imx8_seco }, { },