From patchwork Fri Jan 26 06:29:17 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: 13532108 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 04728C47DDB for ; Fri, 26 Jan 2024 06:26:44 +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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=TRBGazMG7Y9Ndmh1mbxDlzXxq6Qort61W15nXePTKco=; b=JmrUzNQgOYPxrhpaQsKcMdIX7/ KoKvfNN4z5Gt3Lj/IvgZeq1Oa15tgSK9BO98d4cH3Ig5Fdp9qERFRx2cMU0QjPP8i5WnyJxidkcNl 6CklXlWvMqNFTSfYRb5dMFc6d7NtTpyjSD2nYirzWrtikUniID1yZYAtG0qXvP8KhI8o3LkgdnCUJ LBjPJdB/syXRmGunu9rwe6VHvtD0hZWdnpsUiZwtdY2XAj/hA8JSrBdzk7b2h+gEqqnMlo8UzMOQM w41A/Ape9WfjuqufIfYwTwcs1GyAfzZjplweSktE296kUWZde7wQjj5aPxnT0bVAk4NGWTV9UEpGL 9U+em4Vg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTFfe-00000003EtE-3Nut; Fri, 26 Jan 2024 06:26:34 +0000 Received: from mail-am7eur03on2075.outbound.protection.outlook.com ([40.107.105.75] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTFfV-00000003Eq5-2t4r for linux-arm-kernel@lists.infradead.org; Fri, 26 Jan 2024 06:26:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XsSKWfsr0UXzs7m6G3x5jucnyTFHoZK8QUzkLSHPSRITU+SE6XERYtsk2wky36T0sVK6Jpm+24EnZnRMDmfHnoslxgXClumj0AHp8LuIVsE3VCerZHWzg/eVLrP1Re2HykDDpe9AfWWVQNEucn3WxCSAdUxVIDF0ZKvg/+nrFSXduYIsdTbhmVMVjd+B8q9TylbonPOn9NGyVJLvhMK1ve3HzqEXR7RFdaKb/FLPD2Lf6qLToWGr7LJy45VKchdRVIGPXt/AjhlhnJ26snZMCUs9N/oFznuBSdUJT3g6VOe14nJn3l8p3EjgzjDNK0vS/5AF0ChJJ8caucjEr6tMXA== 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=L3MZJkY9Ae93EaInZKmSWDAQchsjgpRTul3GD2MoU6nzEYsRlVaNoN34DTdJcqgBzLO/az55Z/Kwj4U/W4/SffBTXi/u/O8ZXWlr251+AYphLytAbLldvWTfCEGsA252KA0oVmbO/MjfvF/HsMJAEnzPzFl/whQVZDSdahHBLbXnAw2s57KcnAo6LTiQnAYodhaN796DfVbkAAHOCmBPxXf/qvPyeds9j32qt1tsEQaIyfaX5q+5JT2EI+Tmdr00pd5/S2vKIkO41VsayEuRgc2R6BUhcx2UIugWJDmI/ENTXHg9riDefqEVW/fPcpP5q2xWp4z0yAKHSzZR1W+sYA== 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=kcmu0JYXmILovr85af8NoX6xa8g/gyrmnD56roaP8Q7rCb8AA2YCz5e0kJk+RP8k4kLTVglgWSZ8t7Ny1MLKIojULIIr8H3cbcPffT7ehMNyWQU9SNFtFLCg6qHbIWaIQQxT7V8fdGapz0eFXs2xodi0Xnhme8A35PmAlaJkSI4= 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 AM0PR04MB6851.eurprd04.prod.outlook.com (2603:10a6:208:182::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Fri, 26 Jan 2024 06:25:14 +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.7228.022; Fri, 26 Jan 2024 06:25:14 +0000 From: "Peng Fan (OSS)" Date: Fri, 26 Jan 2024 14:29:17 +0800 Subject: [PATCH v5 4/4] mailbox: imx: support i.MX95 ELE/V2X MU Message-Id: <20240126-imx-mailbox-v5-4-7ff3a3d53529@nxp.com> References: <20240126-imx-mailbox-v5-0-7ff3a3d53529@nxp.com> In-Reply-To: <20240126-imx-mailbox-v5-0-7ff3a3d53529@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=1706250566; l=2040; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=lL3X7pJ74yWEAfSciMF66PVspSe1EXpJ2ahQLd5ain4=; b=J+poOS+xfDxcmBGVFyHoworU/w3Yx2Fc3hqow81smu1OUoH2vOZeZuv2pS+Cnn/8HT2j8PnQs G2WVMCF2Fc3B5erqavRs7MGGLf17tw4ntQdoHxNr/U3fr4B5fOhHdUw X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR06CA0215.apcprd06.prod.outlook.com (2603:1096:4:68::23) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AM0PR04MB6851:EE_ X-MS-Office365-Filtering-Correlation-Id: e95fc1ac-e4ab-466e-45e4-08dc1e378e99 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: zAqHiP4JvaH4DI2mRnM4WVW0vOjxxHBNwO7EHg9ZAsFvmzTJCjjcxLXQz45c3X6LAel8VMRomcidwoOM/c552xbTH45ml9vf9cNk/1vQm5BOPnRLpySZ9E/aRKdx17xiSxgxvKA3QaxBQrxHXcRjH1hBrBxttudMGd7GAbT7fH7rbaIxxc8dPQJb4gJoUPz+itNAj9NMiDkpr9/9jx7Ym2+ZBhs52jVftUZnpn1SDAaPZiaqp7aaaBBby8FDt4f2FSqXCGkrxr+gReePAKvRztoVVgj/0IB9mym50kNlxfyrzHM20Tzd4eeRO4sQbVGgL09VVeRZLdNdUlwYriW8i1nml05CzSxTF4Py+EW0m45M8F5PW6W1I5C2DrPPgIRT2Js44FCpoXTF49EOSn7srIjYP0+k79QWyZllPhFVds8ywnvxphLV1t3928lC0pAnG0Fn6TuX66ddpzI9lD+TFRs3sCCKyUZ/uK7tPsV2wUaPq1EqKZTywydcSTxGQScw3lq4Emq6hpyFtlW1XtobRsaCi4Oah+Nb0nHS536WBpijKO/Efw+61fBe1sLTX2EjQ4m5T+Ubk5o8cAxAGu29TE09vFdFu7wJpNrsnEUjHBOztJ9TXVpgeiWBM1C6ftmGnSjhEMLRZLlU6Y79AdyBLw== 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)(366004)(376002)(39860400002)(346002)(396003)(136003)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(52116002)(921011)(38350700005)(478600001)(6486002)(36756003)(86362001)(26005)(83380400001)(38100700002)(110136005)(8936002)(9686003)(4326008)(6512007)(15650500001)(8676002)(316002)(6506007)(2906002)(5660300002)(41300700001)(66476007)(66556008)(66946007)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?RqctJk5Nr+QlgMquWMXldIDRcgzG?= =?utf-8?q?aC6b9Buz8mrrRC7SVv8To7194o+3szwniU7iOb5GQ1pCsvB190pIzUuoYhRaQq2V+?= =?utf-8?q?yCGJYEmMCc4ysU9WcK3vVgbc6RmV2SEH952KFtozo3ff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nSzXBs6S3jTJduE?= =?utf-8?q?t2w0LchA8v8Y9PsyGh5hHom1zD1Kc1p2qyGca+X8Sh5FnMltIdBtgCbzKHE8wQLII?= =?utf-8?q?WKA6YTbJCuqC6upmsRmZYfNc/Hnh8so7gLiXZjTcP7nq12FgWkZZzlltQVNQ++nd4?= =?utf-8?q?Jr9ZCUiYQlKulv+KWB9H69TSN7eBj9qc4V1Q3rKTx96Dtz1dJmJgHzBNs3s+cZjmU?= =?utf-8?q?S90sYWV/KnXO9F6iAU7nmZBJ8XGhv+QHdIpkVJHVO+p9DUi9P9JTVsoeXbDjlhu6r?= =?utf-8?q?mlwk8LNntJn6dGfaj8tjQRNAXGGXPu1tdVuwGDTxzkTDdyKXS1LHjtcNZeAHQ+9Qt?= =?utf-8?q?NGpnlhulZagYcFqGzknoZ3Ao528BkQ2f3mMmzdORti+CXY6gFsE6me8U6UjnIZSnG?= =?utf-8?q?ZAIQzwNSS0mbpZJ4A/s7DSwd9dzPDZCp3Hjx/NyAkiCmoI/pS+Ba1VR3EUO71o6aM?= =?utf-8?q?KvdQqrpiRObPwWzLGoOG4NMEAlb8AB7DBkaPWR0wNO9mAAA3YsPh9dONHNQ3rorWV?= =?utf-8?q?Zs3/dxPFuQ3f?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e95fc1ac-e4ab-466e-45e4-08dc1e378e99 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2024 06:25:14.4924 (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: GAbxY/Mmb9urY5q+FiJi8wtm8+gfpmnAxAixM8vZERv66Rj2bL4TbPr+YCrdKEXaX0GsLzpV12jvninHU/9DUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6851 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240125_222625_774057_22D036F6 X-CRM114-Status: GOOD ( 13.92 ) 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 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 }, { },