From patchwork Mon Feb 19 05:22:39 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: 13562171 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 645E7C48BC3 for ; Mon, 19 Feb 2024 05:15:13 +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=5yo830FZNns7EzzKohUTWop5m1sEZ35s4mcy10a7J2U=; b=JzpG5fGxGkp5P11Otenebqw2cA 7kNEewhX97aj7oyVfNocfp5kidTgBo3Nv8v1f07uwqHtlww7FhnuHg/I0twAOxLcvM5ibhKb2TXMe 5KODASMherB5bqxQ7LugZ7xr/ES8MUY6puOvKEj0QHI1mamOS8jPtuoLaYlZ5c6mLMfllAQMHT+n6 RpDgS8YNj/taBkf6uzmkW+3/JkuTHuZhCkwnQ8IX1MAXXmvK/BySbfxbci9ugJHLpczD6uuB3TPWz ojxyUB+oIjgOLqgOB23tYlnyMvRstIRDxUOlqtPteEjD1EpugjfLFD7K5OewvaVtLZ7QWPJ3Bop7k 3oFneBrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzZ-000000097PK-2CkB; Mon, 19 Feb 2024 05:15:01 +0000 Received: from mail-he1eur01on0602.outbound.protection.outlook.com ([2a01:111:f400:fe1e::602] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbvzE-00000009794-3Ksb for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 05:14:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NagNDRFWCjR/W15elPSJ/CCP/xuXQ1l+LLe5Nxz1XtB4Uix/xMLXBcXyt0n4ifS7UsmWUtq5CiY+3vShm8S7NLRPd/Y65C3HpuVeP0RKeXrJc4agM/zt9VsNF8FfokeUE4uld/LkF663HD+1lpPBgTvt6brG0itALWb6J+lW2ikYQQRmmVpDt1kufndk5j/MpjdhPOA09nKMnnvGFMzZ5MD8Z3n6Z8i+kFYaQufWOVfZ8BZLFyxdf7NoUI/H7q1ePzDn6r+sYHOqDHlP+RxhzcVUFbbe4SoBLrkldXSNgac5Hu6l5PxqtEq2CvgIq5kqFc6AwsnQCJo+lvf0KCprug== 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=CvkBaNHIUgjGJ5yym/tBqi+SD6g5RuSBpWRmGGNYSaI=; b=PzoHRtJurAy4bq0mfwra8xlIeLyGpx3R5IV7/JcVVOYHZHNuHMEiaPGNquE5EpEm6IJTqEVdHU3VboXhXcsPZ2POUJvsNfwd3fnXgx/YicBP9mwg7HMxk5lRi4sGqNHYEpI0lLqeFm3JUsFPkpfR9ym+pEZ3ztLvsgLni//SiUHZP8X3HXynnDxP7cVfkZOo95EdKQpe/1nbWHDjsWZzS8ijljkUJeb0L/H4zvqicAjJlAvUpA9ZeO+5nvB9bL2VDxBAVMW3oGu99iA8USOhj7opM6PeTN4Yh4qZ4NtGkDFIB2qLiNDhttdLQKOAr8EiQ9+Z15l5kaUEbl0i2rRawA== 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=CvkBaNHIUgjGJ5yym/tBqi+SD6g5RuSBpWRmGGNYSaI=; b=g7YeAHHYqDfX9x8sQ285vf6zwWl0/jxFmDsQ01SuRBI0DBWcQiWqJRwXHyuTEBCO2ck6S1IIHFZDP7MKSqCHXOQEis3N/ffA3riBgmf9FMdJIQS2I+YRttYnyaXfVYE82Xd4Nphhym3MmAKv9Oz07Hod75rwHbpR2fRKKw0I2x4= 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 PR3PR04MB7228.eurprd04.prod.outlook.com (2603:10a6:102:8c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.34; Mon, 19 Feb 2024 05:14:37 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::4ac3:3559:4200:38e1%4]) with mapi id 15.20.7292.033; Mon, 19 Feb 2024 05:14:37 +0000 From: "Peng Fan (OSS)" Date: Mon, 19 Feb 2024 13:22:39 +0800 Subject: [PATCH v8 4/5] mailbox: imx: populate sub-nodes Message-Id: <20240219-imx-mailbox-v8-4-75535a87794e@nxp.com> References: <20240219-imx-mailbox-v8-0-75535a87794e@nxp.com> In-Reply-To: <20240219-imx-mailbox-v8-0-75535a87794e@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=1708320164; l=953; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=zmP601mImThDTxLev7/0znMw6wmWmFmrzE1cC9FHOTg=; b=/3/HaJi+Vef9BHLHZ7pQtlvRQRBHaRyh+RoHiLrbdvd/dM5QoUAyUh7bgIbNg0yUffI/7v/+0 yFAuTbkdLSCANhOcJ0/kLr6agoIHCVD+Wi/AKQvVVhY2HdRaDjIyKE1 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR04CA0017.apcprd04.prod.outlook.com (2603:1096:4:197::15) 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_|PR3PR04MB7228:EE_ X-MS-Office365-Filtering-Correlation-Id: 5056ffe2-7b3c-4141-c04b-08dc3109ab4e 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: mnYPkYodqqiNaFPKuFGf9xNItcNPeOWSPepsqmBlVG2ldiJ/TNGgnlCFFaf5qGZe91XpcleHVoWbuCTLYv+T8Cf5juN6Ux0rHNTIJnTpX63KnSZ6/+ShYCr3bLZaZavnG/SsK1fzlGBNrnZYfeo6LpF7s2r6nUsFFzC+l4Ys3CMpYXst82+tyBdtPi35UtPy7IpywuDFwXepG/NDRIxtoa3UDzVBTg1RYcRdnlCk7tjGa8yNugQyyNroID/cahkVS/ugsjcNNA6OWW6zg6KJy2cR8MYGAzGWmi1XKfYfGqW4zwfyG3QpN7Ld7jHCOJFVuefdKVpLqctiDIFmxTboOPzCZ8G+LPP+CgIQpR72B71q8QCrQIEA0G1u3DLHVSL0oCxJpU9YWS9jlHVVc9qP4lz5RQtBsIn0OmY+XA2bllfm8PVRedM9mow0BnM6wwnw9fvLrsuYWFr4bUfnq7gc7p2cAomLocFyJj7ytB8Kw3XPRLrXhm5zqiWNo4BF2/ASSwpvUmHEAhmiTs8vOHtOSpXQKKITGlL+F/EJ7cnyECwyoPt0W9k92yDE2bFf673bKI751kVxnzkXPcjVb6M/dAmFqTIzFWlQ+oECkpzv0djG9uLR4ahmPoiDdiwLp2o8dZp8TH0T/lqR3W4Sf0a2JA== 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)(376002)(396003)(136003)(366004)(39860400002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(41300700001)(8676002)(4326008)(4744005)(2906002)(8936002)(66476007)(66946007)(7416002)(66556008)(38100700002)(5660300002)(15650500001)(86362001)(52116002)(6512007)(316002)(36756003)(6506007)(9686003)(6486002)(921011)(83380400001)(110136005)(478600001)(26005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?gu9Sh0QOdzwQRz9HA47R6Pmq0YyI?= =?utf-8?q?Q0E8FYUhXB3R6JqQ2/rIgR4+5c54b/0nZep6KxWf/MRLQ4Rdzk74U6taNz1E+k1MZ?= =?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fjxyo62v3Q3ks0UcYKv+GSWPs0IR1Efq3MGn6Y0hu0NStx2E?= =?utf-8?q?nkEclFkrCmMyjgNe0Uhn1u7cQcfB6VjEMyo4cMX/CV6MgiTDuhITJajmVUlNkRemm?= =?utf-8?q?rQ/oFqXR4xX/HEIIA6perTMroPpSfjXteO62tcntr/5fXg+U/a94jTaSe+Qe4h87F?= =?utf-8?q?hpvlTCpEJI+Di2HKbA8ql90v04iOlMjTOtToee8PmzPhxQd1rdHfFwmn8kfmXWrTZ?= =?utf-8?q?Cy1nz5u6pz4hiD7f1nYPedz+iRAqeSJ2/0LKU1CGy72RgUAAWXflR/aDBN5lxH+Mq?= =?utf-8?q?Ok1+ZmkuxktW26UcHMbBh4mdnCiVnKxzu6D4C6NW4TjWVX2uSdl4KW+SAm4aJ2NEo?= =?utf-8?q?GalOGJGSFzYzZCJI3KyoLYdwYXwNgVzWI/KfoRgvFdw82NVj3BPR9q3WwO9c+cbsE?= =?utf-8?q?DI/4nYkX9B9FhG1X8e7XZVpoNT7Vz2ngvzM79AjcQOxwHYAlRrwVNKKOQaQrYiEDK?= =?utf-8?q?fX/DDQuB7nykBjYBSo8/xeS85GaRf/e4m8X/Y00pxb4iWO7U50jp8OtvfMtwRyduK?= =?utf-8?q?0CRQsu31FbZj?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5056ffe2-7b3c-4141-c04b-08dc3109ab4e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2024 05:14:37.9142 (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: 9zSapXQplB6TPtmAEkXKkD9hoULv3OAAtbD4+s0OWXAG5xCLjVa9cQ50LfLAQsF8QuK3qqFaJSsWC69JP8ti4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7228 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240218_211440_866840_C6EF8E34 X-CRM114-Status: GOOD ( 11.04 ) 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 Some MUs such as i.MX95 MU, have internal SRAM which could be used for SCMI shared memory, so populate the sub-nodes to use the SRAM. Signed-off-by: Peng Fan --- drivers/mailbox/imx-mailbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index 306af1880415..b36267591db2 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -920,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);