From patchwork Sun May 5 03:47:18 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: 13654168 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2076.outbound.protection.outlook.com [40.107.6.76]) (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 C574823A8 for ; Sun, 5 May 2024 03:39:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.76 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714880396; cv=fail; b=DAmfUGj2iVyUbS8Ei9ZUYJk/uD5C5fLhkChAwyVZETH/HI830j6y3tHMgQyNKCdu1VH8QdL8+9nVKVvSlJIDJfwhqtg+Z3TJTysMaKEEELg7enPcsW0X+yhKWI/RQBuLT4i68rCjDzonMUxw86Mm9Kz51THmOhDCO575m9rPnOU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714880396; c=relaxed/simple; bh=cHIHcCXMeRtfcUN3fUO1YlmnkdzbEc0paFnDh1W7DWE=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Fs4byhacBS8Q09i34rSn9rlQquY0u0q/19yduAzDze1vXuZwFzfi7Gp7MJh6/T8YApbdl/2k0cBnESja9QqzckFMIHK39fR5+f0WfpPViPV7t4vyVi01wTXzPTR9dqaXEPurYdHKcBlaZJQ0CTqb6anUwHY6c7/glAUwqGdX+WY= 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=Pp4DsE/G; arc=fail smtp.client-ip=40.107.6.76 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="Pp4DsE/G" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iNTVg46vipQxTzF02Ds9f8ankb3BRhmMjQ+7gB7JuBEIQc7e5odEXs9UOAYwJ8tPfJXHYxpJUCzIUrOgLCEeS7s/kiJ8N/UpZfB5VRCo8W19Upd2hMT/xjJ1wi92LenmRBSg3OPxz+OcEY+F2uIsNqPp+AALLy/vKVGv8JJ8d48pLr0EuPKObC1XGoJRGMHYhjgBlLjhaD4exPE/Y5W9zv+y+aF9uNxwkRG7uM3h1oIBZQXXeDTIv9qRUb2DwZoEIBhuwYorsj6mFzBSBmwQt30OLleY0q9JL548MogXQkGI6bl3BWq6BEjaGH4EZNyrwSS533Qco1LUHLb/69K+fg== 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=hpRie+nloq8A3UbzYPB7kIX8wMCGL+JIcNg8iz+EHNs=; b=cjMbzSmmusc5eVnFLBzvgaKumRdvFQT2+bUzO6PbRhRexziURZCjPX4U1ClRT9F9XIFOMO/70zeQ/aM6igVeJrRlXKq74fjkxDOQki5YEd3suZSDWTD9FkLYSjBrKb3NUyBe0XMtccwgoGfdj5Q5Vrde3+Ds7n5gCF1d1gl6gdhGNFiHAxWsqXwnQOONMQfVymxrOS5OmBRisPiZNZ/osK677r5Oy/iXmgrpI6Y/3oP2P7T4OFJYwtZvqQQnZs4ASHtEJakCDMMp5veTRxSMUpp91O/noSaF7dgH6NUCdeiHPmovS5cJ/0a9bbiyLKxHBUbvEIWYL6KWMDwwme/sig== 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=hpRie+nloq8A3UbzYPB7kIX8wMCGL+JIcNg8iz+EHNs=; b=Pp4DsE/GI2SYIClHsswH3VGqD3u+TLMj2OXI7Rf8KQ82CkP4IoGKS8gMvws8ZU9pVmjxwqIyvTQv2kVF4TmNqpQFxW0GT/JAgLwNFPbJuiJPAhLhMY5djwJD0b+0ii/fpn3d1X9p8OLlNzm1VPlsiLkKeDIjVKwSaYxt8Mzgly8= 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 PA4PR04MB7599.eurprd04.prod.outlook.com (2603:10a6:102:ea::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.39; Sun, 5 May 2024 03:39: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.7544.036; Sun, 5 May 2024 03:39:32 +0000 From: "Peng Fan (OSS)" Date: Sun, 05 May 2024 11:47:18 +0800 Subject: [PATCH v4 2/3] pinctrl: scmi: add blocklist Message-Id: <20240505-pinctrl-scmi-oem-v3-v4-2-7c99f989e9ba@nxp.com> References: <20240505-pinctrl-scmi-oem-v3-v4-0-7c99f989e9ba@nxp.com> In-Reply-To: <20240505-pinctrl-scmi-oem-v3-v4-0-7c99f989e9ba@nxp.com> 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=1714880848; l=1513; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=iLTosuMXHbADLkYgKUNjBSdsZfH9Zm2D+iMMZu/RGUc=; b=wAledQaRf8wMF5I3zCUr4UgQ+glmFxK5ZRJItXRlGF49CujeIs4uYGPhMLsOkm3I7SElOApao VBSUZpBkauaAB1iBGxBjRJHJ3Sh1WL00YtKp7sElF608GdShmCL691d X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR01CA0022.apcprd01.prod.exchangelabs.com (2603:1096:4:192::14) 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_|PA4PR04MB7599:EE_ X-MS-Office365-Filtering-Correlation-Id: 5dc7512a-ef57-4eda-6595-08dc6cb4fa20 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|7416005|1800799015|52116005|376005|366007|921011|38350700005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k0F3KF9HP5DkijWH6dTcp/2zSbbEw8zEDSU/b3UKXuCmKw/xWWW?= =?utf-8?q?vsZQ0B2kI471Hy11a/ckGO4pYpMslkcifIa4j9d5pvHv9wYwJpLP4BGHxCkyZdQCY?= =?utf-8?q?Rl4n1iukDeYIEvNUbtcbKaM/c9IAuASW/4vvSoRzk/oLri1h8mcrIs6j9tCv59jsQ?= =?utf-8?q?Yhp19Ng4EiFhdpSoCEmSxbhK6DDVTrWIyUANY2zL7I5TH2Sqhvx/LoFvVYsWkwoti?= =?utf-8?q?UhdAnY32mdaEnWU4tnXOOY5wk+WHBFIhiNiXFdSv/1EAB8zjq5a5apt9yZoh+i4vy?= =?utf-8?q?uxDza9tlymc2ZqoMcAWQ6Zruaqmz74Qd2mqonnuBqjYTc4eeuo8lGwmHck4SoNYhC?= =?utf-8?q?13MBqyWeUVvJC/6LkCz6J+GNO4XBvDcJQv6qfmi4YNyzNt7ghFDQGFM2b6uJzfY1d?= =?utf-8?q?OTaO+14say3TXW/W2qYWQYgoqzhyLaKASDQ=3D=3D?= 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)(7416005)(1800799015)(52116005)(376005)(366007)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?XzH4SuvBJPbmiffk3v2fU5lfFZAW?= =?utf-8?q?Qcv1sOYk9ACyupGdpqTRBsmLFoEjo4WwAYLKxdLHISFymqVjkeNu/ID9LDqHvVsgy?= =?utf-8?q?+ftDJEp+7pWg6vWkgT4GpH7ohux5NQX7SzVjExZs0hgLmDOXcxeibZKr0+8C3PsDA?= =?utf-8?q?P9Sd8Q4ruSmuvLFP/AN7bvQ/QNSf8EGgsA+z6sCz7cVWRuScomLZmVCfqwMI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?q?aGzs3e0iLRogCufNBxR/woR7KzA/88FHHzMtXrAL3MOqrwAXwSqB2ONnreyfjftlz?= =?utf-8?q?oMOnFwUfjlvLHSBMA0I/Fzx2v/3DMAH+nYKGu7vPLR+0TADaYOepxqHNYHB69G+H1?= =?utf-8?q?GW0VTbBKDR0DvuaXmrnyahBCcIX3XtsRf38dm8lXyhHQPnuWaQIBcRixF4KVJflpX?= =?utf-8?q?QIKZVmp+Zenf1CXrQi7PbDTQHb8a5DkAVEg4NSD3eUgwWwyk6TR08LgwIoWjeTkLB?= =?utf-8?q?MCeP16cjTWdMklxeQPqqdovuIOl7lY6dcZGx8P1xMYtyoVz+MO11l7O8+Q2BbiZdW?= =?utf-8?q?uw0+6gaG8PhKuPq5A1HyDl36pW9pP5ZvMhcZVaBbxY3z2FuajEMx+Ppdumaoeq07F?= =?utf-8?q?pLGXimrPvhtcfaDtwnJczD66cnrqDx+uM821ymsc4aeJdoW6ieN24VvP0X9wF7+fQ?= =?utf-8?q?GkawjvcxCtrV?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5dc7512a-ef57-4eda-6595-08dc6cb4fa20 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2024 03:39:32.7127 (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: uoJtvQt3oYxeVOGJs7KPui+GCxTs79WZt5R3RIbrrYEHXEagJnY2rXEUAXNM/LLSv84rdF0mpChWvvpiujhAnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7599 From: Peng Fan i.MX95 will have its own pinctrl scmi driver, so need block pinctrl-scmi driver for i.MX95, otherwise there will be two pinctrl devices for a single scmi protocol@19. Signed-off-by: Peng Fan --- drivers/pinctrl/pinctrl-scmi.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/pinctrl/pinctrl-scmi.c b/drivers/pinctrl/pinctrl-scmi.c index 036bc1e3fc6c..331ca20ac68b 100644 --- a/drivers/pinctrl/pinctrl-scmi.c +++ b/drivers/pinctrl/pinctrl-scmi.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -504,6 +505,11 @@ static int pinctrl_scmi_get_pins(struct scmi_pinctrl *pmx, return 0; } +static const struct of_device_id scmi_pinctrl_blocklist[] = { + { .compatible = "fsl,imx95", }, + { } +}; + static int scmi_pinctrl_probe(struct scmi_device *sdev) { int ret; @@ -511,10 +517,14 @@ static int scmi_pinctrl_probe(struct scmi_device *sdev) struct scmi_pinctrl *pmx; const struct scmi_handle *handle; struct scmi_protocol_handle *ph; + struct device_node *np __free(device_node) = of_find_node_by_path("/"); if (!sdev->handle) return -EINVAL; + if (of_match_node(scmi_pinctrl_blocklist, np)) + return -ENODEV; + handle = sdev->handle; pinctrl_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_PINCTRL, &ph);