From patchwork Mon May 13 09:20:46 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: 13663240 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 BC22FC25B79 for ; Mon, 13 May 2024 09:13:35 +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:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=4X9ksxRt4i/+zj5oYIKrBWN/ZclFIu6KQq6SbR2i7S8=; b=tuVnt/mYky2o5clYYu+87oHaQT a6nEy8iVil/2kK5p//2Z7Hr9Guj73zLJ393vEeMVbhj1bAq/iUTjZY/5U4Ijw/C8P/UfgL0wS8IHR lnb+B4blMrBKPcySW5Cj55yF4I3HF/1VdVRhvcHikSBixxASlosrQMu4Xbn/hKC1O892rxnFQA91x WAXUEr58OR2dmeBF0+MilwTW8wWYevdUv0bvww0ZWbOYm82Pup/7eSFXSkFHzSCaTdp4JaI9Xjjog KRDeSC+hQp87BQyPlHm+96ZVGX1UqZqevFKXOM+5KE3K4zCHxjqdsPOXcGYnZMTMKom8Ru2s0Z2er /o8tY1FQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s6RkC-0000000CLXL-4ABU; Mon, 13 May 2024 09:13:17 +0000 Received: from mail-vi1eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2613::600] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s6Rjz-0000000CLPa-0dZa for linux-arm-kernel@lists.infradead.org; Mon, 13 May 2024 09:13:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FeKb0mJgrV8OH4pA9Nqwqn6SFYX1vWtrsa9NIe9leMJP5j1muX6KzI8ngLHJIsgxXLluEsM7ft1SdjGF8BqlelNVrwKHCUFuBNWEfDup90yHQo9ou16d+aaMu6lhywwpzcUWUX64jesUZOxSt4IdaHYKir6m441qB4WTNix0/5S8/pPtMicKq9Uur0Pe30rmBMCTou4r8/QbJD3CKdv9igek+Y8dUxfVEer+EOHKc0Hcf6xrSfe5j3MW116NVfdPzbmI+s3/8UfSjVFatTO53KUhJddp/0gevjbu3D5q3oBzq/LW1trxhT/VSKkjGmvUP2nW8mILZ3FQaIuSoh/PbA== 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=9j9ivJOIjo7H5LlQ0RHCh7+/Fj11lFRVDhUe+i4XIGM=; b=fuluBNJmKt4ZVYKeSNh5kQXYx4y+5rcDuKdoAMXDdzx3eFdsBcIgxpm3OKlzFZnrUnwRSqPw2hQP5F4jB4pnVM/JFIqqttEauPQaxS5i41UX8sFZIHBwQmrdDM9j6PBlequW/lH0BvW5LulrSi8OaOk1lY9gVk4OdGwRx+AzzuXYpP6Ug0GcQpiJzlYWgL7K6ndxv+D9y2Njl97udQacWPPjarUwrVQd1eHALKPG7bJdRwz+3DZOTbdmffp3zt2j5vSCa6XG06saxTJnrMVVHtEdWwT6IhbUEsYfTRmp1SGSZNTfZedDi1rTYfOGCI+q86gEO7hPHlM6FXxdkyeACA== 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=9j9ivJOIjo7H5LlQ0RHCh7+/Fj11lFRVDhUe+i4XIGM=; b=haHILfpWfNuq2mNpR4Jn2FzOcaAgnpwEzZCJepTosoa04Kw+EMUmMYaUY5YHPs/2lVaCIyqXKnWfxc/tuzVFWLUGHDeQTu1lqz9yZnksvgtB6fLaTl/T9oABYG/ro6ddRUquGLW5CEbIjDbWVW78ipgHCJwIRvsEoTe+jy2tFvI= 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 PAXPR04MB8910.eurprd04.prod.outlook.com (2603:10a6:102:20d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Mon, 13 May 2024 09:12:58 +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.052; Mon, 13 May 2024 09:12:58 +0000 From: "Peng Fan (OSS)" Date: Mon, 13 May 2024 17:20:46 +0800 Subject: [PATCH 1/2] dt-bindings: pinctrl: imx: Support i.MX91 IOMUXC Message-Id: <20240513-imx91-pinctrl-v1-1-c99a23c6843a@nxp.com> References: <20240513-imx91-pinctrl-v1-0-c99a23c6843a@nxp.com> In-Reply-To: <20240513-imx91-pinctrl-v1-0-c99a23c6843a@nxp.com> To: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sascha Hauer 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=1715592058; l=1487; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=PIjk/r5I8lJuO2cvKIasL+URDyxl5jPD+uKmarinY5w=; b=FNXM8Mx8oiMq9CpjjGMXRAaxjq7ATH+pwyPP08nPoMhT1DRgT3ytRvjwPl1EYa3GfJBfTR0EJ RJveNsF/W3qBiuJOoavZQJqFysvrPOhF7H9BrKnvjgWnvokSUx42xEM X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SGXP274CA0001.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::13) 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_|PAXPR04MB8910:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f82bdc7-2ec6-40dd-4ebd-08dc732ce1e0 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|376005|7416005|52116005|1800799015|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?kL/XvACLu4iAL3KFS5s0FNIpkzPUXJU?=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r46caUgKCqXuALHaVs1HH9cNBTkV5N9rJ2ANmlI7jX2nYZkN?= =?utf-8?q?z1bAOiQmcPLLf4USBrPZSeQhzOdCqvSxhGYGiggDkQdGr37OWlVZjM0+pd6idq6lY?= =?utf-8?q?p98nxh62AeWQwp2uVTmij6xU/DTaxx0vsQxoFPEMdxFmjmvgjHRmBoAAZRdOIVoXc?= =?utf-8?q?ik+39q9yM5i5Q4WbxwORyEyWHF9aptF4fXDCKRM8QNBIvnRZRbGxE+dQ8I5DmlCgs?= =?utf-8?q?4YTpmAAICxfqa6NukiTitViFMlm2RAEmohdnnC2SDm3j+0tO42DbwstJPKMxT9Rgj?= =?utf-8?q?/VsKWfCUoWjVArJf0OuYkSu2ZP+FBZ/0HfBntUR4NKt1PUjhZyF8PhT+k=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)(376005)(7416005)(52116005)(1800799015)(366007)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?pWjGwL0PQlG0qbrieMZ5PlcDIanY?= =?utf-8?q?TiturgHNDATLMwpuAmSs+gIHopW+efM7Ix+90ZttNbxUfuWMbBbSya7Z5SObaegAc?= =?utf-8?q?cHn+fPpliZJrJwlj0RaPtj8ndG8OgiIV2hYT8vzlfW0qCb5oaO+jFGMnVMXRQ9Ytx?= =?utf-8?q?Bx4w4ye+XPRrWRFia4GiwabNutH4l2cKSZQPEpaGTrg1qaTqTuzi9Oo7GLOVVxi/q?= =?utf-8?q?sKshmYuptJgw21mC0r/tEgHJRKOoYWJp0g0/CJkxQ2ZkzrEpDIzktSswbu2TE1j1U?= =?utf-8?q?rxcvQDfODUcgn8gpbvaqzuuJ2zXBjPkN5Flx+TmrtYEiD46FuSGvx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dnKg8VhWGLm?= =?utf-8?q?qL+3zTLdVMACUGmt7u2TMb0HNy+U9MCA8f3S9uME27Hkct/ZvWMoC9LuPKhub/m+7?= =?utf-8?q?xA+i6SI9MeoY73N4Erw8nJ5U7810mM3USIqd4KfSk7JiPltc77AUKIzsg8qamBoyT?= =?utf-8?q?zoJEYsU0uv/Un9i8goQRrY5SIEvo8BCEAPV9WJySUkbw8T1RgxBrx3YytJcvdZAGj?= =?utf-8?q?6o5WkjBRbERgatFq8BlWr55DuS/FgMIZoQmQk5GMLlYftedcBtIScNFsXVkJZC1S1?= =?utf-8?q?jypnn7EBqDUiI0+kpHqOBmdKr2+dKe0rWjHBxfGetXAQGMZ1Ghk4VLMdLkSdIjOcq?= =?utf-8?q?zpGdgLYs0qMS?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f82bdc7-2ec6-40dd-4ebd-08dc732ce1e0 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2024 09:12:58.6847 (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: IFSAiO+aSB/p76UQRPbqpoqBoVSv5qMbehNpDrEFg62cEzrbwqdYH9GEIRnikL22nC6vkWWH7ohQcwiadfg2YA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8910 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240513_021303_361452_92331DEF X-CRM114-Status: UNSURE ( 8.30 ) X-CRM114-Notice: Please train this message. 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 From: Peng Fan i.MX91 and i.MX93 share similar design. They could share same dt-binding doc, so rename fsl,imx93-pinctrl.yaml to fsl,imx9-pinctrl.yaml and add i.MX91 compatible string Signed-off-by: Peng Fan Acked-by: Conor Dooley --- .../pinctrl/{fsl,imx93-pinctrl.yaml => fsl,imx9-pinctrl.yaml} | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,imx93-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/fsl,imx9-pinctrl.yaml similarity index 93% rename from Documentation/devicetree/bindings/pinctrl/fsl,imx93-pinctrl.yaml rename to Documentation/devicetree/bindings/pinctrl/fsl,imx9-pinctrl.yaml index 2f2405102996..a438db8884f2 100644 --- a/Documentation/devicetree/bindings/pinctrl/fsl,imx93-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx9-pinctrl.yaml @@ -1,10 +1,10 @@ # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2 --- -$id: http://devicetree.org/schemas/pinctrl/fsl,imx93-pinctrl.yaml# +$id: http://devicetree.org/schemas/pinctrl/fsl,imx9-pinctrl.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Freescale IMX93 IOMUX Controller +title: Freescale IMX9 IOMUX Controller maintainers: - Peng Fan @@ -18,7 +18,9 @@ allOf: properties: compatible: - const: fsl,imx93-iomuxc + enum: + - fsl,imx91-iomuxc + - fsl,imx93-iomuxc reg: maxItems: 1 From patchwork Mon May 13 09:20:47 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: 13663239 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 8E3C9C25B10 for ; Mon, 13 May 2024 09:13:32 +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:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=WZ2gZZxdZXgbiZgyLOnSIC1cFDW3MqX4g1LvJNoBoDA=; b=XEkgiCOhvrJgY87By4+rVIY70y 1ddWLwh01sfGSdDN+o/1jWaiOWHjYSiwkkO5MeH0FPiAZZp/LpPDhh0KhuvRr/NlCm9WgX/mCE1zc LEBLOZz+Yl5KBPDe8/ZSXYvZK+GEwgfdNlRbokTRF+EPI4tYXX6EPw0f39pGrLq5sB2fFfB8r/bNx JzH5llDDKDaFC/gCVZ6Iq7u+ZlirUtLQdImBMtyqjHxYXcfXfn7Fjh6lWixmBAqVNBmrI4ZrW5PgC +Xos0BzfM/56Fqfp/b0sWvgerPkJIhtvg0wfjFhlNz2Cn5HhTV4u3w+3eb7oCoTBXItXtwb2pI5Zg PWyP8Egw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s6RkE-0000000CLYC-2Swa; Mon, 13 May 2024 09:13:18 +0000 Received: from mail-vi1eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2613::600] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s6Rk6-0000000CLPa-1nxY for linux-arm-kernel@lists.infradead.org; Mon, 13 May 2024 09:13:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YLUFl8QgQtKgVXtZk+XWjwi7OKSIo+BaCmG4yLPY03Br73aoOkxiSRQmCGQ5ptPnritlBjnZBx4h1rioQ6fwKhIemNDQqZ5TGQ7LurYna0s+hsTRVjM0Xv8ailQY+wyZbu+skqjawifxtL+5me8UKiAiEDokVAMZZ8gfuPApeyGvqxHaww4LGo1ccNWhITkqym6Cqi34TzL94gPoGr6ACtb2JHoixEPRe5VwzmXijK5X08XwY1j7Lj2nGY4OhStoPZ34QMm9JmIWyosYWcmw1JbeNsGHdC8we3Zxr/dNW0XMMYZOJiKJBWShMjI0eKwWrye/JvvL6kA2n+dJg7k0Ew== 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=OU7izlKho4VwHmq9uf1XihUx42ovfQ1s1kVAXmpkjRc=; b=cloQx8gYzS1/M7jVtJ3EZ6N8XPf2tXRn9ZHxjYApP5y0leZdU9TEcl0BFqp0L+XG7FX6F/9OLvScI4mRUztuB1brR9cVvjBedSQqOCa0szLZtYpxsJr6qkTPjTDKkCxMaBhxHJ//CKeQbXg392IFuD9XqKTB9rTEpdHK/819f6ZTXZvcum1SQ0GWIxTkBxkGGushUmVptQbv0Lpc1O4ZvD+h7t2xaD30+v4FJiQH5TD2SeXr9RPwhhJDGieamA/dg2wWW2oIxdaVLLth0s1b+iixjL0/MAIR5vrr1fQMPaukY0ZZchQnYRV9uY3XouchwDlZYu+xz4gKoiIPuhopXA== 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=OU7izlKho4VwHmq9uf1XihUx42ovfQ1s1kVAXmpkjRc=; b=C51z2VbWAAFlAaZHUrgxzRgTNd85S0bQ3K+rBqsmKZdZ4ar7wdGjtEAMjrdQ6+cBM1mwk5NWlD6xiRr2MOhmtiCCxiMxwKHqxhC11HFhLcr4KIOeoN7WaaZjPMNcomMNvBdeoqZezMagky3p25AUQxCCsMTs6+w3Q0nPsnEQ3bc= 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 PAXPR04MB8910.eurprd04.prod.outlook.com (2603:10a6:102:20d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Mon, 13 May 2024 09:13:04 +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.052; Mon, 13 May 2024 09:13:04 +0000 From: "Peng Fan (OSS)" Date: Mon, 13 May 2024 17:20:47 +0800 Subject: [PATCH 2/2] pinctrl: imx: Add pinctrl driver support for i.MX91 Message-Id: <20240513-imx91-pinctrl-v1-2-c99a23c6843a@nxp.com> References: <20240513-imx91-pinctrl-v1-0-c99a23c6843a@nxp.com> In-Reply-To: <20240513-imx91-pinctrl-v1-0-c99a23c6843a@nxp.com> To: Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sascha Hauer 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=1715592058; l=10779; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=gdaFJK07OmCQ2qJlNS1p4HLYwSgg8vqhFud9IOcFEdk=; b=D8v0T8MBJmB4riOd93Ja2/mA0r67zfJy5GuHCGXz3xd9rHoaZYQXWsFvLVRSnWVLCUUEqc+da TQqC/f/SLaECVehilMBsaMfho1W7Y2UhlyhqWXU3r9woCGJnEM+Lzon X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SGXP274CA0001.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::13) 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_|PAXPR04MB8910:EE_ X-MS-Office365-Filtering-Correlation-Id: a7be6c6e-f9c0-4259-f69d-08dc732ce540 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|376005|7416005|52116005|1800799015|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Z14A3u5iEph4IHTDYosk1GrX7r5X3TJ?= =?utf-8?q?4xHj8NF4dSc8bOPj1ESlA83sFwTOeilI+tl/STx/wOmhRFLpNy2KuowIAd+syPsFE?= =?utf-8?q?G02m3nFJtySMptumbJ/Zw6W1eMcEm+1f7tYOG9GQ1quiTWl8tFLsw8hTk5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zC9o2iJNvzTxa6FIwZhJdOb7a7F97rO1MNzCGDrXVyfBKu452/oILehcKzx?= =?utf-8?q?K9v2ApbtrS4BOdYvAyuXCiJfFhnNqFib3p5eypSUhC6rEVEjZfKUwRFaHZ6UO2+rj?= =?utf-8?q?NtIUuA1bD+SpXwclCUpXtYNUGS2vKPEA3q2qoM7XwVbzcLmjdE0CkiFzS6oOliQM3?= =?utf-8?q?MKBeeC55wG1/LzJ2thZd5G601zO0eEfjq9Bhv6rQWCtKka7+wLW1MxSG/QJf7Uj14?= =?utf-8?q?2ygfMisuf19/CeALLnIooPsOtuk557OyGLnwSns2/KvrmePaOJ8QgGmI=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)(376005)(7416005)(52116005)(1800799015)(366007)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?iQWPWleWxNg72frIqYprbBpbdczO?= =?utf-8?q?sIab61NLbCw3HDL6hZLmsyl1ubMrst2V3CZQd/Qm2w0qv3UJWQtI7rDd57AHvbIHp?= =?utf-8?q?aR2EIlzA9b4PvxIe3g83apOeIva6/3wPNdMLOVCYyCLRRMzIQXA7GBbFOHzAWibcV?= =?utf-8?q?MHxV2IzVJVoMq0scu98MrtfNSPGEuvumOf2lg/QTL+Rpl+yOw1HQ/PsohFouy3/rg?= =?utf-8?q?5C+M4ON1fWq/Vsu/1rz4OUS8b5Zg70tezgek9nV/toI7zQV4rPrIUOXCpFIhmdOjL?= =?utf-8?q?LAUmlZAQWWp5TOe3JPKHGUFNxel4tn6xGmy5y6Mo0wlf+HfC20jMi7FI3qm9iLTkO?= =?utf-8?q?e6He0ND2/gsoPdp4ASXrX5J0EuUMZtYC7vm+84xvvy3VArF9uapmpJV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Ivy2?= =?utf-8?q?vIddhFDevMW8b2NVoREa5L/14n8/PKcjwsa7S0r0V3UM1Wnos8hUkZV8P7A4g27dN?= =?utf-8?q?RWm5nAo3g710mS+J/a5GnNZW+eg0ICCcSDaq5kanxjyNXNI8dYrViSK3fSnpzcMNW?= =?utf-8?q?h6zW/0fB6lhnVGWc+AC9FphdNnIT/HuiZJFoork7QNHT4Zixv7X2+gUahEQJA5cv5?= =?utf-8?q?zvRyZSyCSz+rx+Cj0+MrbzyOe06pOzOO/pWpGab2UxELuNGYxus7lDHOviYfpED9p?= =?utf-8?q?nwbiWaV8cneT?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7be6c6e-f9c0-4259-f69d-08dc732ce540 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2024 09:13:04.2686 (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: TsBo9oQ2h3Eki/RFOGERb+SPzu1pduuuwAWCbMYD85ss4/5RwGfhw8HjfRyVrXOfs+6w/j0XQdeCABoesYC3ZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8910 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240513_021310_685551_A6BBA01A X-CRM114-Status: GOOD ( 12.90 ) 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 From: Peng Fan Add NXP i.MX91 pinctrl driver Signed-off-by: Peng Fan --- drivers/pinctrl/freescale/Kconfig | 7 + drivers/pinctrl/freescale/Makefile | 1 + drivers/pinctrl/freescale/pinctrl-imx91.c | 271 ++++++++++++++++++++++++++++++ 3 files changed, 279 insertions(+) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 27bdc548f3a7..011dbc9b9680 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -184,6 +184,13 @@ config PINCTRL_IMXRT1050 help Say Y here to enable the imxrt1050 pinctrl driver +config PINCTRL_IMX91 + tristate "IMX91 pinctrl driver" + depends on ARCH_MXC + select PINCTRL_IMX + help + Say Y here to enable the imx91 pinctrl driver + config PINCTRL_IMX93 tristate "IMX93 pinctrl driver" depends on ARCH_MXC diff --git a/drivers/pinctrl/freescale/Makefile b/drivers/pinctrl/freescale/Makefile index 647dff060477..70747bdf8fc2 100644 --- a/drivers/pinctrl/freescale/Makefile +++ b/drivers/pinctrl/freescale/Makefile @@ -25,6 +25,7 @@ obj-$(CONFIG_PINCTRL_IMX8QM) += pinctrl-imx8qm.o obj-$(CONFIG_PINCTRL_IMX8QXP) += pinctrl-imx8qxp.o obj-$(CONFIG_PINCTRL_IMX8DXL) += pinctrl-imx8dxl.o obj-$(CONFIG_PINCTRL_IMX8ULP) += pinctrl-imx8ulp.o +obj-$(CONFIG_PINCTRL_IMX91) += pinctrl-imx91.o obj-$(CONFIG_PINCTRL_IMX93) += pinctrl-imx93.o obj-$(CONFIG_PINCTRL_VF610) += pinctrl-vf610.o obj-$(CONFIG_PINCTRL_MXS) += pinctrl-mxs.o diff --git a/drivers/pinctrl/freescale/pinctrl-imx91.c b/drivers/pinctrl/freescale/pinctrl-imx91.c new file mode 100644 index 000000000000..5421141c586a --- /dev/null +++ b/drivers/pinctrl/freescale/pinctrl-imx91.c @@ -0,0 +1,271 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2024 NXP + */ + +#include +#include +#include +#include +#include + +#include "pinctrl-imx.h" + +enum imx91_pads { + IMX91_PAD_DAP_TDI = 0, + IMX91_PAD_DAP_TMS_SWDIO = 1, + IMX91_PAD_DAP_TCLK_SWCLK = 2, + IMX91_PAD_DAP_TDO_TRACESWO = 3, + IMX91_PAD_GPIO_IO00 = 4, + IMX91_PAD_GPIO_IO01 = 5, + IMX91_PAD_GPIO_IO02 = 6, + IMX91_PAD_GPIO_IO03 = 7, + IMX91_PAD_GPIO_IO04 = 8, + IMX91_PAD_GPIO_IO05 = 9, + IMX91_PAD_GPIO_IO06 = 10, + IMX91_PAD_GPIO_IO07 = 11, + IMX91_PAD_GPIO_IO08 = 12, + IMX91_PAD_GPIO_IO09 = 13, + IMX91_PAD_GPIO_IO10 = 14, + IMX91_PAD_GPIO_IO11 = 15, + IMX91_PAD_GPIO_IO12 = 16, + IMX91_PAD_GPIO_IO13 = 17, + IMX91_PAD_GPIO_IO14 = 18, + IMX91_PAD_GPIO_IO15 = 19, + IMX91_PAD_GPIO_IO16 = 20, + IMX91_PAD_GPIO_IO17 = 21, + IMX91_PAD_GPIO_IO18 = 22, + IMX91_PAD_GPIO_IO19 = 23, + IMX91_PAD_GPIO_IO20 = 24, + IMX91_PAD_GPIO_IO21 = 25, + IMX91_PAD_GPIO_IO22 = 26, + IMX91_PAD_GPIO_IO23 = 27, + IMX91_PAD_GPIO_IO24 = 28, + IMX91_PAD_GPIO_IO25 = 29, + IMX91_PAD_GPIO_IO26 = 30, + IMX91_PAD_GPIO_IO27 = 31, + IMX91_PAD_GPIO_IO28 = 32, + IMX91_PAD_GPIO_IO29 = 33, + IMX91_PAD_CCM_CLKO1 = 34, + IMX91_PAD_CCM_CLKO2 = 35, + IMX91_PAD_CCM_CLKO3 = 36, + IMX91_PAD_CCM_CLKO4 = 37, + IMX91_PAD_ENET1_MDC = 38, + IMX91_PAD_ENET1_MDIO = 39, + IMX91_PAD_ENET1_TD3 = 40, + IMX91_PAD_ENET1_TD2 = 41, + IMX91_PAD_ENET1_TD1 = 42, + IMX91_PAD_ENET1_TD0 = 43, + IMX91_PAD_ENET1_TX_CTL = 44, + IMX91_PAD_ENET1_TXC = 45, + IMX91_PAD_ENET1_RX_CTL = 46, + IMX91_PAD_ENET1_RXC = 47, + IMX91_PAD_ENET1_RD0 = 48, + IMX91_PAD_ENET1_RD1 = 49, + IMX91_PAD_ENET1_RD2 = 50, + IMX91_PAD_ENET1_RD3 = 51, + IMX91_PAD_ENET2_MDC = 52, + IMX91_PAD_ENET2_MDIO = 53, + IMX91_PAD_ENET2_TD3 = 54, + IMX91_PAD_ENET2_TD2 = 55, + IMX91_PAD_ENET2_TD1 = 56, + IMX91_PAD_ENET2_TD0 = 57, + IMX91_PAD_ENET2_TX_CTL = 58, + IMX91_PAD_ENET2_TXC = 59, + IMX91_PAD_ENET2_RX_CTL = 60, + IMX91_PAD_ENET2_RXC = 61, + IMX91_PAD_ENET2_RD0 = 62, + IMX91_PAD_ENET2_RD1 = 63, + IMX91_PAD_ENET2_RD2 = 64, + IMX91_PAD_ENET2_RD3 = 65, + IMX91_PAD_SD1_CLK = 66, + IMX91_PAD_SD1_CMD = 67, + IMX91_PAD_SD1_DATA0 = 68, + IMX91_PAD_SD1_DATA1 = 69, + IMX91_PAD_SD1_DATA2 = 70, + IMX91_PAD_SD1_DATA3 = 71, + IMX91_PAD_SD1_DATA4 = 72, + IMX91_PAD_SD1_DATA5 = 73, + IMX91_PAD_SD1_DATA6 = 74, + IMX91_PAD_SD1_DATA7 = 75, + IMX91_PAD_SD1_STROBE = 76, + IMX91_PAD_SD2_VSELECT = 77, + IMX91_PAD_SD3_CLK = 78, + IMX91_PAD_SD3_CMD = 79, + IMX91_PAD_SD3_DATA0 = 80, + IMX91_PAD_SD3_DATA1 = 81, + IMX91_PAD_SD3_DATA2 = 82, + IMX91_PAD_SD3_DATA3 = 83, + IMX91_PAD_SD2_CD_B = 84, + IMX91_PAD_SD2_CLK = 85, + IMX91_PAD_SD2_CMD = 86, + IMX91_PAD_SD2_DATA0 = 87, + IMX91_PAD_SD2_DATA1 = 88, + IMX91_PAD_SD2_DATA2 = 89, + IMX91_PAD_SD2_DATA3 = 90, + IMX91_PAD_SD2_RESET_B = 91, + IMX91_PAD_I2C1_SCL = 92, + IMX91_PAD_I2C1_SDA = 93, + IMX91_PAD_I2C2_SCL = 94, + IMX91_PAD_I2C2_SDA = 95, + IMX91_PAD_UART1_RXD = 96, + IMX91_PAD_UART1_TXD = 97, + IMX91_PAD_UART2_RXD = 98, + IMX91_PAD_UART2_TXD = 99, + IMX91_PAD_PDM_CLK = 100, + IMX91_PAD_PDM_BIT_STREAM0 = 101, + IMX91_PAD_PDM_BIT_STREAM1 = 102, + IMX91_PAD_SAI1_TXFS = 103, + IMX91_PAD_SAI1_TXC = 104, + IMX91_PAD_SAI1_TXD0 = 105, + IMX91_PAD_SAI1_RXD0 = 106, + IMX91_PAD_WDOG_ANY = 107, +}; + +/* Pad names for the pinmux subsystem */ +static const struct pinctrl_pin_desc imx91_pinctrl_pads[] = { + IMX_PINCTRL_PIN(IMX91_PAD_DAP_TDI), + IMX_PINCTRL_PIN(IMX91_PAD_DAP_TMS_SWDIO), + IMX_PINCTRL_PIN(IMX91_PAD_DAP_TCLK_SWCLK), + IMX_PINCTRL_PIN(IMX91_PAD_DAP_TDO_TRACESWO), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO00), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO01), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO02), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO03), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO04), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO05), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO06), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO07), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO08), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO09), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO10), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO11), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO12), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO13), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO14), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO15), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO16), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO17), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO18), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO19), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO20), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO21), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO22), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO23), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO24), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO25), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO26), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO27), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO28), + IMX_PINCTRL_PIN(IMX91_PAD_GPIO_IO29), + IMX_PINCTRL_PIN(IMX91_PAD_CCM_CLKO1), + IMX_PINCTRL_PIN(IMX91_PAD_CCM_CLKO2), + IMX_PINCTRL_PIN(IMX91_PAD_CCM_CLKO3), + IMX_PINCTRL_PIN(IMX91_PAD_CCM_CLKO4), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_MDC), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_MDIO), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_TD3), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_TD2), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_TD1), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_TD0), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_TX_CTL), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_TXC), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_RX_CTL), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_RXC), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_RD0), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_RD1), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_RD2), + IMX_PINCTRL_PIN(IMX91_PAD_ENET1_RD3), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_MDC), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_MDIO), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_TD3), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_TD2), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_TD1), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_TD0), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_TX_CTL), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_TXC), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_RX_CTL), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_RXC), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_RD0), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_RD1), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_RD2), + IMX_PINCTRL_PIN(IMX91_PAD_ENET2_RD3), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_CLK), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_CMD), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_DATA0), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_DATA1), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_DATA2), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_DATA3), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_DATA4), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_DATA5), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_DATA6), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_DATA7), + IMX_PINCTRL_PIN(IMX91_PAD_SD1_STROBE), + IMX_PINCTRL_PIN(IMX91_PAD_SD2_VSELECT), + IMX_PINCTRL_PIN(IMX91_PAD_SD3_CLK), + IMX_PINCTRL_PIN(IMX91_PAD_SD3_CMD), + IMX_PINCTRL_PIN(IMX91_PAD_SD3_DATA0), + IMX_PINCTRL_PIN(IMX91_PAD_SD3_DATA1), + IMX_PINCTRL_PIN(IMX91_PAD_SD3_DATA2), + IMX_PINCTRL_PIN(IMX91_PAD_SD3_DATA3), + IMX_PINCTRL_PIN(IMX91_PAD_SD2_CD_B), + IMX_PINCTRL_PIN(IMX91_PAD_SD2_CLK), + IMX_PINCTRL_PIN(IMX91_PAD_SD2_CMD), + IMX_PINCTRL_PIN(IMX91_PAD_SD2_DATA0), + IMX_PINCTRL_PIN(IMX91_PAD_SD2_DATA1), + IMX_PINCTRL_PIN(IMX91_PAD_SD2_DATA2), + IMX_PINCTRL_PIN(IMX91_PAD_SD2_DATA3), + IMX_PINCTRL_PIN(IMX91_PAD_SD2_RESET_B), + IMX_PINCTRL_PIN(IMX91_PAD_I2C1_SCL), + IMX_PINCTRL_PIN(IMX91_PAD_I2C1_SDA), + IMX_PINCTRL_PIN(IMX91_PAD_I2C2_SCL), + IMX_PINCTRL_PIN(IMX91_PAD_I2C2_SDA), + IMX_PINCTRL_PIN(IMX91_PAD_UART1_RXD), + IMX_PINCTRL_PIN(IMX91_PAD_UART1_TXD), + IMX_PINCTRL_PIN(IMX91_PAD_UART2_RXD), + IMX_PINCTRL_PIN(IMX91_PAD_UART2_TXD), + IMX_PINCTRL_PIN(IMX91_PAD_PDM_CLK), + IMX_PINCTRL_PIN(IMX91_PAD_PDM_BIT_STREAM0), + IMX_PINCTRL_PIN(IMX91_PAD_PDM_BIT_STREAM1), + IMX_PINCTRL_PIN(IMX91_PAD_SAI1_TXFS), + IMX_PINCTRL_PIN(IMX91_PAD_SAI1_TXC), + IMX_PINCTRL_PIN(IMX91_PAD_SAI1_TXD0), + IMX_PINCTRL_PIN(IMX91_PAD_SAI1_RXD0), + IMX_PINCTRL_PIN(IMX91_PAD_WDOG_ANY), +}; + +static const struct imx_pinctrl_soc_info imx91_pinctrl_info = { + .pins = imx91_pinctrl_pads, + .npins = ARRAY_SIZE(imx91_pinctrl_pads), + .flags = ZERO_OFFSET_VALID, +}; + +static int imx91_pinctrl_probe(struct platform_device *pdev) +{ + return imx_pinctrl_probe(pdev, &imx91_pinctrl_info); +} + +static const struct of_device_id imx91_pinctrl_of_match[] = { + { .compatible = "fsl,imx91-iomuxc", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, imx91_pinctrl_of_match); + +static struct platform_driver imx91_pinctrl_driver = { + .driver = { + .name = "imx91-pinctrl", + .of_match_table = imx91_pinctrl_of_match, + .suppress_bind_attrs = true, + }, + .probe = imx91_pinctrl_probe, +}; + +static int __init imx91_pinctrl_init(void) +{ + return platform_driver_register(&imx91_pinctrl_driver); +} +arch_initcall(imx91_pinctrl_init); + +MODULE_AUTHOR("Peng Fan "); +MODULE_DESCRIPTION("NXP i.MX91 pinctrl driver"); +MODULE_LICENSE("GPL");