From patchwork Fri Jun 21 07:04:35 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: 13706930 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 D1963C2BA1A for ; Fri, 21 Jun 2024 07:11:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: Content-Transfer-Encoding:Content-Type:Message-Id:Date:Subject: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=BKYOFkCb3E/fUNT0OWv7ERie3nSlNvLiukcl1rVAv38=; b=CdGz0Up48YrwslWbC+BSJ26Rxy hjsHW2anHPFXRA5xpfxoqiDxZbyvp4NX3gwaJhrpnxfbgAdUWYupwDkyBtP/hsv+6mF2pShU2jMIg neNq/PZ8X8OGVR0MaS8iHJSvlAU2u25BEQc767DF7vOZU1h0ddhZBnOoJkjzf+TztXE8PB8Fppr3J dqg19Wp8Q7iJTFKh6zwt7Ws5kpKhyd7Gt+D7rT7mjW0SRA4190t2A7eraac106PcDNIeTmG9QlXgj NfhieJw6BMeX6zj55XeEHegHo3eLs1knoJqGkMURbix4BtKzIc5fXVvnJB/vFJhq7DTuKIsfGWv7B ASC6/CuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKYQV-000000085iz-3RBh; Fri, 21 Jun 2024 07:11:16 +0000 Received: from mail-am0eur02on2061a.outbound.protection.outlook.com ([2a01:111:f403:2606::61a] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKYQP-000000085es-43M4 for linux-arm-kernel@lists.infradead.org; Fri, 21 Jun 2024 07:11:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hLL4rG+a2BYj93x6WT5kd4UgnJzW9KKc/wF2G7bfmOeQ2RVcjqQL/es84sBjGJU679+3Sr+4wstjuh/qsPgUbo1AuWZMHj4okA4dyDohsvDra22JL6s1Yb0gqpcv1H5U+iNAdiKvQJ8NYlCP1WOUAlB1nNuYctUvcQ0Ed2QAI6IDYF8CR5TN2nX/5e/+dQe9wKIJKYSiIUqhPACH2jAdK9ViABQEUYwjv4KXAaeretQ1gFZ/RUZiDwI0UgPkIYAMSXh7fr5zIdD2r9ZT7+AQJHfLARdfkPemxmxziMp0PLC7apCHMVNKOKoIV0daVWRuT9GeIDorK4U7OAluTiRFdQ== 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=BKYOFkCb3E/fUNT0OWv7ERie3nSlNvLiukcl1rVAv38=; b=FNvV3Gtwwcm8ThacLqSWOGxMalY2oy8HXvAzMG5cnqTGVHWJYFW+7b4QjzPvTvTSZS4Nse4QG+/pZJvLUbZqEe4jxYhmNWWt5eY3pSlqzQJ/Tp7VMp74v8cze+LD4UJxVtsE5RKpYAMuIAtZyLUUUDzcsz9rXADpE5GtpYjyvy+dv+8N52m61TihjmTHBz1X5iV+fr/SR7KQTMlQHh/+cq/WfKQ7BAapF1e5j5chkARPWP+QKgR22q/GlnUUhdx9+1SdHFXV3lK/sUr34B7IiM3pdX5Xyri7hDBBUV0i/++Tnr1XOkzKGyCtiRnX4+BKY9QpSeUFpiSh72dKB2Ce1w== 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=BKYOFkCb3E/fUNT0OWv7ERie3nSlNvLiukcl1rVAv38=; b=UHoOtlhMqduckA/K4vF2vNub/wt/SqogZJTIP7lgdq12oNfPs7cchtQJG+JjgJMvMSopy4qntvMJcKTfXX3h2e+6CKyT078XFW0eq5SWIGqP7P/E9wf0norb5VuX3eXlEzNq0bQGs/kcDh70baqnKuqx7exMmDoNqcNaaBCq0N4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB5941.eurprd04.prod.outlook.com (2603:10a6:20b:9e::16) by GV1PR04MB10426.eurprd04.prod.outlook.com (2603:10a6:150:1cc::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Fri, 21 Jun 2024 06:55:36 +0000 Received: from AM6PR04MB5941.eurprd04.prod.outlook.com ([fe80::9f4e:b695:f5f0:5256]) by AM6PR04MB5941.eurprd04.prod.outlook.com ([fe80::9f4e:b695:f5f0:5256%4]) with mapi id 15.20.7698.017; Fri, 21 Jun 2024 06:55:36 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v5 0/7] firmware: support i.MX95 SCMI BBM/MISC Extenstion Date: Fri, 21 Jun 2024 15:04:35 +0800 Message-Id: <20240621-imx95-bbm-misc-v2-v5-0-b85a6bf778cb@nxp.com> X-B4-Tracking: v=1; b=H4sIAAMmdWYC/33PwQqDMAwG4FeRntdRY+LsTnuPsYO2dfZQlXYUh /juq17mQAa5/IHvD5lZMN6awK7ZzLyJNtihT4FOGVNd3T8NtzplBgJQoCBu3SSJN43jzgbFI/C GjNSAtVYILLnRm9ZOW+f9kXJnw2vw7+1EhHX7ry2N4LJVMq/KikoFt34az2pwbO2Kxc7ncOSL5 LGoRI3iImQlfj1+PQEeeUw+vUKllKRJ7vyyLB/VPyWKMAEAAA== To: Jonathan Corbet , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peng Fan , Alexandre Belloni , Dmitry Torokhov Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, arm-scmi@vger.kernel.org, linux-rtc@vger.kernel.org, linux-input@vger.kernel.org X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718953487; l=6938; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=kLVKxSbf9TRmMO8nDCghJyhgJxZSLNZBEiwkZrKmxQw=; b=DEtXfpxFZcPG6eNX39W/zOLubbr5qsD3VwnPwhyBddVfeyXydfMRLnIZQR6o+vZ/ZI2KO5506 YEQ5HTZPfLuASvESVM6N3SlvcHjrZnMcuf9vNw8FT+l1VzTWFKBjMbE X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR01CA0122.apcprd01.prod.exchangelabs.com (2603:1096:4:40::26) To AM6PR04MB5941.eurprd04.prod.outlook.com (2603:10a6:20b:9e::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB5941:EE_|GV1PR04MB10426:EE_ X-MS-Office365-Filtering-Correlation-Id: eaae9ba7-ec45-4346-94f2-08dc91bf26dd X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|366013|52116011|7416011|376011|921017|38350700011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?+TYDv5+av+WZjMGeji0/fcHoutGYQUC?= =?utf-8?q?J+Hb3JVaE0+64vWW8uzTS3GVPce/aN5oG7p6xyq1kheRDGpAm/KcKAsUlyuy8YP3C?= =?utf-8?q?N3z151l4VRokZm1TDMimWNbSQGnAiJKppZ3F9Rq8BF37q5X/MYmUy7aiXQh/umYaa?= =?utf-8?q?Mgezsp5fKvxrPNog4hva584CUZN4NbfvNnGKLLCRJrjloAGrMXHs2uTz56nG3Usic?= =?utf-8?q?88dT6jbY0oB17mFdMytRS4EcmHF7ODuKaI5KNPUCAy6H1cOw5Fl4aCgfCjG/o7aJv?= =?utf-8?q?almtvfs3Wm2CbNpMOAo7PqluYf8dYfjgxp0C9gkU2cxyFcx95PpHkhCww4429Q2mu?= =?utf-8?q?Qd84noaSf3QUu6UPs4eNCQ78WmDS95Rfh4IKSBQk35NOg6cD3uFQTb5Ifs6Noe1XU?= =?utf-8?q?HunhbiztdOx1g7CjAE9wx5q+ZyUR/iUX4STW7OfIaFwdakEWO7ruj25pj2aMugitp?= =?utf-8?q?qh1MIGs9pJAwdNmjuvAYmGgHIHFqe/swxWqediGS3w4qRV9pSlu44VSjQsjPnG3At?= =?utf-8?q?tMeKkFLSf3J9+87fIM9pMv4BLndkboQrmT2yRCs+1DxMUgcVBSqT0Lw6sEH/5xg1H?= =?utf-8?q?ABKFCggJDFLgkRq3cAvLAlz77sYmYE5RSo4m8YmMUfVU2GGcs2N7M2ehJVTEvfOdl?= =?utf-8?q?7p5z4wh7BTRt+egye3wJqt8atnjxmfYE4bL/Wf2cq9TMW0Z/iTiygCmkVGiOHedvA?= =?utf-8?q?As/CGtlz8qOlmSYg7Vxq7RINhL4+nwCHW//0WQKiALCj4VgI49qBPxGaWg7eFdz9Z?= =?utf-8?q?5LfOwvgmGr7eyUk/4Tq9sw49hCXFbCBaFMd73pB7lOLOLIsJ0ZZkHY/3TEtzuzXzQ?= =?utf-8?q?is8hg7jHhXt0MGM7ZmBl7w2IGmeyQBHvy8QlbdOlAfTpAJ+5TQ7jhfEqMl9s0UqRf?= =?utf-8?q?rhw2cnw/wP7VnRYQ/m3kgNfK5h0RfzHXY0JlKidl3vytkvuUQ9+bVAaj1Cp8dTjLY?= =?utf-8?q?uxG6Qzf6BDeGYBMTek+7qVgywcig9BfQ4pvD5MoEPy/xiUPYnQON96ocDVnGeld9z?= =?utf-8?q?f3HYTmA35h+ZOzNzPwhUyxuJ4+XfJqr1kHC6rcD0XSWmURzXCBRdqSwuj5YWU0poN?= =?utf-8?q?wxex03/ANBlNLw43by0LwqlzZxqrFEGgHPWCSQ4pnsBVLF6zE4WrJhHUO49IoDDVM?= =?utf-8?q?x5eERWgRG7XLN6tFQq/LLj/brE8/1iNLmGd99wdzyPVe7MgFcLF/AgASDwNvSjJ1n?= =?utf-8?q?9FTy4X7nLDl1fp6YGn0aL7BL644mXcZl9iXailkl4etSsIyIUp4DXRbn6FLGGyac4?= =?utf-8?q?wKhDahNM2Ou3m1yKQqTB0p9Ye1Zblus+W8Q=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB5941.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(366013)(52116011)(7416011)(376011)(921017)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?uns5H68IlnlUNM5muy1Xrc+j6IS3?= =?utf-8?q?YB1JKcTBtEwlhX9Qb3Pp/ydiwUYZ/El5/iDJ8O+mJ5GHHiXGMZo6h/Ac9NIGYz1d6?= =?utf-8?q?P4jztyojKfhRnQIRYd96LsIuSZNW7UebVLCzGHFmFLVbrOhcc2rUXj8/9C8h23u3i?= =?utf-8?q?81gusUHHuhJFbzH2DB0Mj4d2CPDUfQ7JF2+UAOfkUbMqjUoh0n5i489pCcmXt6OAP?= =?utf-8?q?E+fxXrAz9Kruw4vebKlWSYBH3DxN75izYITYlmXRHGRiYLiw+GJjXMf75E0AxF+4l?= =?utf-8?q?qmuzYpokBTe3vtP4xb0WXzdYLRCgYLDJcQmRh6jX8RnHPa3/va3rXY6niW/6y36yr?= =?utf-8?q?YAGfACQlHFJFDP8qiXS8zAOVQSzgn5HLZU94tOHbTz/F7rtTg9b63cvIcsBeIk/oG?= =?utf-8?q?pfo63PgqFDKJ7RQfpH3ICCemLsFi9hYN70Gk2rGS8cH3WE5v6MuFOvtF5IA4DA3Dv?= =?utf-8?q?STf1ZHOl96w/944LTpuTwpt/JjJLKOsdz7n5xJyiU6pwva2UyuajQyTK60WEtu85c?= =?utf-8?q?aeT7jQjqiQED9xOqg8s0f0i1kbPuJPFOP2nwCyltAFNK4ZP9I482vo8o1E6BdUSJK?= =?utf-8?q?m0WIfMtH2g2IoOEmgudyuE0Nrx2cKw6IgoGyrtoNzmW29wf4usM5s/D7zoQPkUn9b?= =?utf-8?q?Ou5/JJSuKovMuKKRbtwLcqDNcR23c+GCmgNV8xvEF1FW/uQjtP/r11OBvN/JyVG/m?= =?utf-8?q?tb659ch3YhcZbmLJtS1OxPNvXDCrNjNwLAczNPDspdD0Jx/MPViW4dxkD194Un9ls?= =?utf-8?q?KVWPgqX47KpTDEP+alX6Mlr9HZX0oYQ6hG2GVhR1SVEbTLsyuK/taVcZsxHjID4Vu?= =?utf-8?q?YDH33uovwilkbW1RcqLc8bOSsRrtMdLFMkgBNBpsGXsoYuyfs+qYhwHg440g6cCgn?= =?utf-8?q?/QMVNh6gIv0GilTi0U6z69fXjYAuusgYdAb7OWmdfW7jPP9WoLOEbl8f/u0tZL5Ql?= =?utf-8?q?/CMuR5YXWXzna4bv6OzbJ2wb+d+ftd968xmVohAunVM+ac7NO66vj5dJzq37VJnJM?= =?utf-8?q?7e4/eD4cBSGFRMKi1eQ+ecD54rhZWnrak8YkuOoxHUWT8CFqirJgldmw3LsL3ke2N?= =?utf-8?q?D7KAro7dsFyoDNXwHA3Mn52QV81IKQ/oR+m0ipq5zihx1/4B05884lYJQzzbtCcGk?= =?utf-8?q?geVaCWq1U7G1oBj9vKvw16ck1TY62YO/m/nFbSGq6AZatWY2YnYrVDbYSxAC4CWJy?= =?utf-8?q?aCXg9xU83tVE0rrwHe+CYlSEH2h+jykIDa8YsEjeVVaaM5OeXi1/WhwHE2jPhKJeT?= =?utf-8?q?gO6V/8H5FHGhf+RdUwyoaG2cxw01iv9h/+2NOaARrIuZkkqhwegBm2bao54JzSud7?= =?utf-8?q?zyvWqsHJ0sQwTNPOExcWQI98d67y0Rk7mAPgxUxwD4Y3CLVGclk0DSUUXmf5z7Zbz?= =?utf-8?q?urX18e2otI+EewQ5uRhyTBVVufTpirvEjlESYaAYhfIudBXLCoMp98QgKF4blbdIx?= =?utf-8?q?7DWZGYIo6s22khmtUB60QVa2Q/HY041AcW4pHG7TDDx5Du+LwAdVfg39ClQc/VVcJ?= =?utf-8?q?96Dr7gjOcH2w?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eaae9ba7-ec45-4346-94f2-08dc91bf26dd X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB5941.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2024 06:55:36.3207 (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: j2Kr4IJOKSmPBttr65vmysV7KRy8Qo7HehAaz3Lrn6CYH9JqvpgXRPzyS412AcDmn56pS4VNIsvmrfDor9NH8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10426 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240621_001110_214376_1ACD76F5 X-CRM114-Status: GOOD ( 18.42 ) 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 i.MX95 System Manager Firmware source: https://github.com/nxp-imx/imx-sm To generate html from the repo: make html i.MX95 System Manager Firmware support vendor extension protocol: - Battery Backed Module(BBM) Protocol This protocol is intended provide access to the battery-backed module. This contains persistent storage (GPR), an RTC, and the ON/OFF button. The protocol can also provide access to similar functions implemented via external board components. The BBM protocol provides functions to: - Describe the protocol version. - Discover implementation attributes. - Read/write GPR - Discover the RTCs available in the system. - Read/write the RTC time in seconds and ticks - Set an alarm (per LM) in seconds - Get notifications on RTC update, alarm, or rollover. - Get notification on ON/OFF button activity. - MISC Protocol for misc settings This includes controls that are misc settings/actions that must be exposed from the SM to agents. They are device specific and are usually define to access bit fields in various mix block control modules, IOMUX_GPR, and other GPR/CSR owned by the SM. This protocol supports the following functions: - Describe the protocol version. - Discover implementation attributes. - Set/Get a control. - Initiate an action on a control. - Obtain platform (i.e. SM) build information. - Obtain ROM passover data. - Read boot/shutdown/reset information for the LM or the system. This patchset is to support the two protocols and users that use the protocols. The upper protocol infomation is also included in patch 1 Signed-off-by: Peng Fan To: Jonathan Corbet To: Shawn Guo To: Sascha Hauer To: Pengutronix Kernel Team To: Fabio Estevam To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Sudeep Holla To: Cristian Marussi To: Peng Fan Cc: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: imx@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org Changes in v5: - Collected missing comments in v1, I not intend to miss any, and sorry if I make something wrong. - Update the documentation per Cristian's comments. Not sure we need a new directory for firmware stuff, not firmware-guide direcotyr. - Added R-b for patch 3 "firmware: arm_scmi: add initial support for i.MX BBM protocol" - For patch 4, added comments in scmi_imx_misc_ctrl_validate_id, use num_sources in scmi_protocol_events, move scmi_imx_misc_protocol_init near init, use get_max_msg_size and drop MISC_MAX_VAL. - Separate the sm-bbm.c into rtc and key drivers with each has its own notifiy callback, put the driver in rtc and input directory, handle error return, add kconfig for each driver, use to_delayed_work, use READ/WRITE_ONCE, still keep ops as private, device_init_wakeup set false if failure. - For patch 5, Add kconfig for sm-misc.c. Only support one instance, so add a check ops in probe. - Link to v4: https://lore.kernel.org/r/20240524-imx95-bbm-misc-v2-v4-0-dc456995d590@nxp.com Changes in v4: - Rebased to next-20240520 - Added vendor/sub-vendor, currently the sub-vendor is "i.MX95 EVK", this may not be proper, I will check with firmware owner on this to seen any update. please still help review other parts of the patchset. - Added constrain value in binding doc, change the property name from nxp,wakeup-sources to nxp,ctrl-ids to match firmware definition. - Put i.MX code under new directory imx/ - Change the misc event from three to one, the code in previous patchset was wrong. - Link to v3: https://lore.kernel.org/r/20240412-imx95-bbm-misc-v2-v3-0-4380a4070980@nxp.com Changes in v3: - Update cover letter and patch commit log to include more information. - Add documentation for BBM and MISC protocols under Documentation/firmware-guide/nxp. Not sure if this is a good place. - Fix the bindings, hope I have addressed the issues. Drop imx,scmi.yaml. Add nxp,imx95-scmi.yaml for NXP vendor protocol properties. Add constraints, add nxp prefix for NXP vendor properties. Use anyOf in arm,scmi.yaml to ref vendor yaml. - Use cpu_to_le32 per Cristian - Link to v2: https://lore.kernel.org/r/20240405-imx95-bbm-misc-v2-v2-0-9fc9186856c2@nxp.com Changes in v2: - Sorry for late update since v1. - Add a new patch 1 - Address imx,scmi.yaml issues - Address comments for imx-sm-bbm.c and imx-sm-misc.c - I not add vendor id since related patches not landed in linux-next. - Link to v1: https://lore.kernel.org/r/20240202-imx95-bbm-misc-v1-0-3cb743020933@nxp.com --- Peng Fan (7): Documentation: firmware-guide: add NXP i.MX95 SCMI documentation dt-bindings: firmware: add i.MX95 SCMI Extension protocol firmware: arm_scmi: add initial support for i.MX BBM protocol firmware: arm_scmi: add initial support for i.MX MISC protocol firmware: imx: add i.MX95 MISC driver rtc: support i.MX95 BBM RTC input: keyboard: support i.MX95 BBM module .../devicetree/bindings/firmware/arm,scmi.yaml | 5 +- .../bindings/firmware/nxp,imx95-scmi.yaml | 43 + Documentation/firmware-guide/index.rst | 10 + Documentation/firmware-guide/nxp/imx95-scmi.rst | 887 +++++++++++++++++++++ Documentation/firmware-guide/nxp/index.rst | 10 + drivers/firmware/arm_scmi/Kconfig | 2 + drivers/firmware/arm_scmi/Makefile | 1 + drivers/firmware/arm_scmi/imx/Kconfig | 23 + drivers/firmware/arm_scmi/imx/Makefile | 3 + drivers/firmware/arm_scmi/imx/imx-sm-bbm.c | 379 +++++++++ drivers/firmware/arm_scmi/imx/imx-sm-misc.c | 315 ++++++++ drivers/firmware/imx/Kconfig | 11 + drivers/firmware/imx/Makefile | 1 + drivers/firmware/imx/sm-misc.c | 119 +++ drivers/input/keyboard/Kconfig | 11 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/imx-sm-bbm-key.c | 225 ++++++ drivers/rtc/Kconfig | 8 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-imx-sm-bbm.c | 168 ++++ include/linux/firmware/imx/sm.h | 33 + include/linux/scmi_imx_protocol.h | 59 ++ 22 files changed, 2314 insertions(+), 1 deletion(-) --- base-commit: 76db4c64526c5e8ba0f56ad3d890dce8f9b00bbc change-id: 20240405-imx95-bbm-misc-v2-b5e9d24adc42 Best regards,