From patchwork Thu Apr 18 01:32:27 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: 13634049 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 AC78EC001CC for ; Thu, 18 Apr 2024 01:25:06 +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: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=RGEvt4VHeXCqytF7Afs7LksS9tCrdZOBtjoELlpr110=; b=MHlwMAjfDKgGtj WQnNsOBjK7RB4jY2haEPeL89oopWU+rR906sClslaVnTZqvQHniHtAIVNhqP5sqv2+43SmQ/01plJ +UCbc3Kt2fQcuNc3VW7Xl2gjYswUJH6q8j7KFNVKxkqUEm5jKYhdAR5Q+Gz9d1vIcfaGOe5p3CMzD Y4jJy9BNxWYJVOKdBjBUY6HyjQZcYcsQlvBh077iczwBaS0e7IuNNJFbHp00euyuudiVVl4KtpsSy YN+lfDCh7PCNi5yoq19xXYcSemSGJS6SpMcjKIhyuSXdZBl3sjzCqO0EDl64jm423WcAcAxI4OHOv JBlug9D+BwpFhOD0rAow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxGW9-00000000YVA-2uV1; Thu, 18 Apr 2024 01:24:49 +0000 Received: from mail-db8eur05on2062e.outbound.protection.outlook.com ([2a01:111:f400:7e1a::62e] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxGW6-00000000YTd-3A0Z for linux-arm-kernel@lists.infradead.org; Thu, 18 Apr 2024 01:24:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i48oqdfMqPUH4kV8wE3r2e4+QNYCqBsFNp3ZsPZ6N4qmSJIy5vqU/HxaJaVVbWGWlZrItoNQG6aZ1HGKELrBfAe73F/OOdMdVuDI7zVsU+4xdp+/xCONMv7rwSrq6x91iY0FeiK4gCzdMvK5MPEcd/qhuFeAJwGJzNBLU5O9O3PLH7TZWf0xMO2ynYFb1HrUJPnNwjixHfTJSO27tZN8t6811TU+4/cwS5+Bq9ADoEcQxniHncOsQgwyamZ6c2o0zDDedpagsO2x3uWt7bp/WShAgAx3LvtiQQHbn7H9S5ZH0A3d5vcNrH0xUAMDzYd3qkoXQvDCQ7wPUYZ2AbEqBg== 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=Gr8Hu/MZcM3cpyVos2BG4Zh4awRnkXAc9ok+ARh//H4=; b=Xl3SObNl1emsYQcsPFvBbmtC0XQqcdppd/hlOB2KXPAYwgnUI1vu4ihIqKXNnLzSfCBtXR51zzQ4U/GoXMSOMfwtPgldNWrey6emFXTb/cRUOcHosMm8FOXffKeomkgvvbD95t249NyS9oir8IJ3F8Eq/Uhe/eLoT+7qXESTqi8AW1LyfDkfHRF2xqt/RQ6h6bJmogOL17qHzyn49zgKkNP9qt4ITKNywhasuxtftDPiOdNfMpdATsGwuzBf1fVe7QMSo5GR4mN7UjKRLof0/xCSguF6N9G8TDlkNP8N6gpS99aRyZdf4eJ/P72b5q0gHjAAkcBSw+bUnwAU7XFe0A== 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=Gr8Hu/MZcM3cpyVos2BG4Zh4awRnkXAc9ok+ARh//H4=; b=jITcc3K6W/x2LcnBdyLE+gF4qEEGBWrstXQfI14ZRHzrFXiTdn33Q03OiiIudniGA10csl0zaXwFYVDcj4AOjWpr4RA7Fv66DZgXobUCOUByAOAA2kvVrBl3XRs6Uswg9SyVp2nsF2mvfGZX0VA6glGotJqwQKN32ASeR0I80Ns= 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 AS1PR04MB9264.eurprd04.prod.outlook.com (2603:10a6:20b:4c4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Thu, 18 Apr 2024 01:24:32 +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.7452.049; Thu, 18 Apr 2024 01:24:31 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v11 0/4] firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support Date: Thu, 18 Apr 2024 09:32:27 +0800 Message-Id: <20240418-pinctrl-scmi-v11-0-499dca9864a7@nxp.com> X-B4-Tracking: v=1; b=H4sIACx4IGYC/3XS22rDMAwG4Fcpvl6GZVk+7GrvMXbhOPJqWJOSl NBR+u5zCiOJyy4l+PTLh5uYeMw8ibfDTYw85ykPfSkAXg4iHkP/xU3uSkMoqRAUUHPOfbyM380 UT7nRkVqJVicdjSjkPHLK18e8j89SH/N0Gcafx/gZlu4/g2ZoZCMTI7E2AMm+99fzaxxOYhkzq z+qJUhdUVVo8G3nTGgpOL2nuKEKKoqFus7rNljfxeD2VK9UKayoLhQkl0S0XtkqlVaKUC9Mhbb gyRomskntqdnQp1SznNV5UhoV2Sj31K60rFxRWyhyIPAdqFjfsNvS+nFcoZSiY0RnoU176jcU6 lS/nNWBRa07DD7sKcitffoTcsn10bAN5Azziu/3+y/ZKhpxvAIAAA== To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Dan Carpenter Cc: Dhruva Gole , Andy Shevchenko , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, Peng Fan , Oleksii Moisieiev , Andy Shevchenko X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713403963; l=8207; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=TRw0dfhK1hayMDFD1zxJgF7iuVtcqnFj8orxVs+mKtE=; b=uZJK7Ww9s8nzzRNRr6wGAV55H7SWDaLJ2Luc5qm2hFX1yatC+PCOorP2Kx1KmjbdMl/8+r0NK xl+TNLoacP9BSBX2FA8FZ6TubsBfrj6xkCMMB3bp177o/O03V9cAjav X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR03CA0116.apcprd03.prod.outlook.com (2603:1096:4:91::20) 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_|AS1PR04MB9264:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b7b917e-2f17-4e3f-9d28-08dc5f464c4a 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: XxbDiEOmzqyF+K7sgmzzO6t9Va6vSArt6WW82n9bFu/x30zrsP49rTQ0C2Kt1pJT7cpEDndvjOZEl3RRDIZ611EcfFVEiY9IXSF//R5Bx5zYxgWk5yELjnpEIGAmKh7Oz296xvhqL6LmiRNCQYQISpbSHr4ZczNhg6U6gwgPWKqut3wiy3HfVqosyCCpGg3LH5mzazBwZWt3ZRSR2F76phaYGZtwb7RIZDRXweNM+zEsl60eSXgOm4G9gCr+VFpXNDFrfNFWtK5ZA8x8sAyrtoHKDEmcT6pN11/LUthDo5Z+tIk5nJP8pAX3qC590T3up3/kkgHcQGBH0vC+78m5KX9y2wYuexMryjWB29cjoupKV6mOQmQqedej3DS7RhfJcJDj/znCJivFeezoQR6ysjQlzyv0rjkGMcLosVWvIZoVuonVZcyOtau1qP0S9Gmgme7DePQII2jD+RU5wHjo8K8/U2Q525cgpDdHjr2H1nfhaw1mlMkiA1EiADj9eJzSM4claH+1mzg81uMMEYFduul2BNbZPtkKxOU4mmMtSdsK07J8UCAuIvVIimp2OGf+nrZFLX1ytyMuJhO5WkWdXyCb5OFVdR2YLq/0t1WyaCauEBuAXrp1WHdksd6XfFFQIRGqbyKs6ZOSjzPU7o/3pwCFWJnwKmXinjQ2mQtYew0= 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)(52116005)(366007)(1800799015)(376005)(7416005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?z+IcmEKvbNmwnbwqsqw6WwvXPk2A?= =?utf-8?q?rnWC/KSNroe/evC49v6k608Zfnb/rFceMQotgCPLbgM+FrKSWdeBuHpo+Px26UkGg?= =?utf-8?q?PsdcOCz8bPMmq+ld8/gZqMpLMCg0vfgTksTJO3NxFpBFfW/SpWgc7AHSyAZbVHKED?= =?utf-8?q?mqtqSlYHXbSzhZ8d1TBTSdvLjPopc4MY6SZRAkeDqncjjHVRI4BhXOb4Ctgsj1T4j?= =?utf-8?q?UHzPZb/Xx7NlKdXKoifnHjkQ9cOgib1XtTQAXKcjw0sT4ztDyg+0pEExoxXj0HUGe?= =?utf-8?q?mmcChB6dXyB9JFV+dkZR/RyXlgWwofBErNpJwKbZVZd5icXUUSIQy1rjvMelhPfX/?= =?utf-8?q?/bg8RCcLzzQPNy17n+LgjvJ6at3qbH6Caip6PL8qB0kOhAH4CeYBmdbta2rce3Ttu?= =?utf-8?q?Y4wHjro7WghW+AphMA9IJYgq8MP9SU0nG9LvSCT8YhgulQUBrEa4LN4anbIhCCFgh?= =?utf-8?q?aPPAasyuo0+HRlrsYwk4BC7VDQfrtVNUg8fZPWrA5VMfz19ah0eznyUIDxKRPARPb?= =?utf-8?q?l2cmWEbK1gKzNqkUZ0FlML3Uk9UL/W43hwfFDdwNJBO5cLuMJqaKM3Fq1uPMKLauo?= =?utf-8?q?j+mkaCppfxWKMVh7zVkoHl3cVX4b51xwfKlRHlxKauqi32AQFplUDtkDcePIzWjJu?= =?utf-8?q?gChKPT0QqfCMzCpBg3OGbyFVqv/mtnoxnr/xhk9orus24OrWcSaP/bBAXNV7Y4N+w?= =?utf-8?q?NhIIF59PawqIbXgxKXbNcbyzWoVR6WVRPWQHMqFAjlWg8cVXOhSNslMqrXPBjveHb?= =?utf-8?q?8gQaHK3AyXTKilv09nq8LPyueiWgxhZB+KU/EtDilzX5hhPXPQ5tw+P8H5dzbOwy5?= =?utf-8?q?H0gtE8JjqpMTWBb3m0OplrzzQMtb0DX7ScRawv4zUAL3TuT3u/O0osWO3WR+f4Aex?= =?utf-8?q?pgodWJQeyTPuIbwJZHGwogfwGjeQCwgxeq8Hwojoyi8tn+73Xwrghos1+BmkrecXo?= =?utf-8?q?TiQX6LTrNjIx8BFYAMUgmC3A34WP4ZrECHBhR5k8TBeCCpsbkH6MGAVlBnVF3BZIo?= =?utf-8?q?nRkSOkINCz8X3uzIbaRfh0aw45YoDOKnQwzGVn9AzZvCBKqzearC0y2c/nLe4Jc1Z?= =?utf-8?q?azsWszESwqXlYxdV+gconCTJvzAnYMf1DHWA2Oc7ajHLH6p+iGHsIL6Aa+AMHXGrL?= =?utf-8?q?Mn6jZRbazyvdKYOWvcFm0WB+lfleCsQOwRLGoJuLntQ+N+z+KT5f2YuNcd6AEg5Nd?= =?utf-8?q?p4PJpCTEOmbSKh4Xj4JpyrmvWmhppL1Q5ykjAtilMTM4sMslxoUbWnjLmIShSDvvy?= =?utf-8?q?nKhOzd69NyN+DYGo92vWgB8PZlNO6vzA7pNvAhp4T1IibxGsKeiS8ln9HkgEjl3bz?= =?utf-8?q?WxLy+V1R84OnQ0saxiiPhxidGYY20mJEpEmrydCNFETXE2m0W+my1lfWfZ33IGMHg?= =?utf-8?q?aKNcv6jS/QjpgpbujBCI8E2GEkEeBAftOtyjOHVocrjpWPcOWUykeAYdCbt+1N7oG?= =?utf-8?q?SVCYMAjW9TGOLiSApq4ToVpjC1G2cge8YVr/Mkz2MUznzcLMxG2UvW/mJj8VgIbyM?= =?utf-8?q?LAD+OXbEXlJS?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b7b917e-2f17-4e3f-9d28-08dc5f464c4a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2024 01:24:31.6751 (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: C/bzHGrZn0repgqxzSJuGrAiQvnOPk6ajfOoM1u327iNpYn/a3FdoxHNBgyQ7hQWTiw7gMdeQ05c9bOG3UJHQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9264 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240417_182446_971274_1258737A X-CRM114-Status: GOOD ( 19.37 ) 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 Per Sudeep's reply in v10, "This series looks good overall. Since it has pinctrl driver, I need Linus to ack/agree to pick the whole series up or I can ack them so that Linus can take the whole series. Either way it is fine for me." v11 is just minor update per Andy to patch 4 and Andy's R-b applied. Hope v11 is good for you to pick up. Linus, would you ack or this patchset go through your tree? Thanks. This patchset is a rework from Oleksii's RFC v5 patchset https://lore.kernel.org/all/cover.1698353854.git.oleksii_moisieiev@epam.com/ This patchset introduces some changes based on RFC v5: - introduce helper get_max_msg_size - support compatible string - iterate the id_table - Support multiple configs in one command - Added i.MX support - Patch 5 firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support is almost same as RFCv5 expect multiple configs support. - Patch 4 the dt-bindings includes compatible string to support i.MX - Rebased on 2023-12-15 linux-next/master If any comments from RFC v5 are missed, I am sorry in advance. This PINCTRL Protocol is following Version 3.2 SCMI Spec Beta release. On ARM-based systems, a separate Cortex-M based System Control Processor (SCP) provides control on pins, as well as with power, clocks, reset controllers. So implement the driver to support such cases. The i.MX95 Example as below: Configuration: The scmi-pinctrl driver can be configured using DT bindings. For example: / { sram0: sram@445b1000 { compatible = "mmio-sram"; reg = <0x0 0x445b1000 0x0 0x400>; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x445b1000 0x400>; scmi_buf0: scmi-sram-section@0 { compatible = "arm,scmi-shmem"; reg = <0x0 0x80>; }; scmi_buf1: scmi-sram-section@80 { compatible = "arm,scmi-shmem"; reg = <0x80 0x80>; }; }; firmware { scmi { compatible = "arm,scmi"; mboxes = <&mu2 5 0>, <&mu2 3 0>, <&mu2 3 1>; shmem = <&scmi_buf0>, <&scmi_buf1>; #address-cells = <1>; #size-cells = <0>; scmi_iomuxc: protocol@19 { compatible = "fsl,imx95-scmi-pinctrl"; reg = <0x19>; }; }; }; }; &scmi_iomuxc { pinctrl_tpm3: tpm3grp { fsl,pins = < IMX95_PAD_GPIO_IO12__TPM3_CH2(0x51e) >; }; }; This patchset has been tested on i.MX95-19x19-EVK board. Signed-off-by: Peng Fan Acked-by: Linus Walleij --- Changes in v11: - Add Andy's R-b in patch 4, with minor updates per Andy's comments - Link to v10: https://lore.kernel.org/r/20240415-pinctrl-scmi-v10-0-59c6e7a586ee@nxp.com Changes in v10: - Convert the SCMI -EOPNOTSUPP to pinctrl expected -ENOTSUPP, see: https://lore.kernel.org/all/CAHp75Vch7TzevZQK4CE_WSVOgUdzODkJXiv0=OuqrmDfgevV+A@mail.gmail.com/ - Link to v9: https://lore.kernel.org/r/20240412-pinctrl-scmi-v9-0-b817344d3a9a@nxp.com Changes in v9: - Rebased to next-20240410 - Because "pinctrl: pinconf-generic: check error value EOPNOTSUPP" was applied, so pinctrl-scmi.c not convert to err return value for 'pinctrl_ops->settings_get_one()'. - Add R-b for patch [1,2,4]/4 from Dhruva Gole - Link to v8: https://lore.kernel.org/r/20240405-pinctrl-scmi-v8-0-5fc8e33871bf@nxp.com Changes in v8: - For the devm_x, I still keep as it is to follow current SCMI style. In future we may follow cleanup.h, but it is not this patchset's goal. - Apply Cristian's change, and add tag - _pin -> pin to drop underscore - Add headers per Andy's comments - Drop casting for func->groups - Minor update for coding style - Link to v7: https://lore.kernel.org/r/20240402-pinctrl-scmi-v7-0-3ea519d12cf7@nxp.com Changes in v7: - Hope I not miss any comments. If any missed, please forgive. Since i.MX95 SCMI firmware not support all the pinctrl features, I could only do limited test. - Version set to 0x10000 - Drop scmi_msg_func_set - Use get_all to replace flag[0,1], not support flag 2 as of now. - Add settings_get_one and settings_get_all ops to support get_all[false, true] - PINCTRL_SET_PERMISSIONS is not included in this patchset - Bail out if nr_pins is 0 - Add check nr_functions and nr_groups if they are 0. - ext_name_flag changed to bool type - Drop unrelated comment - Use a central function for pin request and free - Coding style optimization - Use pinfunction to replace scmi_pinctrl_funcs - For the devm_x APIs comments from Andy, I not update in the x/arm_scmi/pinctrl.c, because it is correct usage. - For included headers, I keep not change. I try to follow 80 max chars for scmi driver, but with a few lines still exceed. - Link to v6: https://lore.kernel.org/r/20240323-pinctrl-scmi-v6-0-a895243257c0@nxp.com Changes in v6: - Update pinctrl driver following ARM SCMI 3.2 public release - Addressed Dan's comments, and followed Dan's suggestions, thanks. - Dropped R-b/T-b in patch 3/4 and patch 4/4, - Link to v5: https://lore.kernel.org/r/20240314-pinctrl-scmi-v5-0-b19576e557f2@nxp.com Changes in v5: - Rebased to linux-next next-20240313 - Link to v4: https://lore.kernel.org/r/20240223-pinctrl-scmi-v4-0-10eb5a379274@nxp.com Changes in v4: - Rebased to next-20240222 - Drop pinctrl-scmi-imx and compatible patches in V3 - Add T-b and R-b collected from v3 - Link to v3: https://lore.kernel.org/r/20240121-pinctrl-scmi-v3-0-8d94ba79dca8@nxp.com Changes in v3: - Add R-b for dt-binding patch - Use 80 chars per line to align with other scmi drivers - Add pinctrl_scmi_alloc_configs pinctrl_scmi_free_configs to replace driver global config_value and config_type array to avoid in parrell access issue. When num_configs is larger than 4, use alloc, else use stack. - Drop the separate MAITAINERS entry for firmware scmi pinctrl - Use enum type, not u8 when referring the scmi or generic pin conf type - Drop scmi_pinctrl_config_get_all which is not used at all for now. - Update copyright year to 2024 - Move the enum scmi_pinctrl_conf_type above pinctrl_proto_ops for consistency - Link to v2: https://lore.kernel.org/r/20240104-pinctrl-scmi-v2-0-a9bd86ab5a84@nxp.com Changes in v2: Added comments, and added R-b for Patch 1 Moved the compatile string and i.MX patch to the end, marked NOT APPLY Patchset based on lore.kernel.org/all/20231221151129.325749-1-cristian.marussi@arm.com/ Addressed the binding doc issue, dropped i.MX content. For the firmware pinctrl scmi driver, addressed the comments from Cristian For the pinctrl scmi driver, addressed comments from Cristian For the i.MX95 OEM stuff, I not have good idea, expect using compatbile string. Maybe the firmware public an protocol attribute to indicate it is VENDOR stuff or NXP use a new protocol id, not 0x19. But I think current pinctrl-scmi.c not able to support OEM config, should we extend it with some method? Anyway if patch 1-4 is good enough, they could be picked up first. Since I am only able to test the patch on i.MX95 which not support geneirc pinconf, only OEM configs are tested in my side. --- Peng Fan (4): firmware: arm_scmi: introduce helper get_max_msg_size dt-bindings: firmware: arm,scmi: support pinctrl protocol firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support pinctrl: Implementation of the generic scmi-pinctrl driver .../devicetree/bindings/firmware/arm,scmi.yaml | 50 ++ MAINTAINERS | 1 + drivers/firmware/arm_scmi/Makefile | 3 +- drivers/firmware/arm_scmi/driver.c | 17 + drivers/firmware/arm_scmi/pinctrl.c | 916 +++++++++++++++++++++ drivers/firmware/arm_scmi/protocols.h | 3 + drivers/pinctrl/Kconfig | 11 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-scmi.c | 571 +++++++++++++ include/linux/scmi_protocol.h | 84 ++ 10 files changed, 1656 insertions(+), 1 deletion(-) --- base-commit: ec3243f13db334437b5ce253be2fb23bcf35b490 change-id: 20231215-pinctrl-scmi-4c5b0374f4c6 Best regards,