From patchwork Thu Jul 18 07:41:52 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: 813287 Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013039.outbound.protection.outlook.com [52.101.67.39]) (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 DB3DD7580D; Thu, 18 Jul 2024 07:33:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.39 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721287987; cv=fail; b=tTSTysA4NF1bOyVVwrTWox8UjQ+BEeVcA7Bhndem+xO65KB1nmbQ85oUXuJqkdd229KNt77AFW/Vm8iZPtGNj8nyA3Sa7GUivKJDP6eM404pE9ogiB+mSm7MR3EcvgO54vXcZv4T4Qv1fVtzEZ2Mrznd1700vwHl/n+uFtMhuP0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721287987; c=relaxed/simple; bh=TBvUdxaRTtJ2rOfLPbjcDLhDMxXC0SgBr+8qJdLV/dc=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=Yvf3EcSXBCKBfKHdQVCKDWTEvMvq0LAxzOyNLREHl5l38oOC/K3r53DIEaemQu6uVxQ0LU3+ofdPZ06qGXuPysEc4hpY36HlpnWrD29WTbhsYyyaN01ET1NMMk/a6D2nd/x5DB6/LqI/qTcwHGQ7dSzXxk61B0CcyfFZKOS05Kk= 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=YiGrX7e4; arc=fail smtp.client-ip=52.101.67.39 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="YiGrX7e4" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jDFeuD8N1HYLu2UnVbNCASnMCdldnvOlWmsgpnFkl+/D09099J8aAR3LnASYsXWuJyg/80IwqMZvh+Q5CLwIPlf8Ny4rOaWpmJZ1T3XFCOveV7UOZIZAfUrpimHNgha+yCnfgma0C9ZWbMDcfoDWiSSsMKQduxN6likMq/1dNpDkzfqHVcQHjmG1ExJMRljFUcbtBOBV1FNFatLVBNAKtlWQK8+E1cu100k59I3wQ9cGhni2K6ScosxPkHS3hH6ZhI5MuA6n97fvivApdsw4RzdMfi3XF2dBkyvbUyvkmnNH3Ik6hWKZsAVkRT95SjoUbuR75cdyvOsDBZARIOLStg== 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=IXnfSwcrwDhoap1UnpJx/z48qhgP9KGiN/lXB8//RtY=; b=GfHW00S0gNzkAwkFaTK0OrmXZ1kKvJhbI9ShplA5OzTTWxfde1lb1/wFPU2JFL17SJl9AoLLMYLw14XSZor9sUkBKHMkkU2GEoOLqOWeUVCvepinHq03SKSO0epwhmHsrhB5HhF/ymhkbfrMn4XyMgO42TtihW6b8Mz6e+BsP0N8uMwEoFMNf9YtdSww+qJXwK+RTCu+Tkn32uxIeXE9AX78I43gr5sa5jVdEb8GCk/CHh978wzNFK1NIMf4ujs6sH9ypKlf7Cn3/QCKqroWAVp/kOo1m8XD01CdiwuAbpPDaQZM7CfXrh23PKbQsHZiJzhImX3PwDd5DICA4PmwaA== 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=IXnfSwcrwDhoap1UnpJx/z48qhgP9KGiN/lXB8//RtY=; b=YiGrX7e4+zxQcVB6yhgaotVnOr3vQMgXlF5+ut11MJarhnPxH5eEnaVMfzF1HtjHpJDSUO1XUvoIKC4Dez5lMMZ4oMWZiyD6WZQBkajEFYuHqOodVDTEPWlIo/uruMDm8eLMUuMeY4F6IGN2yVTD3Sjgv0WEpf9FfcDu1WMl4DA= 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 DU4PR04MB10457.eurprd04.prod.outlook.com (2603:10a6:10:561::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16; Thu, 18 Jul 2024 07:33:01 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%4]) with mapi id 15.20.7762.020; Thu, 18 Jul 2024 07:33:01 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v6 0/7] firmware: support i.MX95 SCMI BBM/MISC Extenstion Date: Thu, 18 Jul 2024 15:41:52 +0800 Message-Id: <20240718-imx95-bbm-misc-v2-v6-0-18f008e16e9d@nxp.com> X-B4-Tracking: v=1; b=H4sIAEDHmGYC/33PwQ6CMAwG4FcxOzszSjs2T76H8cDG0B0AwwzBG N7dwgU1xKSXv8n3N32JFPoYkjjuXqIPQ0yxazno/U74W9leg4wVZwEKUKEiGZvRknSukU1MXg4 gHQVbAZaVRxDs7n2o47h0ni+cbzE9uv65nBhg3v5r41HS1t5mRhvSHk7teD/4rhFz15B/+Ay2f M4ec6NKVIWyRn17XD0Bbnlkz6+QtpYqsj+eVq8h2/LE3hkqtauLwni3+mma3pqjfJFwAQAA To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Alexandre Belloni , Dmitry Torokhov Cc: Peng Fan , 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.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721288528; l=7466; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=TBvUdxaRTtJ2rOfLPbjcDLhDMxXC0SgBr+8qJdLV/dc=; b=zZLWEBfzCbPNuzwzAQaTL9xtCktj2BYmyClmX41XxR6VvbbcKz+byu3tjs/qjmP9wFm75Krn4 QqgejhtHT1ODbPp5R+U828j8x2/CCFrAIeBjhfZ9XaXPveU6PmAdwI6 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0046.apcprd02.prod.outlook.com (2603:1096:4:1f5::14) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|DU4PR04MB10457:EE_ X-MS-Office365-Filtering-Correlation-Id: 18efbe6d-db57-4e08-b64d-08dca6fbda6a 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|1800799024|366016|52116014|376014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?FefQwZUHUcWyh/nHewoSLc9dTI+txfp?= =?utf-8?q?yDxUfUYLwX8sRJ5hKogXEcx8d/c3OghKSCiqFB2sw2W+8J9RwsKlO313BP7kpYqcF?= =?utf-8?q?DplGTPCoVo6PgXt4yn31scTzLDk7KyaVgeOwTtj+xoih3HQ9Ql4G36UmIXjzPord2?= =?utf-8?q?Fnm+GHHXqhI1r2alZPMD/OKXQTEj4GCohXTuBkFJ0NUDyhXYzBBYX8uhT72fppF4w?= =?utf-8?q?QMFJH3Vi403liw0Ud3bQrD0XX4E4l9Re0OB8if68IIFR/SPaaaVemtIQqtFDI8/d0?= =?utf-8?q?9qVLgMaoOWj2P/npO24fjw3rnZ2c3H23Ribjxjq6ZVU9PqtID9dRwu/eWmuF5F1+l?= =?utf-8?q?EbgEhJhPD39Qa2eCzj6LGZII4vg0BQg/i2BV+b50VqiXqagqkbHXehmypejRKUzOo?= =?utf-8?q?MN/RJqVSRF4Gf2sSGW7OYdFoG46IRjeKDCaZVJInG625jZB5/tGaNueK/sPbpt+ri?= =?utf-8?q?22DSoF9XPD045Kb++bZwcc0DABzNag7NtRyOf5z3IBGC/wIrGIopdNTJsNpC/DAl2?= =?utf-8?q?Lzyyc6kMti9BlF1xGIK8mo7sSvxVnfkFqP96RjDmucd5bVbA87/0qw3izVU/kau52?= =?utf-8?q?XUN3n1IcePj+cARQcUsxqMfbDOjutSz6rWFjKI2nF1e/at+QeycvbykQmISJusrFF?= =?utf-8?q?1DwG7BBpJePTTQHZV/tVqcp/IBTVJWGn2wuNsmWUIEltotVJLKaFYy7RGN41GZuXc?= =?utf-8?q?depym0JiWWGStXhoxtRh0E9eaXNfUKbThoGo1smkGfhP7+e6ZkLUAt0z49ZbKwZvf?= =?utf-8?q?6qRBlXlw4c28C0YfnGuZf9oO/tOIBrVQvl90kkVgJPxIFP0ybPnlavXdY8A1Lf3Ro?= =?utf-8?q?FU3WOIrNjH6vGMVk1hIdDSxR80n3rewjrl5IdLtf6gAdYjXQGnRAYyfuCC2NMvMdB?= =?utf-8?q?31355uGnNQWlKMWm9iVoyaDVvHtDyZKEeRv3YyS5TQVEIP/GGxsr7uYDt3tVqevSs?= =?utf-8?q?5vulY7O1s0bLPNVUjH+49kYkxnvJYzc7RI1czQZYdW5cwe/HA11M/c5+Rl57Bv03B?= =?utf-8?q?ozTU+VDpnc6mT8pWivC2cdUby6MOl//9e5a9jKfOATJrEu4eV7u4RmG1eeVVUfJtT?= =?utf-8?q?npzYW5WocLXLMJ85CVg2FD2FEhT3qhEBlYZIOgUC7lwIMPgpIohCo+3XjnzLO6QSd?= =?utf-8?q?53gJ7xaMx0mx76Yh5yQYfZFF7zn3qj8xxCtliEZMcsk+tE720DlEwws50yivha59M?= =?utf-8?q?CnB5pIREBPHpxFquzacpCfzoMH6YKy1eDHJlK+iNKIe6GKyOPdq8oEMw0IJJ4IPyC?= =?utf-8?q?LJSqIBJu/+nQAnL+KzLCTuFUh0NKBeMhIxKLGyGm+qB+EMnxp6g5y/vt9bU1mswOi?= =?utf-8?q?5f9WlwO2QHce?= 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)(1800799024)(366016)(52116014)(376014)(7416014)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?aISYf0ZP7eSD8O8y3g+DNKWgVI4t?= =?utf-8?q?ukcCR9L0bAa3mRW5LrfRi+KhAVmGGIee3QwSsX5zXvp2shbxfqNf0lyFLvGHMcul4?= =?utf-8?q?e1M9EO8YlMnrM54t/QXQpv14c9nFaG1LWmrldXUZ+JrC+mYAJqfAfyVAlf8baJQ8/?= =?utf-8?q?YuEqB0tDl2tHZuhKMqQ1p2w01MtxZ8uzsu9MImKwDZX9oNrz6GwV/elMUZN3tLz+z?= =?utf-8?q?PqfpGzh3yy+EeDA3Oi4YZNjcbT9oIw8iFHG+RdUptNVmJZVKQamELCVCb5317V07k?= =?utf-8?q?e19V9rXsmvD03ita1H0sLScIVpG9jAoEasrQ+pm0b4GzxVchxgyhpJ4UEAjPX3SGH?= =?utf-8?q?WCSgorYFf6koDoTEKi0rBu0DzJf6a0aKaeIc1KLD+uQEPdHUbtss+nvO1Gq/koEjS?= =?utf-8?q?LtkMoNQ3+5gLYFtf1/sbvejqT1SbW0S8EFIErygOSh51c2Da6zgu5U16S3x5qRP9z?= =?utf-8?q?gZq0ZcU2PcP7ttXLSl2cLOVKrc5qNDqLQ/4KEHAJAcz2A17kQtHKliCE8QeuhMJV4?= =?utf-8?q?VCvCxcC2fmQyTlBR2ZvtZHlX8QHseCHU+j56+H3b+Gfwf49weoUD+bHrXVmfphgP/?= =?utf-8?q?+C2T+pLIByuXwmyZH0eSJ6ahGHN1qZXFWFzP3NACykZ4qkUrfWFkh6+d+dZwo5rRR?= =?utf-8?q?+9q/gf1Q44QgtkkPIyGVJqVrQ3NB/Av0IA/4r/z0ZYCWDSSem5D3en8Z1GJr80Ifq?= =?utf-8?q?XiABQH6WHpgADxeAMeB2qoVkdzdXKJx8NQ2DpEq8kRU6YgrCp96EvMqCXPFqfNx2w?= =?utf-8?q?l8gZSPcPOfN1PqlBUO4C+132cPt5yxF2r+b3TPuCY8Z+lrdeNJtZXk+t5gp93telK?= =?utf-8?q?thw1leGlHi2OPOlOpmxtib446kBFfoKDr7c0uVp/LhpR+Gvd9m1BsEpY1nyQ9b5QM?= =?utf-8?q?dAOQQRV22H0W7jwA1ZvIp0wk+0TIbmZIeaY+UKPRjLhKSPix9zfpgSg0K1RZX3LGR?= =?utf-8?q?IdNQx1/MeLi4GUsAAr6ZjRJy85Vqenspe0shBbyEdGIfB5KuolDXg+FYEtX6bF+7W?= =?utf-8?q?/cmEOgb2r62sbeJ5hk1k38Ek9NHIEPO+6H7Eh6OwYIwCHBzSmUg3tcBUWgJDjUDrI?= =?utf-8?q?lN0/LcG6cSoQsp6xJnlFkKOD1ETRHtDDEDKpHwgeEvyp8n+h+BDraZtW8F72D/6vK?= =?utf-8?q?dg23OGsB/R9YALQWdutgxMCuxvFVqWThn9zRyu1ly9MFyoZroGffF043UBQrBukSI?= =?utf-8?q?XdbY6KkGnsoaioN+28YMb+P240ThqVaik0YFzG04e9HBeDLsJdPEzA0st5nV3UODD?= =?utf-8?q?zY8uY1V3wvYJfeN9haPWmikqDxJZG2CEkHueRfyzCR8nP84AD/e+ZDisTpS4R5inA?= =?utf-8?q?4xTa0Sh5kk1sWsKQnFSiS+lbaE6/HGcbByHjrOdflKVmbVKQkBdsVZ5UAwtokW0Ft?= =?utf-8?q?gSXS0DMKu9Q9wRQkOhh+WBGxnscJ6KQduyqpsnCK7/ShuFT22qt9rVHWnDw3/3g9e?= =?utf-8?q?/SkVOas9zb7BGuN66W2Zo+Tl77TxVnUtJ6BtD8y+K57a/Fkf+wbn7rcFfBhtlCXRK?= =?utf-8?q?ovfATp0acmd6?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18efbe6d-db57-4e08-b64d-08dca6fbda6a X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2024 07:33:01.3326 (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: ibL1Mhilr4rII6ifK4JgBUAZguM9x5dgBPLPxBlaUBgr+LIXJPGFT4zZJXXmsEndae7017nq2wHIOzefoY+wcw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10457 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: Sudeep Holla To: Cristian Marussi To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Shawn Guo To: Sascha Hauer To: Pengutronix Kernel Team To: Fabio Estevam To: Peng Fan To: Alexandre Belloni To: Dmitry Torokhov Cc: arm-scmi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: imx@lists.linux.dev Cc: linux-rtc@vger.kernel.org Cc: linux-input@vger.kernel.org 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 | 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/arm_scmi/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 | 236 ++++++ 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, 2298 insertions(+), 1 deletion(-) --- base-commit: 6f051fea82cb6d99f0dc4db6cbe44d64eb066adf change-id: 20240405-imx95-bbm-misc-v2-b5e9d24adc42 Best regards,