From patchwork Sun Feb 18 06:56: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: 13561706 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 6658EC48BC4 for ; Sun, 18 Feb 2024 06:48:54 +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=GD1ZsqhH59TPpIbxlfJ3AEoEBR zhpsY583nyz/VmDsaovWq/LKaUlSYDp51DkcjZbySewp7WLiVVaUb6RFljZcaVhAbJ4huQ+gLYlu+ 6KIf8X/hWcvkm/yPxsX4VzsDGiHCk4sXXUgSkU+OWG5dxyHNK7YJey2Hm/7gstTlPW+B5pVnEwJNg ij6nIG2EuP8UhVIrISsahrai8BHcPuUx2daAsfXNxnf1yv9Q7cxikdzuJJgLcIVYQlmMJjVT18lLT uKdCUxrymz6ie8o9mQDUzlrOzmsccQYHeHWqde+iGdJ7JIRyvJ45Fo8zg+Wav7jPocXeEYbnuInpl C2gUsjZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayk-000000079jM-1yNE; Sun, 18 Feb 2024 06:48:46 +0000 Received: from mail-am6eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2612::600] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rbayQ-000000079VV-2mz9 for linux-arm-kernel@lists.infradead.org; Sun, 18 Feb 2024 06:48:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q9gLlvj3eOtyd2vUPooSHvfafgChzfdA+8l93xog2bhTrSXQCSt0UG/nBJGw1nOBGBbpkF+5+3lIKoOZJuVoNll0yltkbcvFyPNR8jZcAYafv1SEB4tfTvVJsSFfqrdVn/eC/oqwEU98L7nQm0E3bFW0flJ1y3M1U5OxxaR44aQ5CEi7xUT10SfMcOvpxuvJ4ER/W7HLZ8+zKPMK/MMUbA4PlJ+nqrB792fNTQhEBptAfr5gPG0NPctOQ0kKCZlWlHKU2+IgZvl6nDUNsf386a+vmvOZrfEOy2msQ55+tCo02nAdDrKUt6rHkYk5jac/uY0EcFZilJ3Bj/saclQYDg== 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=V2iYj46auiB4fGFvh1BfQ+Qfz2GCsHmSG9It2/TybfpuxLWtk8f/g8udmzibLhKDvz3uYgYBz7sNB+pPUHws5OFWSih3QvrFJOSPmIcdR+oAtwnCFGNm8zi9SZnsFftqAbJViFOQEYcsYsGOt7pCXQVs843hiIM3rOw4r3nMfacxOget4N4K6dy8UNca0Yb3ExSQqMsHDh36rHmsRXgWj/cDA7RteAX+OcuUkWkoRMCfLvT1dhh/6a55MxyZLDtyij+7kuUW4xKmjgXd9cnjnKOE6d2hdZ5JqTU8ZcbOJajzpFkrprL9A3KcfdHah8rPJLsWP+j7DwTxzLwdXnT2kg== 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=O4W3dGKZ7MwFlL0oTCKP/VKLmhvh2ut9SU4l/ysY+gemXAXEXygs47oIkb4dmoKrP+post46EauJsvdDcOEs+lp3OhjzFWuMdoYwvy3c+ixBZTcN3SFsZP0WiUcJalX2hsM284rWkhLbexHixyxLinDO9IsRUUTFeXt2rBlqqi4= 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 DBBPR04MB8011.eurprd04.prod.outlook.com (2603:10a6:10:1ec::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.31; Sun, 18 Feb 2024 06:48:24 +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; Sun, 18 Feb 2024 06:48:24 +0000 From: "Peng Fan (OSS)" Date: Sun, 18 Feb 2024 14:56:17 +0800 Subject: [PATCH v7 5/6] mailbox: imx: populate sub-nodes Message-Id: <20240218-imx-mailbox-v7-5-8fb665eeae40@nxp.com> References: <20240218-imx-mailbox-v7-0-8fb665eeae40@nxp.com> In-Reply-To: <20240218-imx-mailbox-v7-0-8fb665eeae40@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=1708239387; l=953; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=zmP601mImThDTxLev7/0znMw6wmWmFmrzE1cC9FHOTg=; b=fNOiY7ZKTAWVoPXxgE7iseOdYLiBYjTRWVLHmI7BcBYZx0357dHVF3zX9NNgfLMH8Zmoy6Asv mAZlHN1FNOTDFP0RKNUXRvCCRNonCbH7bAf0pgZ2tauqjVCMACvO+t1 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) 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_|DBBPR04MB8011:EE_ X-MS-Office365-Filtering-Correlation-Id: e37ad53b-15dc-4d4e-5f8a-08dc304d9a81 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: CU9JUqfP857SPivk83HUXhcu6tdguvtgn9X/BwWkyRHhO0p1mHYS6fSmiPXgnoGuXq2ynteToglbZdX30ZUBp8LMrAvx72Tn4fQpQqGPk7FBcNEzigOTBg3BkDN/alY7R+2iWDr21pVfilJ7cMg9QDF1Hghgb8MzwgO63jSQBsg5jGLRazOcmCzx2RorcBD2+fIgonxDWeTWRHLHaX7Umzy4czfqKPtlRPLzDOpTYVPRq88RXVln6SUNFcuSuQnbbErpsH+ALXO3dcR8CWaJia2dPS42IccH5uTNavdzEo/xQjBszjEaqRsc0kTQvR1QfqVFkC8tEPEGRts6yTf43Dl/6l0Zl1yXYl9pTx/vQG5Q3Wl3gdam8PfO+Wsq8y7TZbTlK1RWwLDee/guo8A/4MUya6OuF/53KgjoeeA1+7r6y1JQCbMMRloS9Tyn94N+wvDQUtlTYxd0KQbbflBqypEzTAYcGAcqCN0+4XLngxyOSCH2WaqUecLrMcdus7ZSUgXqW8j4I3t6AfdVIz+7JEji9qTdaAl79FmxDUhLZVdKsehvKrYrJinpU7LsnLt5MQ0DUbMVRnm5NwLkiIV3TMyC+VecRI+wpgYt+4wJ8AAB6K8g53orU8JlpfPJbUXyO7Eoj65Gg60KlGnJGJ9gMg== 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)(39860400002)(136003)(346002)(376002)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(5660300002)(4744005)(66946007)(15650500001)(4326008)(2906002)(8936002)(7416002)(8676002)(66476007)(66556008)(86362001)(36756003)(921011)(38350700005)(478600001)(83380400001)(110136005)(9686003)(6666004)(6512007)(41300700001)(316002)(6506007)(26005)(52116002)(6486002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SAvdgQ7mBBrpAJCZqBs2RFRXPZYr?= =?utf-8?q?owvnoAByFhm1IRdEAq8PvZDgfLdNhsSVgZl8p5SzVUrDY87UKtG8IbVeIMO3lTT/q?= =?utf-8?q?AiMWsYalNYKzi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4tMFu1gkm3Zs8MJCpaJtbXQCM0F1uR3v7U8K3E9mQnsbkxq?= =?utf-8?q?XljhI750CEGP9QPYSZV9BVsNrH5JWM2EPuXpwd/EOeKHrJH80Z1sVaqqNNkV6ARaH?= =?utf-8?q?O4c2oDVmzY/0T0vXTcI0gJDxxU9b64xRZyQ0EV6mBqOH1dLii6JZfycyUm7oozIlJ?= =?utf-8?q?YQeSyW7pimBGBm7/YF0EHOQk819yXHfpfLvwbjSyI7guw1HC1q6P7q9k3u7Byje16?= =?utf-8?q?aGqZf69ngLwY7faVV7BUavGJnbnJWrFe1N2rcjylTArBT0Gj2FuOrnhmgbArpbrrU?= =?utf-8?q?ko90iFYwoZ852P//LECTLob9mAyp3gVjwLg/nChBOYMQT4lZ7tnkapXVt/eJibIsf?= =?utf-8?q?/919HF+RhlMd8TB/KdQt7ehC7pCRNwcwzQnps9E965PHd1cUEyBCltc3dSDekNPVJ?= =?utf-8?q?F+z5Se3HtT+vvF9M/F2fCZ6giTfmvMsvQT95uR9idL+LeGLguZp00tNa/Uggp++rf?= =?utf-8?q?un7CQ4d7XPP/2Wiu1jxSHlVZ3NmIae3fZqizm6NjasSpg6/cZg5j458oOBzXITkc/?= =?utf-8?q?NsBIUcrFtp6Y?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e37ad53b-15dc-4d4e-5f8a-08dc304d9a81 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2024 06:48:24.3268 (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: fflcqaUJmRaWXGda2OijgOvZUfLE5BnrKNDRzTtA9KD1iQ+8kJ051BEgNH3I4m2iFJL8jp7uZEd+fPiQaXPa7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB8011 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240217_224826_938563_D7BDD8CE X-CRM114-Status: GOOD ( 10.03 ) 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);