From patchwork Tue May 21 06:25:56 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: 798258 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2064.outbound.protection.outlook.com [40.107.21.64]) (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 ED9EF225D4; Tue, 21 May 2024 06:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.64 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716272228; cv=fail; b=XotwZ4U1IkCojD+Rbc10GEOcBkmLr69yA/V7x6eD5zBWpmG81o2sXWiyar2PkQ6hzW2W8+/81zvrQOT197mymDQF1+PogjKhEiheIqiDnqpton9BGE2OgOWqEaSyVHOHtjfIA9TgmyuYlFMo8BLzW+yfxy97C+42PFechUDEzT0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716272228; c=relaxed/simple; bh=IdSIu4WSeFnvsYoBfpMvGzM9/rJ16xptCh2VQULDStE=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=LbxjKvF27hxLwVmvyL8ZRBbzdTwCvU7PQvy+n1SZ2enukVnqN6TsMrZApePsqanxzx0955m/0KO9nfMDAT1ti+Ozo5Agxkk3Pd8RK+Qzff1wKKmoEyvYOjuBD/H12RpFNDbvwEzSCPMjJ2iEuuQpntEpn7mPnvwLtpKv7ZXWUWM= 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=I2TxopRi; arc=fail smtp.client-ip=40.107.21.64 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="I2TxopRi" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PDHAxwZKGvSThov19Ymu/k+RqVVx+SLyb8sQ4OkwCaCZT8enymkvvGHrWjcS4qIWxErEbdksQ/OvOvNVETTjsYsJkXCJP8/78gNvZ7hgDAfTzUOtq85WC/HBHLbfWm9ypr2VUwcihrFDlrZBAQDP5eNIpduSkLAxyLzjrTlg1iydt1IAp7qFFjg0P1XjT54z08huY6AumtoiW3raGejmSs7EG/5rPu1XnlBZngKNdnXzqxNc2T7ZAKucI2uBNuMrBpTp7NF5VkUE3cpj5ubHm1MuXHp789vHvc/iyp44KnVsenthjSGqwZ4XVzpxmn0gZ48REwFcn1boloNHA8gmmg== 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=8+R5UT6ywihKU+aH1dbeDMwP1O0X2AP5C4e52JWa8+8=; b=SEEmvpO9oEG04s1d5i5bPeWN97lcb2Ht7q1ngM0bvGtbUspPnybcIRW0Pon2+FEn9mav6MPsh+SKa0fzW7a7Su+NoPlEk+KsqDRDlLZwMVJmip6EcFkyMfkwbKwAnVDXu5f1h+0ETCWVVS/GHGHYD0IIq/mxrOiBZDPI2dPtUuCDyOmgXi771m4+8STnEaQXwJWEPrUjKG/9hdcyyN4o1rwwgWrm2XursHlfVFP+C9b1S5jEhm53zPcUuuugZ9IpceaCa7pm1xMefCtWkZFq1b/53tnfyZ/Q0FWZizrxU4f75uLNOfdOChwcp14/w89wHUoSmdBbTwJz/H9Ip+aW6g== 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=8+R5UT6ywihKU+aH1dbeDMwP1O0X2AP5C4e52JWa8+8=; b=I2TxopRinqWpS7WmhxLq2PpmbBhtvYGXFVgT4p5mMcbMiHzzwW5rKX29FD7IXFrI8hmCDhLMUO0/JfG5N/QArx3kfba4jUxiV4UhoFM6jODQ1Sk8YILgVp6EVyU/KznUmYqVeXNfj6lJzhaUfBhcDETqNNJ7gZetfpV5BH6kvmU= 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 GVXPR04MB10705.eurprd04.prod.outlook.com (2603:10a6:150:223::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36; Tue, 21 May 2024 06:17:02 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::557f:6fcf:a5a7:981c]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::557f:6fcf:a5a7:981c%6]) with mapi id 15.20.7587.035; Tue, 21 May 2024 06:17:02 +0000 From: "Peng Fan (OSS)" Subject: [PATCH 0/3] pinctrl: scmi: support i.MX95 OEM extensions with fsl,pins property Date: Tue, 21 May 2024 14:25:56 +0800 Message-Id: <20240521-pinctrl-scmi-imx95-v1-0-9a1175d735fd@nxp.com> X-B4-Tracking: v=1; b=H4sIAHQ+TGYC/x3MQQqAIBBA0avIrBswycquEi3KxhooE40IorsnL d/i/wcSRaYEnXgg0sWJD59RFgLsOvqFkOdsUFJVUqsSA3t7xg2T3Rl5v43Gtm4mGo022jrIYYj k+P6n/fC+H8T4sONkAAAA To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Linus Walleij , Dong Aisheng , Jacky Bai Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-gpio@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716272771; l=2558; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=IdSIu4WSeFnvsYoBfpMvGzM9/rJ16xptCh2VQULDStE=; b=GtkzBn4jgkjNr2KU0qj35rBVCaOXd3QjQhkqAwCgSTZhpnKPLY5QsHwSkuqdytk0NIPedzsPT csS9+qiAYajCv2aMFpMmBZ9LokM6ckw+6vTKeV91yWRPX26Eelu8nrF X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR01CA0157.apcprd01.prod.exchangelabs.com (2603:1096:4:28::13) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: linux-gpio@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: DU0PR04MB9417:EE_|GVXPR04MB10705:EE_ X-MS-Office365-Filtering-Correlation-Id: fcdd7484-d87d-4c07-1cdb-08dc795da104 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|366007|7416005|1800799015|52116005|376005|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?1VDNVhN+396Qs5WVwILbNZFSCLtoomB?= =?utf-8?q?N4IUlXUK3cT2i+X/exU0LjXQQUw3iR350ZduAa3wDkC77xrRDXqPdXMjJrSMzgAXn?= =?utf-8?q?+7ke26l9bVmBBBtzsuih2u+DKfaWGkW4gBf/4HptpkG4Pue2DyQMfHVG8AOHXFCEb?= =?utf-8?q?IrGGZjjcLvkVhV7+hL0jmPekAdrIcUIVkDLTwM3mWNFk/V7mD1k5+ttzxiUMGYaz/?= =?utf-8?q?jJlGIOewYQ22aKffGLCCoZf1fYWd2IM/80m/OdiGI5NPC0mi3bfGmXUBqiRlrVcPx?= =?utf-8?q?J+DFn5/QRlzmFAcLcJB1roQ5eh1NqlBEjDwKmET9pWM0vM34z3gtJxN/uTJOOIogD?= =?utf-8?q?9zk2ow5DmwBoFjC3SV0AlzVP3NCxQcSP8rWX33sJrGaqnLfgkYXAsZOOzZNDKfWKd?= =?utf-8?q?KEeTYbEP4pbqoD3PaZKWMV2ThreWt2uslXcXwURa0MHdtwqB3WlHLD0eqsLQJ/+Zf?= =?utf-8?q?qS2kuNwsVF2qDJHA/151uFy9jyi1Crdi60N2eg5L6sLgKoqQFmOL1QNIDVq8tODUy?= =?utf-8?q?CU83dX5mY6edRtD6GmHF0coSxccd7rOKQ7o4baVMrCVKK89JcV3JJzkQd9aGi3BtO?= =?utf-8?q?S1lF0MbdUixX7GiNPPnXqKYs/4E6uTb3/vRjgZ779/SLMXyRC1ybZ5cLzOFWwa1Sy?= =?utf-8?q?QMEr0vZCvgSRwKJVcOkuN3dA7+U47RXUmwzIWzB18P0WNHiUWXhvpGtH/gyK1MdhS?= =?utf-8?q?v8mTmkWZbXhqVG4+3mY3YOf7q2INvfhbG0NbBqBdlapgc8nteK8uUhDwiEARrSvgo?= =?utf-8?q?Hy6UgIfr9nLkS6+9xxCsOktqSQfq/Ne2+wLG8/DPehGYC5bJJIxvnJJCQUsPxzg1g?= =?utf-8?q?unrtMLMeP+HnGhFCN0yRbMTeSUBjqT1VsBmQ4i5mV41RdU2W3QbE33goZ6UML1T46?= =?utf-8?q?n/PoWjIjTcqpWm0Du3HYPPohFunMLQhWEDnER/1EXM+Kiu9RfqB7RKSO2kY15gOhm?= =?utf-8?q?rahbLsFbHicDDNL4XWvx06mZy+JKKjeIUwOu6VgFx1yqK41rfHZnYlmCL3TOmmrVj?= =?utf-8?q?MLBuW2Q4Yk/42J/JdfewPKC584RzSU0wJOXw4OisowF+u2/eV24dZirdy5zxgVflR?= =?utf-8?q?RwelP7LL2grGcHFEMgVAj5SQpo2WUSgdkIBB+FBxZK6/SFDEl/ow5qPF+9kwp5wEp?= =?utf-8?q?sNVXvfQyP6HNEubuwSVPSrrvVV8kZ16YVvARedmTFfR35tUBla0GR8oxNRv0SPs9k?= =?utf-8?q?FQZfB0DIE6Xw1jee7lvljfIL1wzdhLoZwrsZd0vDAm3F3TEykCZZB07YZwtSIbGLz?= =?utf-8?q?ovxcjyJLSDADZ?= 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)(366007)(7416005)(1800799015)(52116005)(376005)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Jn/LLb/vOW5j1As7SqkIaXaBA/fm?= =?utf-8?q?zY5KBaefbN8LyEhw5LD2IK/4W0KbIqbJlPVhEthfW1w2OQut45wVqoRJra/AA9sIn?= =?utf-8?q?pLwn0FOphRGDgCUT0nA4/Bv0muhmOGqm4vsRxVyoqdX6I22OZAXtaFU489CZwkE7D?= =?utf-8?q?oKD2Vsy9jPJY4L8vQX2nf0hveiFi/nC1n7m7z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n2uzpecvmaI3LSdNpuTIxikd?= =?utf-8?q?gtGC+75DmlTEcfESi8IGzS5o2xs7+6f1wxZNCDHJaUAhzcJJNCDOwDHNZX2Oez26t?= =?utf-8?q?BWG1KnVeom7sf9dOp2RCSluTn9AK+N7POhItTGojp3wHS+J3uGnY38XGB4JxUbB2k?= =?utf-8?q?CFvkOwflSmrEahzP/Naypg2Tr4NLLTV9qcExF3ik6Y5AvrmvK0sNDoTxNn3RS1S4T?= =?utf-8?q?RMMLpWktiKa6PadRZXwcktNQ2ms8cnNn2YiVgeItTH/ygRS2+dzPZ9ljPfs5UspW8?= =?utf-8?q?OBumrRILuvQMtrXrZawGXE/aB742fyTH+wxaChvFORx3bcWREJE1+VYWeeQu8tNXF?= =?utf-8?q?kBGkkeovrEk/7NACOTVohB7FSjRwVnMpCkstdt7B5aIyuoXO0BzL35A4d6mn8GmaE?= =?utf-8?q?xhkhfSSVKSoV6DPyN0GIy4FhnmIbscYG7909tvBKKoBYglTuC+X5gA+Mc7QAdxFNU?= =?utf-8?q?HAxkFvd268A0?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcdd7484-d87d-4c07-1cdb-08dc795da104 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2024 06:17:02.2687 (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: hlD7PBtfyc3gQSbrI2pIHZ97ZVkjv8+PRluW0Da66ehILVjNcWPZXJdYVG+sEbsh3sR++kkdFZYK8Qf4xPK97w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10705 All: There was a v6 that use generic properties, but at a late stage, NXP internals decides to switch to fsl,pins property to align with other i.MXs. Since new properties, drivers rewrite, I start this patchset from v1 with a new patch title. A RFC patch for binding was posted, since Rob said he is fine, so post this patchset out. Whether v6 or this patchset, patch 2 is a must and was not changed from v6. The pinctrl stuff has been pending for quite sometime, I would be apprecaited if any quick comments. v6: https://lore.kernel.org/all/20240513-pinctrl-scmi-oem-v3-v6-0-904975c99cc4@nxp.com/ RFC: https://lore.kernel.org/all/20240520194942.GA1374705-robh@kernel.org/ Thanks, Peng. ARM SCMI v3.2 Table 24 Pin Configuration Type and Enumerations: '192 -255 OEM specific units'. i.MX95 System Manager FW supports SCMI PINCTRL protocol, but it has zero functions, groups. So pinctrl-scmi.c could not be reused for i.MX95. Because nxp,pin-func, nxp,pin-conf properties are rejected by dt maintainers, so use 'fsl,pins' which requires a new driver pinctrl-imx-scmi.c The node will be as below: pinctrl_usdhc1: usdhc1grp { fsl,pins = < IMX95_PAD_SD1_CLK__USDHC1_CLK 0x158e IMX95_PAD_SD1_CMD__USDHC1_CMD 0x138e IMX95_PAD_SD1_DATA0__USDHC1_DATA0 0x138e IMX95_PAD_SD1_DATA1__USDHC1_DATA1 0x138e IMX95_PAD_SD1_DATA2__USDHC1_DATA2 0x138e IMX95_PAD_SD1_DATA3__USDHC1_DATA3 0x138e IMX95_PAD_SD1_DATA4__USDHC1_DATA4 0x138e IMX95_PAD_SD1_DATA5__USDHC1_DATA5 0x138e IMX95_PAD_SD1_DATA6__USDHC1_DATA6 0x138e IMX95_PAD_SD1_DATA7__USDHC1_DATA7 0x138e IMX95_PAD_SD1_STROBE__USDHC1_STROBE 0x158e >; }; Signed-off-by: Peng Fan Reviewed-by: Dong Aisheng --- Peng Fan (3): dt-bindings: firmware: arm,scmi: Add properties for i.MX95 Pinctrl OEM extensions pinctrl: scmi: add blocklist pinctrl: imx: support SCMI pinctrl protocol for i.MX95 .../devicetree/bindings/firmware/arm,scmi.yaml | 4 +- .../bindings/firmware/nxp,imx95-scmi-pinctrl.yaml | 53 +++ drivers/pinctrl/freescale/Kconfig | 9 + drivers/pinctrl/freescale/Makefile | 1 + drivers/pinctrl/freescale/pinctrl-imx-scmi.c | 357 +++++++++++++++++++++ drivers/pinctrl/pinctrl-scmi.c | 9 + 6 files changed, 432 insertions(+), 1 deletion(-) --- base-commit: 632483ea8004edfadd035de36e1ab2c7c4f53158 change-id: 20240521-pinctrl-scmi-imx95-867bea9595cf Best regards,