From patchwork Fri Aug 23 09:05:16 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: 13774786 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2071.outbound.protection.outlook.com [40.107.21.71]) (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 7BDD11494D6 for ; Fri, 23 Aug 2024 08:56:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724403411; cv=fail; b=cIyZPMCvyZJwLVFZyq6Ar/ey3+NW/73f2FtexYXlpkxqYOKIP9LC+5NVePIfeYbgF9daVUMaRfcvBK3YbqbJaVhINdycDUE4g5xJd3/6XhjGxANJl+8OZVVcO2zR7BdBciwVJd8NJhap6C5URQiBzkZBOEKA82EA3Syy4w8kFP8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724403411; c=relaxed/simple; bh=WB+BNbVE1m3CHeI9JrX6Grss+Ej2vNZ3FOpXMFlfjQQ=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=SGXyHT4+shejX1CoDI2EcggyyJO5KOJUN+m41VDFrP34msTwg0EH/wzzgI79Be84mwjaHyH3DO90/I+l4aig2vfvpSisj31mlOweDtpPliQqng4INqZAKJ6pmA91NJg9/wOqjuaGjyHwxwIs6B+OzLVyM+aEqkn3505acBrTKTI= 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=XMtt+t2y; arc=fail smtp.client-ip=40.107.21.71 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 (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="XMtt+t2y" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cObT+/DLCDuJ9If8f71au86txkGL8g98EAQeaauUXJ0LUiP4U+iQgiN3KK1pbvrcYNKV7hoJedzkJjLHxWAONqh8R1C2GlTmFppKoLU5IIta5jl2oeEhriUEDkFnj3inN85voJxULjOzSflopwNmKWVnv0gScHSK466AMMDXVHT/m3KNagRsTPkuxOadb5UBJaEnNStPz5thIPGDoxgPR11ulMahWoiJUGwdDzKMn/+zzig26OTgDw/IjvICxMX3OcAGJbqbOZJ0zq56kmoDQUY/2nQzBJxy4VsLx85ssD+04M4dZWNopvaz5B5py+/R/oXgrm35yhdY7IwJFwyVZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=1+V10xMLx+TaHeoiETnGwqe7zHLX0pJSrGDnPWaGALY=; b=YhexHpmSyVcke6LH67BU+sc78i2nFapO7ErQYTSfSX3lf4w2OlzVIO3riaIHRT8WESBRgHpVwK/kKfgQhIokZH0KCjjXcJZCyGt/BCumNriIJIplIzuS66RD55yepYAc+JULJnU6lakGRC8AsaflaOOaV3AZmIkDk3ccuxjx+6DaS6BwLytIvQ8mHhRakxU+PyMnmBbG+wUtCjUT8fXbAmUUrsxgbGa7i/TqKw6Rl68QHI3sMc1kJc0M8/x6q0eQsQPYwlLE2+l8vV7s0w3kiGIZ/6nTnUj4mYPJu1hX8NLuQGoB92RFPJG1eyKa7S0j8YJEZWADTmwmduEBgj7+zw== 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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1+V10xMLx+TaHeoiETnGwqe7zHLX0pJSrGDnPWaGALY=; b=XMtt+t2yy7wSVLwcJ/wJqPcIWpllgXnWV5u9nSWDnimoJPHE0NQFfqmPIah3vAhOtNxh4amDUGG8tkqki1gOJh87tYctYTO/e/CoskNzUb0zXYQhmD1i5XS+pAFOLlbbNA7Et6F7GMs2/d8vaPLqFsdyBOMnJKHw7ETzpf9Pd/Blct3iwmEM5v+61pJeVDBu3wUfup85ngdcRUMHysKjafVcrCLRht4+5qImqXpFfvLYROpToqer1rDubN5k/Oxvda6HCA+5ZKkZe8muumyk+NhSR/vA/WvPiAKywNmZ9aJ/Qkf9n/VCgJig5MpVzz2QXScbeq3gr0JNSi+x1/zXwA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by PA1PR04MB10892.eurprd04.prod.outlook.com (2603:10a6:102:488::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.19; Fri, 23 Aug 2024 08:56:45 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7897.014; Fri, 23 Aug 2024 08:56:45 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v8 0/7] firmware: support i.MX95 SCMI BBM/MISC Extenstion Date: Fri, 23 Aug 2024 17:05:16 +0800 Message-Id: <20240823-imx95-bbm-misc-v2-v8-0-e600ed9e9271@nxp.com> X-B4-Tracking: v=1; b=H4sIAMxQyGYC/33QTWrEMAwF4KsMXtdFtiX/dNV7lC5ix+l4kWSIS 0gZcvdqZpOkhII3z/A9Id1FzVPJVbxd7mLKc6llHDj4l4tI12b4yrK0nIUGjYBAsvRLIBljL/t Sk5y1jJRDq7FpE2rB7jblrizPzo9PztdSv8fp5zli1o/f/9r4gQxdCspbTzbp92G5vaaxF4+u2 ey80mfesEfjoUFwEDwcPW6eNJ55ZM+rkA2BWgp/PG3eanXmiX301NjYOedTPHq7eaf8mbfsle8 AfFaWL3v0bufN6XzHvkFlAhpLFnb3W9f1F1HMy9zwAQAA To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Peng Fan , Alexandre Belloni , Dmitry Torokhov Cc: arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-rtc@vger.kernel.org, linux-input@vger.kernel.org X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724403944; l=7300; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=WB+BNbVE1m3CHeI9JrX6Grss+Ej2vNZ3FOpXMFlfjQQ=; b=DJkEKETpgjgjk1xEkqab4fvhTU8HoAsMyZvL0GHX/wS2DegqBPBei+mUtNMaxqbOfQ/zxVmDr H/dZENo2dPQBGE1b/EDv6+p985EqfEelrsjBj9xC85p42cEJEFdS3T5 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR01CA0173.apcprd01.prod.exchangelabs.com (2603:1096:4:28::29) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|PA1PR04MB10892:EE_ X-MS-Office365-Filtering-Correlation-Id: 1198388b-5715-4868-2c26-08dcc35183bf X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|376014|1800799024|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?4ik09if7ACdYU4cbtp50qCO3QmH7T8d?= =?utf-8?q?lQ7f99k+imhHdy5Az1sZ8gcwmrO6b3XR65TNuypuRBLYJ5acgyJ2gj+jwYjXUC812?= =?utf-8?q?owX2tidvwkHxjyTsQtM6ZQXcqzoJYf2adL7P7cYLjqUKLobUvxina5XIp1NocpJ2R?= =?utf-8?q?lfNJFCJdIvck3F3YDrz/Ug0HeB/K2ArdQmMNviVMZZSGeEukBHoHM8bBUO0TQfMPO?= =?utf-8?q?H/mVAfAnR6K/rax8O3q1d9FJ6f/O8qfmL3m4Qw+dYMbYBxUy5B+HNlAcMEFBdpa4l?= =?utf-8?q?i9nkJ5/vVsdO7rkXgtcfLnfBC++krQGaiWNe+PuPJzdj1oolWfY12ppTDI+N9K3uv?= =?utf-8?q?gliP6NWylBcEG206kUlIzJlxiuciSukOZPzJOBJo9B/0UUuF0qawzgalB0EPp1oIQ?= =?utf-8?q?ftNPoISLymjXNYcLU9GqeiPAUfShLTF4FT5dUo0vBxNA+rU1kLp8WmcRQk2vpv6W1?= =?utf-8?q?7E1ZSlFHjpZlr7DmoE4NswIkriMVcU4/RywuMIwGZBfcC1o423oatRCjVLn/FzZmM?= =?utf-8?q?ycBY0hFNuuHEF8g/ot+y6dCWEi02+uvKIXI4WgiIRu8Ai0WS/4XZxqYG2uCV6GlKC?= =?utf-8?q?FuBJ4bWQb7y6+7cs5cgchsAlW2HLbfIhi6hLnP8UDzKAwafxt/69EkVt6uclQ5WOJ?= =?utf-8?q?JA7IU4KFZxjAHO3iTzDIwMQ21/YQGpwKwq958zda0bHI3h1RmWd+FvoqiGbDNvZik?= =?utf-8?q?Iak9M+eND/VH8hqaJBa+QRGl23FNlnUWFmJRnO/qZv9QE8syZcYM5FtEr57ZH9xjl?= =?utf-8?q?Ma8MNZ/n4eGspr/Pay98LNp6n4eMrNfDe+3ERa8dHEx88fWRRuaXX63w8rYT9Nhdx?= =?utf-8?q?FW5QCbBXnzDMesVVqO1X3uJ6BW2hALkb6apWLyRZX831EV2WaCQ+6h0Yt7ral4DkB?= =?utf-8?q?pfkntuf78P4JHleIHwtn88yTy17gWQCG+Th2tLvdbKHK5zm3hKgAO6BMn45qkSLOQ?= =?utf-8?q?eR7lEhD/ZNYmbtBxBCRKtekPlQwZif+Elg8gfoKXVaXoXMMYTZnE9jZ5hF4cXRSdu?= =?utf-8?q?fRLmtkugdl7tNJot87+cpqEKHu8aa0+Og7/COacUc/+BTGOGXpR2m4Q1RJXZY1ALz?= =?utf-8?q?3hleJO8kt00mtgkQUQRH6R16cl/2V6eG7K52bEL7WP19FkB0x1kSKtiYYpMN5SCIc?= =?utf-8?q?WG6LY0zY6hJ6SYex/nAK4UprpHIFG4/kLFfT/ZEvlotLGlgjvrEBbmvc4qvVc9gZY?= =?utf-8?q?+KSVMnNFuYTxU9BHNzzqZTa9qECNSdVGRJ780YwlZi7FySFASlDHF265U2yjHee5d?= =?utf-8?q?3oIbeI7t7/apNuuN10nEUzsfBVAKauadrIpLIX7HlcR7A31Gcn62zf4kssDcfMtw6?= =?utf-8?q?TrP89w15P1Wh?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(376014)(1800799024)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?sK0syJyb2V9P7CX9k0x5Gq2R7GmV?= =?utf-8?q?OcVEIPiEU54yCi666id38U6j4zUSi8cOBrDLu8kvbVUMXZ6x+vbTy18/T2HPLVVdL?= =?utf-8?q?c7t0bKfDgYdMap3tJqm/nq2wq9cFVYXqkgyavnaAEg/hCMI44DTCirIpjdNLGkw5J?= =?utf-8?q?bByLysbv3s1paOlwKeeyUwcKjhtPZN//w7u6ODj3hsEtuHPyxKmIdD4+tYRiKN/jp?= =?utf-8?q?m1oLQLUVnsDu0SxOo9N53kTrKPnbBK3LIM6HUdCfCBD7ZXU0JEyvyfkHHVqiQ+4A4?= =?utf-8?q?Si5AlRyzJipzvGkbHZC3ovl1g+N/FEpPOjT/VE3R1k064dxyvs8sV9Ca/fEd5J7HI?= =?utf-8?q?2NRPZa7LNecrjY8PBfRggE07UhKHNiYpg6CVnEzRzpyrCFhi/bf0GvszUu7tDht8i?= =?utf-8?q?3zM+iJ5GufsHmE5Hw2nSFaosXf1H2raBwZb4S1iQmxZVsIw9dwxpxdVqTsqlNbZ6L?= =?utf-8?q?iyfqLFQ7Bvd+DJgzZ3riRCxdAnTEOooqrX3lh1pZJjidytgzZ3C7agtrUm6hkk5M+?= =?utf-8?q?bO7aV8iPXPpofmpbA/Ol5KKPMfsPS9NBJX9V73hljKG3IcfDPqzFrpffXjjsAEVrE?= =?utf-8?q?9uI75okixOZW1rxdbYagyhWo4d5E9rE9jM8/faat2WOyPuEG0MWXKrTFSdxKM5uQA?= =?utf-8?q?Yjffv4Vf5wXH3NHgnpVk15OAPSiK3m0iEoWsLkE+Wr+pUS8lJwAulVcP3aJ0lZ3cW?= =?utf-8?q?w2d7vtRgQ6wFoer5vHmob29If54ycQYrNU6El1PnlAKh2pgxhb3/5dh8YTm6ictpx?= =?utf-8?q?N7QrHmcWQ3PidNNVfIaniSM4D1Uq/E3Yi6YS9R5uiAu6+6g+tYMrH9T/ATx2EesA4?= =?utf-8?q?Xwb4P1KNg0xfo7QVGECrxxoMFp0lFkrTv4cj868V5zTtrCPBH/XUUEwN0xchpVkDG?= =?utf-8?q?ssmbXmxcauqEpE3N3eqivp68+T3dUT2ski92Z0lj1nKvYiqWgt8Hx4+AjrIbeEL73?= =?utf-8?q?mSYm3lWCW0uOid9uiptdyT6alwLtGBNgEh9kMg+rbTcR8VbPMXnGBYYTIafv8qYn4?= =?utf-8?q?kFNgG+8bep/VmxOvEGj5tNZONqtmkP9n5fdQUR72a0fEt/63xhDy5UGeFPDENUn0d?= =?utf-8?q?4Hf9ZSsk45zavwHhEEBasgyY7+PG2YO9H3dTE6JETX5DB1RFMk28BcZPPw2ph0hYC?= =?utf-8?q?0P4hTSnk/LgzgRjmamv/t2gOlu+o/45SMlFNXDLgoKbkdujw22j1uY9A5U7iQ9OFW?= =?utf-8?q?Fwr6rPE8UcZroqWEooMVHY8AKaG0n7K1OlMU17UL4wGeqFXnCjlxF/OhKcsq9jl1t?= =?utf-8?q?uOhBILo5Ew1aB0JzAmnDPhhHZGElIzTIR8MJBNhUDoRigk6r9w++zXFPzqLLaOZ2c?= =?utf-8?q?JdLsX3DVqMQkjWlSpDvp7DTyz2JuPZ17QjKXLtn42LdopDhn97uc/qIwwxCqlhif3?= =?utf-8?q?An57G9JhBebB/XKTy/H9KHf552ISNS48r7tKEb/APoEvQATjWO3MGnyQDuLs0ZG8k?= =?utf-8?q?4dcEu+Gkuc+iEpxbf8UJ37QLaXAzP/Mho6fxzMgW5T8XRJkTFqKymRQvZuRcIwItX?= =?utf-8?q?HDmIVcJA7dNV?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1198388b-5715-4868-2c26-08dcc35183bf X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2024 08:56:45.2657 (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: G+5ZQp1v6XslB179HWcPCH/ZBqQIOdLzt25b52X4/QhVVn9DbZTy0q18oTbYpytUytVLOPsuYQlQ4UKmnuAJJg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10892 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 Changes in v8: - Rebased to next-20240823 with resolving the conflicts in drivers/firmware/arm_scmi/Makefile - Moved the i.MX protocols under drivers/firmware/arm_scmi/vendors/imx/ Since no code changes, I still keep the R-b in patch [2,3,4]. - Add A-b in patch 7 with dropping uneeded code (Dmitry) - Link to v7: https://lore.kernel.org/r/20240731-imx95-bbm-misc-v2-v7-0-a41394365602@nxp.com Changes in v7: - Just correct R-b tag from Rob to drop quotes "", and rebased - Link to v6: https://lore.kernel.org/r/20240718-imx95-bbm-misc-v2-v6-0-18f008e16e9d@nxp.com Changes in v6: - Add R-b from Cristian for patch 2,3,4,5,6 - Add a new function parameter 'bool enable' to rtc_alarm_set in patch 2 - Drop dev_err per RTC maintainer, move devm_rtc_register to function end in patch 6 - Address Cristian's comment to documentation. Also moved the documentation to patch 3, which adds the imx.rst under drivers/firmware/arm_scmi/imx - Add remove hook to cancel_delayed_work_sync in patch 7 - Link to v5: https://lore.kernel.org/r/20240621-imx95-bbm-misc-v2-v5-0-b85a6bf778cb@nxp.com 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): 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: arm_scmi: add NXP i.MX95 SCMI documentation 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 + drivers/firmware/arm_scmi/Kconfig | 1 + drivers/firmware/arm_scmi/Makefile | 1 + drivers/firmware/arm_scmi/vendors/imx/Kconfig | 23 + drivers/firmware/arm_scmi/vendors/imx/Makefile | 3 + drivers/firmware/arm_scmi/vendors/imx/imx-sm-bbm.c | 379 +++++++++ .../firmware/arm_scmi/vendors/imx/imx-sm-misc.c | 315 ++++++++ drivers/firmware/arm_scmi/vendors/imx/imx95.rst | 886 +++++++++++++++++++++ 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 | 162 ++++ include/linux/firmware/imx/sm.h | 33 + include/linux/scmi_imx_protocol.h | 59 ++ 20 files changed, 2286 insertions(+), 1 deletion(-) --- base-commit: 657343ca601320308bfaea5dffbb6dc566e3b017 change-id: 20240405-imx95-bbm-misc-v2-b5e9d24adc42 Best regards,