From patchwork Fri Apr 5 12:39:22 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: 13619008 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2136.outbound.protection.outlook.com [40.107.20.136]) (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 C6E2216C877 for ; Fri, 5 Apr 2024 12:31:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.136 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712320302; cv=fail; b=q8eC/0elqg+B0kQcgNPnObwDPbDlNiJnm9lNrt5ixKWAkpvnKlH+FAz5C4eqdljJwHMFd0g/U2DUAJxA4cxIorqkijBIKGqeujrL2xytNwjMmVckTVTyLloCfbfEGof2cda6Ek/AZ/7AGrtMM5rTGrxmgc0V7hqawyzOCi9CAaU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712320302; c=relaxed/simple; bh=dOBkgjs/jb/HONnQGf/3KjMH4BWduYVwov2hTsuR/Og=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=eGCNWuAacqlEU+p9Bdc44pfv5FFm+J2NiTxQ0PpEZ5BN/LkYJGjjiJdhWVoqIK+RcQ3VXW8ayqvFH5ZvClr14K8iPSd9EDkBQ67x/3Xo7+YskRB3km/H2Ofvo7LB8Os+VCuJI/3T5NZxSICqvDT1GiZZd02aBsVIlXkv4Kw2TxM= 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=L8K6jwbQ; arc=fail smtp.client-ip=40.107.20.136 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="L8K6jwbQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M0lrr1pSjw/mx2qSRX0dqvgJSxtacwifQgnLjkDAalYZJu5BW1FchtvMLg7LGrB17bwGKBxbFJsv1L7qrShNjGnz2Lediqv1wbCx3Vj7cjNvpOHoP4sXGVQzk640tOtu8HcEe9YXpr/Acf0Fhr2p7Lqhnp34KmSmnLPjlTVqRnImWS0MAPNnq6BK/6jMkgtq131oMsx0pdH3pckDKMiZk9r1gqmX1U3/kcnfoXaiAlAIDlxgOcVApT/4b+8BjUwFPl00Q2rEeMgjhkNuHgZkrLRGgCCPaRepz6WzMIE6O3/omkralD336VU22rM00TXf6BBLSVWdHcPbUMnK7qAXog== 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=f7r/QbCh6yxfaNa2Ama41YWrsrix2m0n5/CpYxO2YqQ=; b=HuJ0iB+LVRlE+MD8YaFJRIDvzZCpb+mUJ2lMaI9kG5VVB/JExe2LmC90xA28Px4VSr5DT9AsGcLblFfcOHaYw42dSVqQ/B6K/CU+VF1ZxCUxTpVCg/NNkd9gvGmL6h7hgQ/fHJtdabpXQwQNvSymoEHTFPxUVU6S7AI3YCgsGltSz/Y5pvQu9MVLLL/rHewNZGWs0FydxbT7SpjbtnFIdF4v1S3CjaVHjAOhgdeYvihjFJ6MkKCgp6Xgs8KQZzRh7hBYSSpNkv7m0M0ysL8+XthwuRyAeh+AqbUy/wotZN2NBCa1RwRes00VIMQUj+1Yel1Dl2b5H//sJk5JhMQf4Q== 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=f7r/QbCh6yxfaNa2Ama41YWrsrix2m0n5/CpYxO2YqQ=; b=L8K6jwbQa1KuR3d2P8fTnLo8UFHonHf3/0eHLB7lRcEqcETbCCSSCPqa0Vbg2CLieb4KVVqq+tRH3Wmq3fEmCyQRfyUk01coWTZ3NZlj5mtDncBnGcsaZfNPqTAjjJxpvEboHLLw7R7zWH7Ridh+WvJCyynmjnr/iC96q3Gy1i0= Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PA4PR04MB7744.eurprd04.prod.outlook.com (2603:10a6:102:c9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Fri, 5 Apr 2024 12:31:37 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7386.037; Fri, 5 Apr 2024 12:31:37 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v2 0/6] firmware: support i.MX95 SCMI BBM/MISC Extenstion Date: Fri, 05 Apr 2024 20:39:22 +0800 Message-Id: <20240405-imx95-bbm-misc-v2-v2-0-9fc9186856c2@nxp.com> X-B4-Tracking: v=1; b=H4sIAPrwD2YC/x3MTQqAIBBA4avIrBuQQRd2lWjhz1Sz0EJBgujuS ctv8d4Djatwg1k9ULlLk7MM0KQgHr7sjJKGgTQZbbRFybezGELGLC1iJwyWXSLjUzQEo7sqb3L /z2V93w8VX8hQYwAAAA== To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Sudeep Holla , Cristian Marussi Cc: Peng Fan , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1712320792; l=2568; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=dOBkgjs/jb/HONnQGf/3KjMH4BWduYVwov2hTsuR/Og=; b=TK8qY4ZqbMBehn5Ahf1xeSB9pvdYdp1Gbudq3FAA1jfADeGIzYrFTCr9xomhCaxg7YxvlWo2Z FVkfnEATm/aD/v8rZJpjsp/pwap3G8WV/tiFhQRWF7f3jp/1DGdU9// X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0024.apcprd02.prod.outlook.com (2603:1096:4:1f4::12) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) 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: DU0PR04MB9417:EE_|PA4PR04MB7744:EE_ 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: pdif9JdbFNt70bh7vLKKQMBVjM3GJ9503/0mc+FBl3/6lhOt8wGcY2kkML07GrJyk17OQ6k8VT77LIbWMc7sneYHcaacLCMcAvrMFodUDn+q6p0fTpM81ouLy9JmZ35FLwtqJfTnhC01my2NqrKJjBbCbGPA6r/dUR0DfTnyxAr/is+i+n0p8HB4qlNcUHFWOuKEkELFjFHE1aYd9Xu6MkdnLFMUck8BQCxbfaHn3mdTbb2cXIzQqgYyGjq8o7dP0ituP0ajGT9x4mZfDq+eUzESWFt8z3C284Kt4JBETMioqXK7sbTuv3OxG6XkMwTK1zWebWxpDpRvJuQ/qYgB9+NZ7EE4NC7jlpaMjxWb/X2g2IRYfHgREqAMOVe2TC4SJn19+5jDK9N/lVhlUdKjawXXgij+oySkF0DoltyXfX7qm7vJ5aAwyS/0EUR5Qc/xaDaNSV3Zel/X8tu7PCXB6/m5q9TE42oNqmsXTLRv3xeK4AU/UapYEWGIaGjI5grXm2HjH2EuMBMacX8831xJkNHA4jrVVtlI4rkHoKjevtHB8/zFq87yO2Q2+4nwhEBUI9sh2AYnRuWKUeFPS/OWRVQnJ6EA7UWPHycGbmfrGTtAR5ZFF2nm0iBfhVCKemT6Dv7V0gilg//6QmgsdUGe9aRIC2heJ6pHYinkGYXO7t0= 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)(376005)(7416005)(1800799015)(52116005)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?IIH1D019MAa0hL8IxdpoAoqxTvDJ?= =?utf-8?q?OF3HSvuCFqNKXsTQyFrSL5kEssDPQa6hG7D42K6Xv35ry8Z1VuBQmkrEPXu9uvbrq?= =?utf-8?q?zJooNhmXKwkGMHf9FFIuL/KtoH5OUx+05vZd0z8Q7OebMAmNrYZbwdj06X4bF+uMb?= =?utf-8?q?WLMaHij9npoiws2LBhkCZb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CTR1HFsbIZmCx65zBgEAOdaiJSPhH?= =?utf-8?q?DjitUddo5d8EuKyxs8fGeu97QiCa+/MXNZ3nBxoCZD3+ed9H4ydxbw7wzL0aaSuRD?= =?utf-8?q?1FXd5eZvDtGFqe5mEeBFdcTqJlzYbq3B2a54oDlzWloR4fF0ink+ookZUfDNDxrVM?= =?utf-8?q?F46nfj6cXBh/Zk2lUW73UYvDGLX9+g0TagrhIL+xkcq+U5aIWaDpNiNveWplCkuu3?= =?utf-8?q?tb2hrH/JkkZD+rRe/XHhQ85J5EkykMcfdEYddDqv3EpnaYeAclHWk7Q2zIgjk5wta?= =?utf-8?q?DqlfSZCzdTHQD/QbFrHuK1baZQZZsBp6FEVqUFixO9I9CmEBb0xQkHbObP9a7pi1W?= =?utf-8?q?Hy2FHTTbm/hrr/kAQ7DjjAsYIpvUg2SyLHbAcDyStL9/FGqLaKtE7+Qpma+Gi6203?= =?utf-8?q?h6iwvEemExVLZcjxXABONFVtVEAKkW5D4RWCn5QM3ALsrIQ9sZke1NRMCvFXJo4M/?= =?utf-8?q?5xeLmE/8vIT3?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c838cc8-4ddc-41c0-cbc7-08dc556c560e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2024 12:31:37.2489 (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: U8RSrtnnEazJlZ5dgBgh3dODl+JY+jJmmYNnCdgi1ZLEClBNVVzAmxt5Q1a0ISIgRORxPQOg59NYfrRlkzCRkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7744 i.MX95 System Manager Firmware support vendor extension protocol: - Battery Backed Module(BBM) Protocol for RTC and BUTTON feature. - MISC Protocol for misc settings, such as BLK CTRL GPR settings, GPIO expander settings. This patchset is to support the two protocols and users that use the protocols. Signed-off-by: Peng Fan 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: Sudeep Holla To: Cristian Marussi Cc: devicetree@vger.kernel.org Cc: imx@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org 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 (6): dt-bindings: firmware: arm,scmi: set additionalProperties to true dt-bindings: firmware: add i.MX 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: support BBM module firmware: imx: add i.MX95 MISC driver .../devicetree/bindings/firmware/arm,scmi.yaml | 2 +- .../devicetree/bindings/firmware/imx,scmi.yaml | 80 +++++ drivers/firmware/arm_scmi/Kconfig | 20 ++ drivers/firmware/arm_scmi/Makefile | 2 + drivers/firmware/arm_scmi/imx-sm-bbm.c | 378 +++++++++++++++++++++ drivers/firmware/arm_scmi/imx-sm-misc.c | 305 +++++++++++++++++ drivers/firmware/imx/Makefile | 2 + drivers/firmware/imx/sm-bbm.c | 317 +++++++++++++++++ drivers/firmware/imx/sm-misc.c | 92 +++++ include/linux/firmware/imx/sm.h | 33 ++ include/linux/scmi_imx_protocol.h | 62 ++++ 11 files changed, 1292 insertions(+), 1 deletion(-) --- base-commit: 2b3d5988ae2cb5cd945ddbc653f0a71706231fdd change-id: 20240405-imx95-bbm-misc-v2-b5e9d24adc42 Best regards,