From patchwork Fri Apr 12 00:29:25 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: 13626672 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2056.outbound.protection.outlook.com [40.107.21.56]) (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 B3F194A03 for ; Fri, 12 Apr 2024 00:21:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.56 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712881292; cv=fail; b=tId7aYWhJmGevajSa4q9ipmbkSHoMrWsM9YK3Yy7bo55/Acfq/IA16pCu4J1j/o9Qb1TcVIZMNNan/UyBV/3Dh7xtjwhF0bkey9ydciwc4s5NKitl/LFR9a/Sp9s3S77qN//9QKB0MRW/JUq9hyll+TVYQjMAxCx23/EIgz3c60= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712881292; c=relaxed/simple; bh=xzKRrHZH4LepqNI3avoT3OHq6wx+Wc9vBF5rnP59ZJA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=fvC7QfRo9Qrlxp/TXgKGAj2qVfjCgbsHukd5Cktu2Ha7cMB71Pf5qRwbAjCmqa0mkvTMJvgzAgwN7eNdJri5wBqUpOHjdLZu6vl0Tfr6oFOtnbmRvE9IwJOBnSpo8lSXmyuqT5P3yv3a/ZkZvBIkHc8Q0oI1JLiCWIjklZLmU14= 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=MX9qQxlt; arc=fail smtp.client-ip=40.107.21.56 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="MX9qQxlt" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JGk4wdtMH73w3oUXjHt44mGO7Y7VHJ5KvOn1K7WRayTg7s/Dy+xBspBsXukkyV+5LjQoorg/SN/l2fSb1qnWBa6QgQGyO79pRRvjXQ2Xprn+XWHPRl/zeMnmA1y4zwcc89A9iVFCjnXOipM4oGUFWIa4tlfqWhZs7cqkPc+Ry3lWGOmOFnLF/pkdv0T9l3SpooQztw8jk6ne+eY/vv/xAmun4fl8ASuysl0oUgp1lcwI/yfFQIsor/og4m3/tcwQIqht3Ni/cH+WuoiytNUiLXvS+RrbCS5EOl4hks/so2NqIp+wLcUI0lIWCmrcp8SxDLIH4WLCWwRrDQjXAKw+6g== 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=vm5h9T2hkUY0DcHvY72yMOoaiclMP2KikmiNEJzpk5A=; b=UDJpl0WSs/PEj2IKYO5R2XSQpTtBh3fLOzXTr86AFDphCXv/GcGOWAJUOhRDYMBrrS7606d5458EOgFPfUpzBghX8faN5pqC5eVYfidn7TcZNKBB9b9B7k2HKNg9md+/AAdXGYdwrUYq+Ud8SXOaQPyyyunF+xMN0xRMC7O+WCELBWLyAy+Gb8KE6xJo5nr8lVbV7xq9BGDEvjgid9Q3Hxkuy/wNPutQe1Xu/DWWzPGDK82lDZcqj9xSdtViYrZrvWg8DpezwJCnyVzFdfL3gwr8jX8HNjOtMAB5sJHHDF4OyLSWanOXTPLQkNkEVie+vQNAX4vN0+kE/WLx9mVmQw== 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=vm5h9T2hkUY0DcHvY72yMOoaiclMP2KikmiNEJzpk5A=; b=MX9qQxltsZgTIWnrtxBGyEgugqRKHYvaZHrqGWSA9XUx+BJ4Ts2esisQQfL1fLRvn3CWCtAL70aTlIIPcFJp3oTWVJyn6P4xgQWlnE2Vzr7sL5yEdH0p9uBVKFz4i6+uUyGeNjA7bthH42yZJiy0/hIEx5rgmAzt5xBHt/naiMI= 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 AM8PR04MB7970.eurprd04.prod.outlook.com (2603:10a6:20b:24f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Fri, 12 Apr 2024 00:21:27 +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, 12 Apr 2024 00:21:27 +0000 From: "Peng Fan (OSS)" Date: Fri, 12 Apr 2024 08:29:25 +0800 Subject: [PATCH 1/3] dt-bindings: pinctrl: support i.MX95 SCMI pinctrl Message-Id: <20240412-pinctrl-scmi-oem-v1-v1-1-704f242544c1@nxp.com> References: <20240412-pinctrl-scmi-oem-v1-v1-0-704f242544c1@nxp.com> In-Reply-To: <20240412-pinctrl-scmi-oem-v1-v1-0-704f242544c1@nxp.com> To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Peng Fan , Sudeep Holla , Cristian Marussi Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1712881775; l=1964; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=iQ5C8P2+nJngpEg/AqIqeTnK6q9nbUkwKAvc5cu1n/4=; b=VgjA22wruttJRv5+7OI5Po4ODCYDVYw0d3PFGY3skG5+6o/Kp8vDZBVvDWGEpiQCdnuVjBl2z vUSki43tqV0C3YlIsWMhm0vL3KwKyE4BcELbPIPwopulXuR5ynnX0lh X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2P153CA0030.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::15) 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_|AM8PR04MB7970:EE_ X-MS-Office365-Filtering-Correlation-Id: cf21b74f-28af-4f3d-9107-08dc5a867e88 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: 5QgTCi6/9wu6EMOsTOoRQ8V5iSVC18Oqx5O2Vh8ptbf4kZ1p0YxNEYkZwoV0oBKLUWDeXiS4JdMcDQOgfLp06nXbctk2L6EqMFFHj+oOZbFP9eDZPpjRnWTgVoIg3hyMxkiGhSFM4VT2QGPXUUFcCrH3No0a/hXF7z+4nc75hPI2LGPsTTa6pFYende07AkStoGZ5NaOtc9WUyaT2NuxtQyKlBXODx3pLVC1NLE1HFqb5sQAa4YGZ3oYC669Q350pEvRy5yDk/sR29cYXaBUTURdSV1ICQ3WDPc4Rl4Xrb3H5jopbEG1OniCODO/+Uzvl4DrsGXXiz3VVyWzBI/1ZYSsmMoTyO26U7eRTzOvHiUdaf0jBANHS3axxeDr6EHVhPZKZRnE+YXIpwSuethaHoDChZQJOxI7dFydBOnyvaQi0NAdG5MNGfpLigLWKEoorXhmv77LKuva1Nz/3MdZovH84WkitaSuwWukww8JTfG21a/nMQa2a8QOi24tUD038SWDydlOvv4ZT5GNbQEaFPDM2CbSjUZV1SAxNoVNnW3kcMX6+wNja+LEQg4xvkaL2kinTEz3s27A55o+yABfPl2tbTlErI98tl15DvMcTNAUy9w/laR7n4c1yXzfGNokrUI61Tg2mbSkSpmdXIVcfsxjiriFAYTlbSJUJOCBfvlplhXHE69kg42/4x0Rq7WJ 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)(1800799015)(52116005)(7416005)(376005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?XO5KP7acTuCUnvnJX8wPc8R25caU?= =?utf-8?q?rhPEkAT0VZHUjiSFQC7qY/mbSoTRz6KjuxsBXS5aB9taGQhQxyteVGbeqbsM1TLaf?= =?utf-8?q?aekem5YtpIm96zp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ZBrS7a7BJWREQ8GTSMg6e7eutEBznris75coxF/iV58?= =?utf-8?q?qYSWFdxDS3QE0F7BXUWbO9ZZqNc9AAcqK2FbkuHJrPHbMGaHAP9EHflzmPNdaFn+p?= =?utf-8?q?euOf/dwg831zdm3biJsz56oq+dDpEDhkf+JPyfO23FPxjkhaYpfVw+AvEOmP310JL?= =?utf-8?q?+D4E37HO0eZC4W8TKGYoYrspnulHDEZz0fnuHyP5meIUxEsNRmUswrznuSTEL8ta4?= =?utf-8?q?LEJokihUmzLwvErcO7t6ZPeoWKi5+x+hJm02zVUxgZMBX9NZ8gaSrfSeyMJBhBbpw?= =?utf-8?q?6aNzGIn/ST0h8P9AXhdZqM9o66rgxX4iAy0qv2IfrL7339rIhyEhM/SQ9XpEG2iQ8?= =?utf-8?q?jpBsPIpdPFJXxP+n/ksPTDjyjOoIisnnONHwdJSYvjRUdbdHAQg37jU5abdFsal38?= =?utf-8?q?4WUoJvITyC+RNddjmvyYKkcNlGH68Bf/wQUsqVk5Ff1kVb8R8pOL6vFTiHxnYfOp9?= =?utf-8?q?/EYOPtn0Go0zQYSiCzRq0vR24i4Dkh/sVrR3udwvMs5nBdtmMnKx2aopV2SnBRdhh?= =?utf-8?q?CEqd7GhnC4Ca?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf21b74f-28af-4f3d-9107-08dc5a867e88 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 00:21:27.5751 (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: IgNo04dkrSCTA1/naVQY7lHLcQFNbeIQPCD5nVc5/4+NHJs0r65WyFGuHes1MpgoprHHrQ1g/Qfrs3ujqKSyIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7970 From: Peng Fan i.MX95 Pinctrl is managed by SCMI firmware using OEM extensions. This patch is to add i.MX95 Pinctrl OEM extensions properties. Signed-off-by: Peng Fan --- .../bindings/pinctrl/nxp,imx95-pinctrl.yaml | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/nxp,imx95-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/nxp,imx95-pinctrl.yaml new file mode 100644 index 000000000000..4bf7a6192813 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/nxp,imx95-pinctrl.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2024 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/nxp,imx95-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX System Control and Management Interface (SCMI) Pinctrl Protocol + +maintainers: + - Peng Fan + +patternProperties: + '-pins$': false + 'grp$': + type: object + + properties: + $nodename: + pattern: "^[0-9a-f]+$" + + pins: + $ref: /schemas/types.yaml#/definitions/string + description: name of the pin + + nxp,func-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: high impedance mode ("third-state", "floating") + + nxp,pin-conf: + $ref: /schemas/types.yaml#/definitions/uint32 + description: latch weakly + + nxp,daisy-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: pull up the pin. Takes as optional argument on hardware + supporting it the pull strength in Ohm. + + nxp,daisy-conf: + $ref: /schemas/types.yaml#/definitions/uint32 + description: pull down the pin. Takes as optional argument on hardware + supporting it the pull strength in Ohm. + +additionalProperties: true From patchwork Fri Apr 12 00:29:26 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: 13626673 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2062.outbound.protection.outlook.com [40.107.22.62]) (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 AC6C4D2FE for ; Fri, 12 Apr 2024 00:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712881297; cv=fail; b=INLFoiGssXwwK14S3bVGAxPFeWTKjPoP2FeyYyMeFxUH1dTm1ahgJ7STSc7QmZovOZ8GdyR8ocKEB7/K5vH23y3ZUu7NxGnj5Lm6eQWfAU98XnNs+kVnlx0R80wr7bvCF+ZiyucNFyzOYB0tQKaXy6tD+ipHL5d2zyhfZnEK+rE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712881297; c=relaxed/simple; bh=7+IZpVhOzxW3JHD+Dq238kMHCc7u4HXNQ3Xdxr8ofG4=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=UOT3XQRPZCgg1Podezm/+twThvf9IAibpNvOElaO5yK4ybEJt43j38fFG+VzqKzHQgLBOaPq1yFDrCFplSCIvR+rw7GAQ7gLTlBQWcICh94/4Xiz3YXKhDHlwWy99dGs8dIpvgXAxWcHkj67zqw9jbwaK45wPzv58K1zajjNjoc= 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=kLONX49l; arc=fail smtp.client-ip=40.107.22.62 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="kLONX49l" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RKYxzKNhjlSYehq7TcYYISkYsSFlaCcQxjiC0U2fvXmOWuk3ysOYfWAY63Lw4Mo5F3872sGKmDzRzW56T1UeGuTkwKgw6jr2L0NRaUx7fk8qwrqq4aD5/iWTu2HKEVXn2Ox8KLt1tyHC0jveFDbMs5KLgObCh2TdRx0oVq8pB2Uk64aqtiwX8JKyx+o1OF3fE13+jwq0qdMjO+CaueeahXvPXulhlzghjyC12PwAxoqzf8s+aC7y+kKBylAb5sAF+mTC12ojVsn1W3krg1r5b53351fMJul/0PsPQjiUVtLmV3wHoM5jlCoARwTe9zpuV/OIPNs8lp9YHB585QKORg== 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=WKQD3WctDvl9pLHfMfhzX+rQPwUR+6HbszRRKseMhT4=; b=VIYHNhSrEMZ52reTA3aYx3JQUfGOXdaHHTJbZJOmya0irMNgoJtjEOPy8GlIUz00aRkCVv45VX1IIbP3Cwx+d6mum3rYh5kQFheSBq5eGS8mNm9VL8+8mO2KoYm3FHAGL/1S/IDRA2o+w+LzF5W9aynF0zOfWdFB7tJezvLr60dTWI+xTkeWXFpcNVu/Ks40IN40iQPrbZUaRybyicPhqd8GTHcoKjMubAXoypDW1Mj0E+Vvotyc0l83JKDPueGUeElNarDgfiuc0eyShOQoR7nnXEMFnKVFn9K1dEdy7L/0AnWGDOSiXQTU0WyYNpqrZX3/zErIe0HnqfvsAiwm6A== 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=WKQD3WctDvl9pLHfMfhzX+rQPwUR+6HbszRRKseMhT4=; b=kLONX49lxuxgrwD1L/jai9fv+y98QwjMsAxO3qR81qbsrhoATuA86dEN2P1cClChuwzuoA4skE7r/K2esuc+pJigcXVHVcxuKkoCkjcVH4djmGVvAlxY1P6C491v/yvQJxAnIODH5es3Ielah41jdbyXtr9m+XiEknIrIp/CCPw= 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 AM8PR04MB7970.eurprd04.prod.outlook.com (2603:10a6:20b:24f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Fri, 12 Apr 2024 00:21: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.7386.037; Fri, 12 Apr 2024 00:21:32 +0000 From: "Peng Fan (OSS)" Date: Fri, 12 Apr 2024 08:29:26 +0800 Subject: [PATCH 2/3] dt-bindings: firmware: arm,scmi: support i.MX95 SCMI Pinctrl Message-Id: <20240412-pinctrl-scmi-oem-v1-v1-2-704f242544c1@nxp.com> References: <20240412-pinctrl-scmi-oem-v1-v1-0-704f242544c1@nxp.com> In-Reply-To: <20240412-pinctrl-scmi-oem-v1-v1-0-704f242544c1@nxp.com> To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Peng Fan , Sudeep Holla , Cristian Marussi Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1712881775; l=1004; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=vmpls3EeiII01c2hWPNvt6hnGq2HLnzccUt4tK+qRYQ=; b=y0p1DJSaXFaDKafPzdIgii/bGLRJttBZVCxgUHVSceOmH3vr3BGi9WmuGoFqlQv4AQLgqbEh0 EnTTza7sLK+B0WSGgA4zAlNejp4vjiNfgaEJ5VHQxXLR2HUc5Fcjor6 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2P153CA0030.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::15) 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_|AM8PR04MB7970:EE_ X-MS-Office365-Filtering-Correlation-Id: bd673e1d-4b76-475d-cd0f-08dc5a868176 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: ST41wSF1+iNIhE4r5d2ypKjFAWh5Litbcjw0BYoXAFsk7V/HZiURQkw4lt6jl+R9HcQr31ON90rqNjODPhH4P5Q5R2/gkjsgomXOD8XBAIHbRpkjWjLZ9gvmTiqQwvHanD7jzE60TMEd5PaxO2d6MiG0rE1FnL9QWzSYB2dWkqeWTUBnzZbW6iCjdKdKAquL6wdY/or0noNw13a6wIiQGzLBp+uRMyS7hgqq2sOmqh/jfFbUWi0/+vEwB7bevrPZaVkTYTBu/yUdEJs+RXWGK6DoPQW5Gb13YaJ0XN2P99dL2Z0kf2AV+0tBoUA6EiSD2YW7leGRSLvo+K2KEo6EwamSWnFOWHur3kR5pier0nwmIFvXs6zI0c6mAm2cWe56bobPWf/V8kZXP1oM3ESmyuO8TJsDYV/T1QHCTbOaFJPimS5ETA0qTfe4I6ObrA0fVGclcEYYhzDUShuf9wOIrBhMh9apbeFwXYyhkc6nERElIW4NfZ7v6j7RWx2MN9lY9QMyPlrvR08f5JBfucTHqQtEayWr6dFKqc9JXBnqkxOqC8Ew/SY6yMssXVxXkQoR3wzjjvBT1dR4UqMob8dshz9hnLzU+BD/CE+D6AUyTI2pDtIXbXJjEWvDc/HMYV4EWPvTMR7DzkvXbKSiMsT4kgpOa+T8OxXeGF+25ls461mB9r8zcBN+sLWzEe1rbm+ozHGvfpgW0JUqvtqvwr6NMu9Yn071SQAoITGrGtLb70k= 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)(1800799015)(52116005)(7416005)(376005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?C8Sp/7I0wY+rGiyjTrKcIAVyYLzm?= =?utf-8?q?nLjgiVexswwICAS97u8Hr7qtkdRg9z5OZciLgkIdWR0vMd/9SpEpzbuuFeYkwyWDA?= =?utf-8?q?9m7g33Aa+7I11n8/1otH1ZdsxudtJjvGBlgVnXt1hW6gI+B5v149W/+Womyr01u1J?= =?utf-8?q?2F3BpfmL1FLOggncdmYrpKbo2Oc6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SfC5FYmR/bulPNETqFcru9c63l2KpmJoF3+EE9CprZ9WYi?= =?utf-8?q?ZBDNGk9kSFj0jDeQeAfIzzp0BcK2c4DOxs+8dL/9CO8SxyyFHWDJFsNb52rt9vN98?= =?utf-8?q?Wq7h8Q9vInVYKxNMXe7AEp/F1Mzxzn821akjwGbo9fU4R6yEmYq+pSwRRVwrveziN?= =?utf-8?q?c9uVZylxg2kLVH5PxWx/YH/D+jYM7eDi2aaYo+WgbvKxFJxBpMXl1D86Sdz9fOd4e?= =?utf-8?q?u2bIo0MTNnxqemSwfXVbTAPAIef6P/hZ5rpsnE2OfI/Rv1lWwmR1eNWIKEh2glee2?= =?utf-8?q?9iUsdF85Jqb/uFrZ47wPkg4feJrG+DvPV/f97Lkw95vJGF+Ry6Zh30DkWDTPPEFrR?= =?utf-8?q?IpJn9CIzwOAid10u3btHyh42+U74FTJ2Ih2HIIFzCxMFZjvgijB14PagVNHIF5sEn?= =?utf-8?q?a18+DTP3M5fU9JPWKkKbzRrMekrs/kmULLQ+HuR61tvEAMdh23l3AMYbIfwX0jYbw?= =?utf-8?q?JLh1dnAWHIV9?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd673e1d-4b76-475d-cd0f-08dc5a868176 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 00:21:32.4876 (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: B9FFOpWDiD7dJI6MU84PO623L0GHbauJN8MtsDOrq46+sJVE9YKE+zBqVxVU26TIxQwi8N71hQa3ymKmtEeO5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7970 From: Peng Fan i.MX95 SCMI Pinctrl uses OEM specific units, so add '$ref' to '/schemas/pinctrl/nxp,imx95-pinctrl.yaml' and an example. Signed-off-by: Peng Fan --- Documentation/devicetree/bindings/firmware/arm,scmi.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index e9d3f043c4ed..ebc6c083b538 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -249,9 +249,11 @@ properties: protocol@19: type: object - allOf: - - $ref: '#/$defs/protocol-node' - - $ref: /schemas/pinctrl/pinctrl.yaml + anyOf: + - $ref: /schemas/pinctrl/nxp,imx95-pinctrl.yaml + - allOf: + - $ref: '#/$defs/protocol-node' + - $ref: /schemas/pinctrl/pinctrl.yaml unevaluatedProperties: false From patchwork Fri Apr 12 00:29: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: 13626674 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2045.outbound.protection.outlook.com [40.107.15.45]) (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 23B8FDF58 for ; Fri, 12 Apr 2024 00:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.15.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712881302; cv=fail; b=LTT076FyfV839TchU/TW6dPALG9fnLz8AgG+Bo8yrc318yfLUs+3gBHKlEhAPVcfVr/3ltwJIcAwF0Rtt+1jHm7XOsMvq/8XB5pHM2ifFVajpfkskQBsmCEwo2d2f5B/vIobjQMLxm1NHkgiudAkq56uajTxJp86UDXZnizSgKU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712881302; c=relaxed/simple; bh=sTbjkh5a4aL+MAQ/wjB1CKkR1t4PZQRgc81I9MVcnXg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=LJ/i6ouGNh+mU/JZgTu4oq4hFrLq6hlVwuc/E0EpeZXmJ7sZGS6Z2hIOmZcoukaicztZRxaDJ9/DcMXxqY7zl+3TMBk7lv2jw165h2tAd3lzCMfJd9AA7v48FGGvey4aOyoWGkRDEqiZYd2/IM1wj8fRpJKkASzJW0zQqbcGgLQ= 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=J9QDXMGX; arc=fail smtp.client-ip=40.107.15.45 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="J9QDXMGX" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PC7/mTKekyxxnYc/zoJLoq+EVI2X5xf9RXQMEaURp1JfQv/1WgPM55Mmn9EJvm0oh2E6OvU3m4zfXAMv5yppxVEsb2PQS0MhyAQES1dYpFtqOFpgYkYZBKg54hmEIR+H/dY42Rsp86Bwa8VN8QGNaxljjUs2/+Qi3Guopqxa3Thh2F31M9c2gO3QhZJN0duhS8+AzAtP7iZyHCCa299SDNSwIH8NKOvt8UeqE1AvzQ5aw6RCp4/rgpz+UPsVY0qAY44R9MGeEbU6ffFOcTCmZ2Dc4oq4Ialn/Tpv06+7pAv8vX0WPRaGlqnMY7zKijqb7Xot/gNHSaa2aKNXVDy7Ug== 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=IXgMZQkn8/FX0xym20E8GQT5ndZobjEeQMFpgLdI5/0=; b=eDZHXTa9jAj46uaaXofmPX+OLCLwETh/VT2cRvgJ2Hy6p026yzSDyxBdJjrFchn9wELUWJeugkBx9sXrgQZHWGz3KlcapnrOFIusQ2WvjsTqDIdReNpHseonIZDdED9YMDLCYZ9pmlaz5wDtsC8DaNMhIxMmUxh7Ksd+w6wCp/DymOvxBHvE3ImWewhDlFhZCHm1oUav0wZeGrpKmOkvimEiS0Fl5qtIK890OzN8/UIv5f5rveBrxseY+J0dSHII0fUp3PWsICrhjbYIo+04h20+gQTZCd+0JPeLebydWesDSAwtICDtcTPtvD8wyvQKxbYELKOSVOAptwqJ+DVMzg== 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=IXgMZQkn8/FX0xym20E8GQT5ndZobjEeQMFpgLdI5/0=; b=J9QDXMGXfCIqnRnu2hgt4upxNnKISZmgx9UWMNpi1wHjsZGOCqCmwhGBEWMVrLMzhoCrisi36pytTA8UZpg5PAuxMQo4wNb5Mh4QAkJqLRsp71A//UfZtcSGFaqdi+rl0AXLcKKpT7JMKkVy7NAvWeZKp+/gYjmA44zpNVDJz2k= 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 AM8PR04MB7970.eurprd04.prod.outlook.com (2603:10a6:20b:24f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Fri, 12 Apr 2024 00:21: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, 12 Apr 2024 00:21:37 +0000 From: "Peng Fan (OSS)" Date: Fri, 12 Apr 2024 08:29:27 +0800 Subject: [PATCH 3/3] pinctrl: scmi: support i.MX OEM pin configuration type Message-Id: <20240412-pinctrl-scmi-oem-v1-v1-3-704f242544c1@nxp.com> References: <20240412-pinctrl-scmi-oem-v1-v1-0-704f242544c1@nxp.com> In-Reply-To: <20240412-pinctrl-scmi-oem-v1-v1-0-704f242544c1@nxp.com> To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Peng Fan , Sudeep Holla , Cristian Marussi Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1712881775; l=2796; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=Tzl0BI+t0SHnhwCwshMQRPsrD5//1fkJuvy5P2j38Qw=; b=U8QZ0gz5dmnXOpcBoRMlG0SqXZMbJHlRQrzOm3IdqicR2+AGnAGWKcEeKxfieDMDY6jm5+nZe lLpidbGXt0EC+z2xoV54NEIm/H9Ev9zJ5P+PPm67iG1t/I+1Xg+Sqap X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2P153CA0030.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::15) 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_|AM8PR04MB7970:EE_ X-MS-Office365-Filtering-Correlation-Id: bce5f7d8-d249-466b-1a81-08dc5a868465 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: 4kvyoMR6JtEaeCcNw43N4gTq24QTR21nFWNnSwcFR2Bp5WVcHkqO8fv6jk5NyYii3gpcT6OFSc04l7/Z/Gw66Jukw4Owg75Zy7UqS0R67GGcRAwPLfm5/K4r+/Uygp5Es9x72+e7J66dfob6OFC4XEAJhCNQriEHlpg1hxBq4LtXXA/ykQfQYLj8IVXys8UDECGjIfVSl3VTyfyvTB8e6sBWAdJvkXarqZT9oR3NXBLRg08kisY+qcUWn1GPaigHBuzU/IZDDwwRzUEwfjVi/LEEffDbf1NQ1n4rY5DEuqNQsv7LJkpViwcuiWvmxkGXPst2PfvlxERiYObyUJ72JfmtzXLqVBxHtpPKSwFuPT/ZQd5PsOW8LJYb5fGAVMj0rSmvdQc+Ae2TJZ10gxHQNcX/YurLOeb+/uXd+TtzfeSOhNMH9Lz27JUUHmpqxF4kamoE98ENQqwOdcM1Q1rm2cKg19oULi7HednkaNTY5F9GlG8thmaaREgxYeyBG1uPABY60W2uNq40VSRSQvqTJHNwy/Kx4CCXXDVl9MMUIhjgsFJEsqdJetONtLUQDWwFAvOQ9MYIJk6GpHk0Mt3ToJKNaiagxVCMbDj+NcG/5INzjjN53VE5TZZhnCM6Enl7tyx03vlkkbItQyGunahkUrmOuL7JrAt8UWk+IMtVJmK4X+UuvtNM28fsDbp6uqbemhxNbFOqBIflIUGfcBkkkaPW+R85jv4KaTmx+f66qLw= 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)(1800799015)(52116005)(7416005)(376005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?kdyfqL0NRcW+DxHpj9xqEgPdq1rW?= =?utf-8?q?U7kae/86VaWMvU0ev/3Wd+Dx8tjfP3AtiRf7LdDI30BvKh1Udi3SeVvS8OjtbuTLr?= =?utf-8?q?7Br7JqmBlJmRIz1ybApCym1+9n6aW+P/EFynDnynD139ugKLNPnC/zvTiodojjwkn?= =?utf-8?q?xn9oJvUx63BA+8ufblezsB0RWnNu3zpGoHAXRLx2bRBqy5MP4gp7Y2lFeDW/qrzkk?= =?utf-8?q?xqYig7k1UpzMBE3rFx/PkIVrd9cnKIMlYs2FAidG/tpGvn1cgXg3WlfsT9NKjz9I5?= =?utf-8?q?JFC5Ude8sOY5w1xUs5pWzSATjTPWNFKbmL/FDpEnXAIrqChrMmuXjOt6EEOHyUTre?= =?utf-8?q?aFqMqEBDCOJSx+wlIM47WAq3f5iWu2LWkKLn6aHwuaE4tnj77iu+mxMXwFK2Clsgg?= =?utf-8?q?l1Dn9tAuBEp9pAUzLE5uBwlaO/THP+5K5BAPau+RpMZWtJHJ10gK2hOSilPXg+fYA?= =?utf-8?q?7mFruzvqWDK23wBNUUBvwN0+kTxMq5Gy/qKAdY0eU3uD7i5VQg4Ulchzd+YoUeq/G?= =?utf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?563flGuWi9QumBohFuY0w3nPTLIhZA0zT8UW5BoaaQ9VpAKhKwX8QfZVW9CJjNI9m?= =?utf-8?q?uMWCmiBjj31qUjSOfKnPC4/2De3ojWJmq0mefl0cA4c8NcS2gfiuGgwiixZYbonrU?= =?utf-8?q?ZUIAVcr7Wfhf?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bce5f7d8-d249-466b-1a81-08dc5a868465 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 00:21:37.4007 (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: keGm/0zTyPPysGP2SYw5Je4wbwNkoPPi/UNipdYfBBAwlmw0/fellq0R1SV04sH672b704XndmEjMg8iiGRCpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7970 From: Peng Fan i.MX95 System Manager FW supports SCMI PINCTRL protocol, but uses OEM Pin Configuration type, so extend the driver to support custom params. Signed-off-by: Peng Fan --- drivers/pinctrl/pinctrl-scmi.c | 23 +++++++++++++++++++++++ drivers/pinctrl/pinctrl-scmi.h | 15 +++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/drivers/pinctrl/pinctrl-scmi.c b/drivers/pinctrl/pinctrl-scmi.c index 0f55f000a679..97c3d9d4634b 100644 --- a/drivers/pinctrl/pinctrl-scmi.c +++ b/drivers/pinctrl/pinctrl-scmi.c @@ -20,6 +20,7 @@ #include #include +#include "pinctrl-scmi.h" #include "pinctrl-utils.h" #include "core.h" #include "pinconf.h" @@ -462,6 +463,23 @@ static const struct pinconf_ops pinctrl_scmi_pinconf_ops = { .pin_config_config_dbg_show = pinconf_generic_dump_config, }; +static const struct pinconf_generic_params pinctrl_scmi_oem_dt_params[] = { + {"nxp,func-id", IMX_SCMI_PIN_MUX, -1}, + {"nxp,daisy-id", IMX_SCMI_PIN_DAISY_ID, -1}, + {"nxp,daisy-conf", IMX_SCMI_PIN_DAISY_CFG, -1}, + {"nxp,pin-conf", IMX_SCMI_PIN_CONF, -1}, +}; + +#ifdef CONFIG_DEBUG_FS +static const +struct pin_config_item pinctrl_scmi_oem_conf_items[ARRAY_SIZE(pinctrl_scmi_oem_dt_params)] = { + PCONFDUMP(IMX_SCMI_PIN_MUX, "FUNC-ID", NULL, true), + PCONFDUMP(IMX_SCMI_PIN_DAISY_ID, "DAISY-ID", NULL, true), + PCONFDUMP(IMX_SCMI_PIN_DAISY_CFG, "DAISY-CFG", NULL, true), + PCONFDUMP(IMX_SCMI_PIN_CONF, "PIN-CONF", NULL, true), +}; +#endif + static int pinctrl_scmi_get_pins(struct scmi_pinctrl *pmx, struct pinctrl_desc *desc) { @@ -526,6 +544,11 @@ static int scmi_pinctrl_probe(struct scmi_device *sdev) pmx->pctl_desc.pctlops = &pinctrl_scmi_pinctrl_ops; pmx->pctl_desc.pmxops = &pinctrl_scmi_pinmux_ops; pmx->pctl_desc.confops = &pinctrl_scmi_pinconf_ops; + pmx->pctl_desc.custom_params = pinctrl_scmi_oem_dt_params; + pmx->pctl_desc.num_custom_params = ARRAY_SIZE(pinctrl_scmi_oem_dt_params); +#ifdef CONFIG_DEBUG_FS + pmx->pctl_desc.custom_conf_items = pinctrl_scmi_oem_conf_items; +#endif ret = pinctrl_scmi_get_pins(pmx, &pmx->pctl_desc); if (ret) diff --git a/drivers/pinctrl/pinctrl-scmi.h b/drivers/pinctrl/pinctrl-scmi.h new file mode 100644 index 000000000000..fcc61bc19c98 --- /dev/null +++ b/drivers/pinctrl/pinctrl-scmi.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright 2024 NXP + */ + +#ifndef __DRIVERS_PINCTRL_SCMI_H +#define __DRIVERS_PINCTRL_SCMI_H + +/* OEM VENDOR Pin Configuration Type */ +#define IMX_SCMI_PIN_MUX 192 +#define IMX_SCMI_PIN_CONF 193 +#define IMX_SCMI_PIN_DAISY_ID 194 +#define IMX_SCMI_PIN_DAISY_CFG 195 + +#endif /* __DRIVERS_PINCTRL_SCMI_H */