From patchwork Sat Sep 16 02:03:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 723726 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 BD48D1C15 for ; Sat, 16 Sep 2023 01:59:43 +0000 (UTC) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2046.outbound.protection.outlook.com [40.107.6.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A72CB189; Fri, 15 Sep 2023 18:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MIOnlD14ZFK4kegTAx6zAqRUiuOX8892gMu2wZEE/uup/D9bIoIQSxsSlVvVWIVsmg7jO5nvl/KoZnot57LOMaHJtWThBjAhoKyBFjO3Hq62Dtbv22+9/eYeiqjmlvg3HPlt+OyMYix/Q1ESyWYA9OXEkW6bT6k8brjaI1dD4uZbYsLlBPLrMp+++bgdVh3YNbqObavNoaER5tWKK8GLRAjeElzdr6DUEQZa6suUEkn/LaPuEIQnRNEDpQDDcYmxocSUNkrQuwq55x3ddIAxC5TBPQ9AfjGoPK/SvYyCWZtc0iAMYCG4tAVfPfjawkaSTO/eHhUEAeNRUXngTwVqrQ== 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=lmHYrHs5iCRDyTsOifNno2hhwB84PFpVes/JVIp6qrI=; b=M+Fd9uJFJVlw7NbEFm7KA5GOBJg2AVMs84vMHfN4nT/pzOov/cQaL8+pbt71VGBm4ATTCB4btFwwLilhKjrPKifLDjxtO+BuyJyR/BJZrBmHJgqHOCYtIV8Wo3wrqHipoS6JaNtgQkcV8KBWB9fDM/1lG7GLGNoo7oZBvMflqT6blbPi3mzUtSioQNyP66o63CA9hRsm6yAF+ipKQ6bed8brikTuc6+oFXFhjJXk6RM7AV2AvEkRVjbrS8h357YBUfzl6D4lijo4SL6R49lsDqVxCwsa2xJdFtLS8ATYxX854fLGCG1FLFclE0jkBpb/iT/LkyPxBoYRBU4oRmE6aQ== 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=lmHYrHs5iCRDyTsOifNno2hhwB84PFpVes/JVIp6qrI=; b=MNgHHntjuaMduVYOBnpEvJXYIfXj983UholnGaiRX8qkPubEnaB+FJH4E5szISoKKOpek5eA/h59PGKfZsFwo8/O9mpis9qW4vHzXixc3mn57vWxNUk9CdF2wvC0TMy2qdlubN+S+lAdsFQIhTZ2xS0RrdRTkyPr+ZchWUmC620= 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 AS8PR04MB9142.eurprd04.prod.outlook.com (2603:10a6:20b:449::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.23; Sat, 16 Sep 2023 01:59:40 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::2b3:d8de:95c8:b28b]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::2b3:d8de:95c8:b28b%3]) with mapi id 15.20.6792.023; Sat, 16 Sep 2023 01:59:40 +0000 From: "Peng Fan (OSS)" Date: Sat, 16 Sep 2023 10:03:58 +0800 Subject: [PATCH v2 2/6] dt-bindings: gpio: vf610: correct i.MX8ULP and i.MX93 Message-Id: <20230916-vf610-gpio-v2-2-40823da788d7@nxp.com> References: <20230916-vf610-gpio-v2-0-40823da788d7@nxp.com> In-Reply-To: <20230916-vf610-gpio-v2-0-40823da788d7@nxp.com> To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stefan Agner , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694829858; l=2827; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=UoeweoP4E6/hplm45jahX9OZJSkM06KJeabRlNSyjXY=; b=JtmsVE6ldKrSecMWqQ3FZTerJRlUG+rrOVh1f5CoO1qZrqpU0ZxJYeMykqeTSzHRLk1g6EBlX kIBGw+zwdJlBGzaKb+4kXgivq9Fg38tzeaC6696fmIqgFxsuIK7Igse X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR06CA0004.apcprd06.prod.outlook.com (2603:1096:4:186::20) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: devicetree@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_|AS8PR04MB9142:EE_ X-MS-Office365-Filtering-Correlation-Id: ddda650e-092a-4227-58f2-08dbb6589672 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: YMi2U8+j8zon57PGEbKulB6D4O4y4psx9cY4RchEKx9/0KKLYslYxl95LQBqB3arl1DiJVY3hDOVYKkkTr0DO2D+prjnNh2m+mzLJWzsDaTZBEkHjZxQu574rmNUrFd5Qp0I+pTT4bZ4CruTTkqoJirNfCTEg/rbmNe4+jcfmB3zYvvbggcXfw2F9vMMflqXC12nUT/Shccg4sCM2P/BO9cTQVIjAavrihm7kEWn9p9N6Hy0y5NDC3QUrT+rvSt8Px7gIv7w4eY6azRqsB1nhGzeb3QR8PKX2QcOdrLen/xILGdH6WDkEjXKBah1IaiXh0G8NJjV0ID4ZShW6LmKngpYo5P0MGAoh5/J06q8+pIpjJW899DKgrW2pdB9015sLkEHWDj+zbBQkViwm9cgtZ2xmZA0Nm/5OJgj4qKn+XCc+touYk4ZLXtXFsHGTW15OAf/JYPxHAb9T/C8BLpe1/XNZLHn6Mem7oFwaL3dRzwFELVhDLPbwrlimAD7tBC0kz1T0wIWLyyfMPE1gKRcLbjI/lvcxV+kH8cVsh0D719v943eIb5rJYsVh30SahbG93DfunjaddPMXCc3DY4CFAKi193tMkTpJ3PjEa3ZfI6fXQkcjkyQjBbv+nKbydDGNwJ10/MnauULy74obz0Dfw== 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)(366004)(376002)(396003)(136003)(346002)(39860400002)(451199024)(186009)(1800799009)(6666004)(6512007)(6506007)(6486002)(5660300002)(66476007)(66556008)(66946007)(110136005)(316002)(26005)(52116002)(9686003)(41300700001)(921005)(8936002)(8676002)(4326008)(478600001)(83380400001)(2906002)(86362001)(7416002)(36756003)(38100700002)(38350700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?gxQ7Z1bq7pSsuZ8l6ZNGlV4ZYqLx?= =?utf-8?q?kwLzadJUp9n1q1OoYKLWKPN5/X2O7a3p02VRtOkZX2DI+pxHbSC50JEqnh/WioAhj?= =?utf-8?q?ARd96cikk+WoEC1nvs5myRssnNjvIlJJNOMbssloUs3BItBhtQMos+PgFO74Jxc8F?= =?utf-8?q?5Ip1W7GH+uBtRkUHjuxtG0D/g5zv6rLQVgehp4JFYfBDm+zgO3zx41rpaxzFg2zjC?= =?utf-8?q?++Gn4jGYk6nJJTF/9eS+GUAeRK+P8Jy5NdXCy22VL9kJTsf3HOESPsgxheKVgTlim?= =?utf-8?q?Q25j0v0sjhjIEdBXH2q0xQRRtKGPSXtwiM09mavpdAPh8/joY5XIf/fcWff3BD3yc?= =?utf-8?q?II0nhk2a1XS/LeHP38iWXGl8aiFcNes0OH3tf1+qKgU7kwJ9atGFzyUF783/eh8lH?= =?utf-8?q?UG5eke8fAX4X0Bq/5BcPPYjHwcgD7iMEVUR+PrsWbczbAWc+ejvYgU+JWN2DYHHei?= =?utf-8?q?871oNxl0SL/c4Q3ZCFaqZGrsB0qYf1hkeT2YmW0Za/vAE5hiFh2fMgW8Q//qsXahw?= =?utf-8?q?EPBj15PzGHrAhkhrTxlJ/3kCGKwI1WGM0HRewZ6SwzgCespX1JEOKWCAs33xoEFSb?= =?utf-8?q?eL15QaNRkOhk/OSjZDNumQxXmT3ytAIJ9invHMNPrjI1iLV7GJeReQcASMxhOLtHs?= =?utf-8?q?zgam0QvfwVeEuIzMGfVmlegZze1lMmMsdksM6G++WvKHwjuvFF2hSHJpbG/w6/tbR?= =?utf-8?q?2nP+cAoyynFfvH3AZasgfIpBVChFkzWBzEYzi8AIDD1tUpv65s5z+FgCBg8vJfFwr?= =?utf-8?q?ookD2R2s/MMEIIdZ2ZVwiLHnPCBkdp8o0pcDFGrn1KHqh4+ko+3mvGEdUCUXvKbGV?= =?utf-8?q?57Pyg4L0ToMO22Drggp0elKBFzH2q5EXZDhVgulEf2vzY1qQseUOTkyZSlgBkqn8g?= =?utf-8?q?goC1nq+SQJ59GWlne4LJR3wy6Wc8KBnSLoupeqXcPpIHINRCTe8z0oD4GGPAFh2Km?= =?utf-8?q?d3nziq7CfCRcLbt9S1o3cXoXB+V5aH8yuJQiVwmArCsCyHp7S/7zLQbdQK9Ll+bUZ?= =?utf-8?q?7pd2ScnAJmDgtmSj/EHpwvslQsdtjC9RIUjsa84XpSE2b8mJ0Z8COdkDHyZcCOx32?= =?utf-8?q?e73y/8R7hrwPZLNtu7nS2B2SyDDR7jSmc3bMG0GVs604e1L5ZR/vPfXj8eQ31VyH5?= =?utf-8?q?Lon+phBS2a7LUDJu3uNhD8kz6ymY6qfCgRYRxGi/S2Yqiwaw4t93gKYoRyoQKfVB3?= =?utf-8?q?Utc+wd5AVUDyU6uNdaC0rP00eoEVNdG/zYWfE792c8rl68MqsALdLmgNY9t68euey?= =?utf-8?q?SwCrZ63iXjvZFbU6wzlSzhk+NtVNBz0+dG7559A937PspTnudvqSPIEsLmfb3TwE+?= =?utf-8?q?gNAQRn0eTuBgb7GJzd16Tx0FOxyctffitET9vHA30fZ/6wjkVvkASTgPGDZ1093qr?= =?utf-8?q?e5rA1Gv5mpM906bznOHhVRhVwSFI2gS4kX/bx66ihfBqjtNgdzjC/oMDY11ZtFMRL?= =?utf-8?q?2gQwZs57jRMJ5Nu4Ae1y+luGhFrdEVs7oMrwQc1kvi7b0DuFuDhOTZia4qxNKp8or?= =?utf-8?q?+bTvaG5mw3fW?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ddda650e-092a-4227-58f2-08dbb6589672 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2023 01:59:40.1483 (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: ZdXwy+QCZ9OvSsZKVmA7gEPRgJd5PG7Qbppu2rVs9Lhwh02fLpiKMxzaTPtcFqn2y7JH5iq8Iv/mXj5ms1EZ9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9142 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Peng Fan i.MX8ULP and i.MX93 actually has two interrupts for each gpio controller, one for Trustzone non-secure world, one for secure world. And they has one register based, not two as i.MX7ULP or VF610. Although the Linux Kernel driver gpio-vf610.c could work with fsl,imx7ulp-gpio compatible, it is based on some tricks did in device tree with some offset added to base address. So actually i.MX8ULP/i.MX93 is not compatible with i.MX7ULP. Last, i.MX93 is directly derived from i.MX8ULP, so make i.MX93 GPIO compatible with i.MX8ULP Signed-off-by: Peng Fan --- .../devicetree/bindings/gpio/gpio-vf610.yaml | 41 +++++++++++++++++++--- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml index 59427d97adf5..8c1f87a1a393 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml +++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml @@ -20,6 +20,7 @@ description: | properties: compatible: oneOf: + - const: fsl,imx8ulp-gpio - const: fsl,vf610-gpio - items: - const: fsl,imx7ulp-gpio @@ -27,16 +28,21 @@ properties: - items: - enum: - fsl,imx93-gpio - - fsl,imx8ulp-gpio - - const: fsl,imx7ulp-gpio + - const: fsl,imx8ulp-gpio reg: description: The first reg tuple represents the PORT module, the second tuple represents the GPIO module. - maxItems: 2 + items: + - description: PORT register base address + - description: GPIO register base address + minItems: 1 interrupts: - maxItems: 1 + items: + - description: GPIO Trustzone non-secure interrupt number + - description: GPIO Trustzone secure interrupt number + minItems: 1 interrupt-controller: true @@ -78,6 +84,33 @@ required: - "#gpio-cells" - gpio-controller +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,vf610-gpio + - fsl,imx7ulp-gpio + then: + properties: + interrupts: + items: + - description: GPIO interrupt number + reg: + items: + - description: PORT register base address + - description: GPIO register base address + else: + properties: + interrupts: + items: + - description: GPIO Trustzone non-secure interrupt number + - description: GPIO Trustzone secure interrupt number + reg: + items: + - description: GPIO register base address + additionalProperties: false examples: From patchwork Sat Sep 16 02:04:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 723725 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 E262EED6 for ; Sat, 16 Sep 2023 01:59:55 +0000 (UTC) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2040.outbound.protection.outlook.com [40.107.6.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 047D61BF8; Fri, 15 Sep 2023 18:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nmGpvWn1xEeye6q9ricAS9ztOWfCtypDHeUiHkk4hROaJ5aNvOOe2X43zBEitaCZ56C2hnleswa5wMedB6UT/72rvosefCZsOsUrhLfpuHKjbDuJl76g8U6f2B9wpSn39ttxoP4z7O3biUMcqD8G3EEAZGDynd/tUHAM6uuw+FRQqUWHOpzSyHoYATX4qA+NVXxF5ejyFPFH60z0pbLKptH7qB3B/qpQ2HyHiT7AJVaw5Y42CCbft8FAlPoGERxM+6f0pts7KwFKTHbT2fI0nnGY7Fv9uC6V9CnDT31EwHk6sAscBKUd/qU9QZwNvlx470cjKFMrVFeraWgh8WTQww== 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=U44AIPwM+ReyZbAGkQOUHn8DaaTMrFWFFP3j5j+CWfk=; b=BBR7Mbnac71K5Y9dB1dqKhvwGG9gydrOE9gUC/kP0tfUDY//14+wBvqtZZp8+WzGUIP4RC0N73pk5MXrVeGbRU4kUM9HLsO4S6Yr+HCzwuYIeWTKYgC0pzoh8ckCd/zWuG/ycrxu929yqOATi/xpGI9FXotkKMaJJWU19tcS6WPWTk7kvXcMymjHiaZxUdPUExxa2eZiR3nTo8mDE2osx1/om/ycPF6N4zrztZSBcgOEfyC1d2GxN8xADyhxI9oFuNK/QzEkq873v+5f15B2zZuQLQviMUYoQBQY86akzH0aDbfk7yruLmX2Uyod0S9NxOrvuWpwvM1H0AkPMF2b/w== 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=U44AIPwM+ReyZbAGkQOUHn8DaaTMrFWFFP3j5j+CWfk=; b=Rphp4F5bRq9lnmuOpbU17rYxqFh0SOzA4VTJooaGKZ5QIxWZd2F2mC5PWI6SgkNNGX1bQIh0XobHU9wW+ifxEDSY4dfDA1OjMUicQPfn6TBHxorwdceyq/oQcmFaVlzf8zWB56U2DIOjVvU3mqhmxdH6ORLnXkuIMXv8DOUHnfg= 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 AS8PR04MB9142.eurprd04.prod.outlook.com (2603:10a6:20b:449::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.23; Sat, 16 Sep 2023 01:59:50 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::2b3:d8de:95c8:b28b]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::2b3:d8de:95c8:b28b%3]) with mapi id 15.20.6792.023; Sat, 16 Sep 2023 01:59:50 +0000 From: "Peng Fan (OSS)" Date: Sat, 16 Sep 2023 10:04:00 +0800 Subject: [PATCH v2 4/6] gpio: vf610: add i.MX8ULP of_device_id entry Message-Id: <20230916-vf610-gpio-v2-4-40823da788d7@nxp.com> References: <20230916-vf610-gpio-v2-0-40823da788d7@nxp.com> In-Reply-To: <20230916-vf610-gpio-v2-0-40823da788d7@nxp.com> To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stefan Agner , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694829858; l=3349; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=KIwUQXLlZAXkxFxtSdDA1eXGhBoOZN8UxphNKaoctdo=; b=rsPREGTFgFZ7Oo3ugxbzuQ6T6Xj503wa60wt9WnseGHdql8z6Sb9KCXpo0Ny8ZXps/oEK8dwh UOPxaXqWg78CqXUEDOGMWzFxUj5Q/An/f2JOEOH8YSUVV7KOix8SWEV X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR06CA0004.apcprd06.prod.outlook.com (2603:1096:4:186::20) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: devicetree@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_|AS8PR04MB9142:EE_ X-MS-Office365-Filtering-Correlation-Id: c44f3632-2eff-491b-4d98-08dbb6589c6a 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: dAD2HTMcq30kOiwhR+Xbu7AXhdW+/YT/UWrWGk99VPUfVBkMVSNtzSYvkDgYIkYlDSuQkTtKWl7+IvOeVutJHb43zHFR1W4whjDFYgx6gh4szSkUUKX1haXU7k0X6gZqWM6EIrSfwBvH67bGggLbrCC85C9tEr9sfzOkolmQq13Tge7M59gdEQT+LrOSbde4LPbiH+Bwi5+qPxa66yuVGeKiFb5dpp7mf5pkuH8ntSzdD2roWYdJ2ylsaB3gAixfZx40jKySppu9dXPNP4obDfJiS34SBZARtVpr5hqG04fmOkZiq4A1XeZsD51Uc2zyxTQgouufWW0c6ZY0ZN2w1twXf++OuXwwd6w1ekQMrXDVuwcEyeL+hXx7N/E4prxna12WcKJ/kZ42uIXoGccT9d9fb8sQlMVFG5MW+NseNpkd9dcM+/J0HW7QFMqF9Uo4SMEPbMMgI0bHgM6yH2rihnKw62YJNGjpmwQjBBTUquy1r8nYTxsSCfTk1/uF5/hScpzgFaCf9GwIbOtqCFXdZ1wuhYThLb3zcJCbBZq/a87M0HYmItyiuNH682DJXAqdO4QR9nhoU592i/l7LOOyBaTzPJjVQKfFD0Jrji23k5K14RIq8iNcNTX6K7GECXruZm9n+neIfXdsTcYGabWsnw== 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)(366004)(376002)(396003)(136003)(346002)(39860400002)(451199024)(186009)(1800799009)(6666004)(6512007)(6506007)(6486002)(5660300002)(66476007)(66556008)(66946007)(110136005)(316002)(26005)(52116002)(9686003)(41300700001)(921005)(8936002)(8676002)(4326008)(478600001)(83380400001)(2906002)(86362001)(7416002)(36756003)(38100700002)(38350700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?PvNCheCIfbX1JgbIA1kwDDOVX3rM?= =?utf-8?q?lS1nVeQdfeq07EjfGhOcMZIn0epcz5GqnT/UgD1Vpp5pMSQPCPveLCnxl8vOXPhRA?= =?utf-8?q?BgaCCCKVFHFEcdxXYcrNLoNEvHGJBEcBw9xjja38jVwqz6CluZ+xyRFSZei48ZA5Z?= =?utf-8?q?ZkRZPlLzDAY/ahGFe6O7CRGZ1yRi+oEeHW/3Q8eVp/JZ7PNmPERD8wkkJnlLKFJTH?= =?utf-8?q?ClGW3cajP0zVMUthQYSPCZhqpRagTp59OttoBykHM63NbRCNkBZIlgDDF2/wY1bPa?= =?utf-8?q?WBnGdPH0Hxr390WU90FHtgHHFx4kYxoEgrihJC9VgkKHP28lBaaqbB10uBNTYRPeY?= =?utf-8?q?33lIizSc9Btccm6/6uC+8AwVD4KAGruhbqdMTqqcx/N9t33ORMSz2Bibj+9nH3pRK?= =?utf-8?q?VwPkseUq4SnYK5ivQgceCgLY1DGM4ZISoPy4L+VvJQDc/fppGmBEgdUZzruc70i7Q?= =?utf-8?q?TNqoaZNHab17SpKgezoF2ThXFOHSZ0Q5ftaNqTttwq400xsFeDtMhQmpiVin61hUd?= =?utf-8?q?YuTP7PI7a7U7KoAzgWPnwF/W5qvUewZQshbjo05xlYzwF2GlDjSLpjBnSaONgLNWs?= =?utf-8?q?kmvz065IAtVbbYpKYZrMyg1merB76v3INoESlUOqNRqXS9z4cHGzHCCvBZBWiIMHp?= =?utf-8?q?YFO8zhWENOsQH+OwPZWGAqvDdfn2wWb3yQN/ZF/Jlk8sB5o24sDlkExcK5cBUUYw4?= =?utf-8?q?LpK/KihMh8pVveEph3w7p486h2pjk8mA7MiCDoQtgQpdlFinAaG9tzz454OOH4AOj?= =?utf-8?q?ue5xdp1byOks+S/v6b1N3YWuYPykNq+vFkd+LNQQOXADosWZeFEa7G2NPXDUY0Loo?= =?utf-8?q?Y4utUoB6n3QKVexAjk06FkU5CYTrByW/vOV+wnFkKWIHo5OJxf7qonCwCjU/6MkC2?= =?utf-8?q?WfRHsU0KG5yg5sxDBw04HSV67BKmj/9Rm7SIJ4/dexvsZpZRuc8/bb0CtQdl8x6WH?= =?utf-8?q?Ly6Llc6RXcyRAdqp7/7tTH41RJwoYuG6gmq0I1/r2kQPl2T2lIxkaVoTP7Iq5NGl9?= =?utf-8?q?y3dG+Axuxv6YW2nWljuUgWMYit3s7cZYlm/JG6uGUnQz3ytVuMhM1Gjlho+4B/Qwe?= =?utf-8?q?eFi3NvGCStSZUW4AslgDwI7AyKtEvoyaJCSVoGxasDnHcQAO7yBNjg/XaLiVWohHb?= =?utf-8?q?d4HsSA2JIgWzNv1RvZK0MWDfEVwfYoI39x5u8a5hDNqocL0GukZJ553BwPZrz6W1y?= =?utf-8?q?+19BdoSCrfaEqM3zZL3J/QVaIMDZrTjoC9ot127RvehDcxs8CseOzPISIRre4hG9u?= =?utf-8?q?VlhlXX/rcBZp9Kg0ToZjSCD8OBgPyAdvSXpeS40kzkPZJmJ7rlH3rHlquPkCeO42R?= =?utf-8?q?SB/fwIFz8NOW0slOmt1A+xw55IVkLSTYEKyTvyLFm02IYw3oScuL3Btftie8LGbIm?= =?utf-8?q?eVKCvxkcsxLCCJfztRW3n92HYI9qhPbdY+0cS9WcY9/x0PmVR1ZYqaosNOMvddELL?= =?utf-8?q?DfYdkAqDVsk0BmVDk9tKol+H2PPFhhOu0435nWUnuMG8SF/lKM785QsEjdYAvw3js?= =?utf-8?q?dpIwvAfmvq9i?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c44f3632-2eff-491b-4d98-08dbb6589c6a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2023 01:59:50.1871 (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: xgp6Qu7M4iSJPUGvgLdW6Cq90xfiFenC0Fmj+i/phLa2PJfniaiogVu5S/zIJ5vuWYLViKBXCIsLabTPwlsfqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9142 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Peng Fan i.MX8ULP GPIO supports similar feature as i.MX7ULP GPIO, but i.MX8ULP is not compatible with i.MX7ULP per binding doc. i.MX8ULP only has one register base, not two base. Add a new of_device_id entry for i.MX8ULP. But to make the driver could also support old bindings, check the compatible string first, before check the device data. Signed-off-by: Peng Fan --- drivers/gpio/gpio-vf610.c | 55 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index dbc7ba0ee72c..ef2455093708 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -25,6 +25,7 @@ struct fsl_gpio_soc_data { /* SoCs has a Port Data Direction Register (PDDR) */ bool have_paddr; + bool is_imx8ulp; }; struct vf610_gpio_port { @@ -60,13 +61,22 @@ struct vf610_gpio_port { #define PORT_INT_EITHER_EDGE 0xb #define PORT_INT_LOGIC_ONE 0xc +#define IMX8ULP_GPIO_BASE_OFF 0x40 +#define IMX8ULP_BASE_OFF 0x80 + static const struct fsl_gpio_soc_data imx_data = { .have_paddr = true, }; +static const struct fsl_gpio_soc_data imx8ulp_data = { + .have_paddr = true, + .is_imx8ulp = true, +}; + static const struct of_device_id vf610_gpio_dt_ids[] = { { .compatible = "fsl,vf610-gpio", .data = NULL, }, { .compatible = "fsl,imx7ulp-gpio", .data = &imx_data, }, + { .compatible = "fsl,imx8ulp-gpio", .data = &imx8ulp_data, }, { /* sentinel */ } }; @@ -255,6 +265,42 @@ static void vf610_gpio_disable_clk(void *data) clk_disable_unprepare(data); } +static int vf610_gpio_map_base(struct platform_device *pdev, struct vf610_gpio_port *port) +{ + struct device *dev = &pdev->dev; + bool dual_base; + + /* support old compatible strings */ + if (device_is_compatible(dev, "fsl,imx7ulp-gpio") && + (device_is_compatible(dev, "fsl,imx93-gpio") || + (device_is_compatible(dev, "fsl,imx8ulp-gpio")))) { + dual_base = true; + } else if (port->sdata && port->sdata->is_imx8ulp) { + dual_base = false; + } else { + dual_base = true; + }; + + if (dual_base) { + port->base = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(port->base)) + return PTR_ERR(port->base); + + port->gpio_base = devm_platform_ioremap_resource(pdev, 1); + if (IS_ERR(port->gpio_base)) + return PTR_ERR(port->gpio_base); + } else { + port->base = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(port->base)) + return PTR_ERR(port->base); + + port->gpio_base = port->base + IMX8ULP_GPIO_BASE_OFF; + port->base = port->base + IMX8ULP_BASE_OFF; + } + + return 0; +} + static int vf610_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -269,13 +315,10 @@ static int vf610_gpio_probe(struct platform_device *pdev) return -ENOMEM; port->sdata = of_device_get_match_data(dev); - port->base = devm_platform_ioremap_resource(pdev, 0); - if (IS_ERR(port->base)) - return PTR_ERR(port->base); - port->gpio_base = devm_platform_ioremap_resource(pdev, 1); - if (IS_ERR(port->gpio_base)) - return PTR_ERR(port->gpio_base); + ret = vf610_gpio_map_base(pdev, port); + if (ret) + return ret; port->irq = platform_get_irq(pdev, 0); if (port->irq < 0) From patchwork Sat Sep 16 02:04:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 723724 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 19BD22109 for ; Sat, 16 Sep 2023 02:00:05 +0000 (UTC) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2078.outbound.protection.outlook.com [40.107.6.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B319E1FD6; Fri, 15 Sep 2023 19:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O0zOz8puqy67dB8FKeazUR1A0f+pdlOpPFM+VO2RQS0g6ccKqb023sdlrw+C6GchhaUYyv8JcUoiuazq8ph0WCrwdOecPYFtwpgjGttOrJIYCf7Coh/xhuocNxIxLhHdXoCHDyupwjftAv7ijEH7ZuTFPRL+HxKdHEuB+WxU9W2WlUQQVJOxnFlrnbMj0ei3SOTebhojyywQ/uVnhYzJdLBwjcK2CFnE4EUQS1ggC0T986pn2g8ep39TZ4lQdbHZDqrex2oI//Ku0qvUsJh7FNBbhmcP5gVKadFoirNQlvZeswnYfxXtm5u8pOIfVrjeKrUYdubrSFfwVuXXv/y/9w== 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=PUoJYOkc74aTn7OwouSGG5sIrL44ShOtaRFR9siZXKg=; b=EIwkZ4wbWVVUc6VM7N3ptURls6kvW8T3vwAUvAn4aWSK7VuWbfia28JPnYRl5pCf7/z0z4Puccsxk67LQY+K8LUS+1rpbi2zOvCWYoumywvEqrSEGC8M2ghyalbnR5ZJHIRyPnmCvDpVruxw1RWa9zABZRt15nsryhLAZ3oCtOBzqUWi2JfPK5/t/s5mnGIwodI/YZUvOu6G189Ymaag5YKhrqPnE6507cOtmclMiYB9q71X2Yyd1EWjy/orhKm38wayB+mE4unWHpilEmlB2MtdmDSZLqEmPXy+1mQbBBKexNe19+CFTwmcgeyFt8FLq8RnetdSqlThYJR9ijZkow== 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=PUoJYOkc74aTn7OwouSGG5sIrL44ShOtaRFR9siZXKg=; b=JPkjK6POCCfMfSIChbWDea6QdTl6KvBwRHdKE+g+c8EKnUTce/IBXy9NIRHb/9UB+lgCoTojxnVzcpjHffwlm7AqFX1rd5TLYPU+fJriGWlflPtfLbEjZxJ9aGX4iO5N3OtYk92BBETT36h/9SmTHHdUlGeKUnlRzHIaJxN7eXQ= 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 AS8PR04MB9142.eurprd04.prod.outlook.com (2603:10a6:20b:449::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.23; Sat, 16 Sep 2023 02:00:00 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::2b3:d8de:95c8:b28b]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::2b3:d8de:95c8:b28b%3]) with mapi id 15.20.6792.023; Sat, 16 Sep 2023 02:00:00 +0000 From: "Peng Fan (OSS)" Date: Sat, 16 Sep 2023 10:04:02 +0800 Subject: [PATCH v2 6/6] arm64: dts: imx93: update gpio node Message-Id: <20230916-vf610-gpio-v2-6-40823da788d7@nxp.com> References: <20230916-vf610-gpio-v2-0-40823da788d7@nxp.com> In-Reply-To: <20230916-vf610-gpio-v2-0-40823da788d7@nxp.com> To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stefan Agner , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694829858; l=2846; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=NuO0Jx3iqgnF1U/F/674/K44XfQc3sjrhMAeImj0660=; b=Xfag7iQODsDxU4MKXQzIFwP/SLKKWSdpvW1QT0MAOED9c3G309B1URGp+pD+9SRFWKMS1FixY qbLA4SRgvWkCLY3i1ild88rhFYw3p8BvX3KBiPF+6FhSOQHufpYK2fW X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR06CA0004.apcprd06.prod.outlook.com (2603:1096:4:186::20) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: devicetree@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_|AS8PR04MB9142:EE_ X-MS-Office365-Filtering-Correlation-Id: 5349b1b9-abc5-4301-95f6-08dbb658a251 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: QCez/4EYpmHjaqfs7Za++nPA9nO53ix6asoqi4u/8UKoWyKHLxMhE9h3UqWUjJSSbZJfUMpUeHv3A44y+3KCec4wjTbiF6GRYpGiSdJdaovsFezHkhMh19PyXbUhUXtJuVeK6b/MT71Q63a6lIlEc8QH64Y1iXR/NDLAuJWytGtKqLtqbItFTCgg+ESx8X+3iUCYa25RcaSCXTXcmUIabnoZ8t6/qpagqt8ln9vy9FJuW25P54VDg2gQ8XZMgQbRbCPE5Psie18p7w6SxVS0f8xuaImJgEmoZVHQTkHlO9KpwUshIqUa0cA8Y695uZ86DU0S9c8y+eO6oql8Nu1n6UM8Cq/e7EVjPKQ4GcBXitzVgQJgGSazs6lbGfm8L0arVjS/KlN7MMDm7Uc3Q3GwC4MU3nv8L7i5Ewjltpqqj8N0XVrmIMTmjFhX62mLEh0Cqj0pvuRqmzLYpmprWZ6cshIZRz+vOdoqMU9rQ/c7+2PrlNiDb8p6Krgf3/T0ciLwOQhCb9cG8P9NH1jjb6Omi10HX3w8TX9yUh4FkmBEePKcES4ST+E4SgLl0iMNE7pzRty6PD52gd9aS6Eows8USFnPdyEJutSPNdIWAeSmQOIqzlTuUlCVGS1+X+lt8nrV0uhwYHJlQWXxM0AiHTt73w== 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)(366004)(376002)(396003)(136003)(346002)(39860400002)(451199024)(186009)(1800799009)(6512007)(6506007)(6486002)(5660300002)(66476007)(66556008)(66946007)(110136005)(316002)(26005)(52116002)(9686003)(41300700001)(921005)(8936002)(8676002)(4326008)(478600001)(83380400001)(15650500001)(2906002)(86362001)(7416002)(36756003)(38100700002)(38350700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?2IksA2Pl3urNsXnhptOriPmvY7Vu?= =?utf-8?q?o7D5OUCtYG7C2eB2s94DwsOizCgV2asZqrRFEK0YEVO1pMJTOxsKC0HlMY/s3MzqN?= =?utf-8?q?ULhYVVYCTdJ94kRK/p4n7Q63I208t6pNgTdG3UP96wfJi6d2adJwafQO+h31iHDNa?= =?utf-8?q?u0VKj5aE1F3shA20vqM/uE8Mu8lP+CV0CcfdU/eLQz1oIvZJYbE8/L75vD3lJEZpk?= =?utf-8?q?utvrv/lAywdrWBY8hX76Y2iDBHv4lRs4zg4yKTna9+SpugnSL/Ypzz0jixUz0Ceh1?= =?utf-8?q?eV1Y53WrNIRdJfW959x4QXRB0GD7n4AfSre9E8B9FCZIT7zdjBLvbYInqgPKbmG2H?= =?utf-8?q?ftp6UvF3TW1LQkxaVRsW0eAxLoPtH0s10gQZAdvg1PxIK0/ITPWtIIXlHX46c5cl5?= =?utf-8?q?iYHib4Aqz5yofDNCu6/d5rrDTKO6f9EfoQbCo60jWj1O/OQjs9M1XGMFnAWWqpRh5?= =?utf-8?q?pvU36+3m2dWmLzRQTBeTZJZpbzpA0zcAx2iCM0h9KAgFxiWwcisPZsYDrWXH4DFMY?= =?utf-8?q?VeaVPpLBxxr2GUZhOg8VrCHWnitpcBUbPZQckPlrSgV/HLKhRqdRANXml96tAt1Cb?= =?utf-8?q?EUrzqocBMspXm2KKeb6InbQoE/eJpA1O3yzcUJVuheDu/g5n+4yDeFPZMnXQP+4GD?= =?utf-8?q?GOCjmMJ+tBP2kQmSwQ5NBDrMvWmqRVZ8bNwBmAL6kemYogAdtwuiqZXErSZ9n9YjR?= =?utf-8?q?zQhB4N8N9hKp/hEnlU34kgMEw7Qc7h8we1nuj3Mptim4c3ak/JbFMKQuO11GOtV6e?= =?utf-8?q?Y8Nxb+FsCREc3m0zLzpgnL8Asvh6gmBupx7xPUVO/0PF6eoW54zDR8WTIwm2+gNl3?= =?utf-8?q?Fq62Sxv9tHZHifkH9lmb4nb1UTO57WI6EHipq1tlusKB2Cm5HhFZ90/wXtTJGz7Cr?= =?utf-8?q?LgpYxXr9Bz35oRuxNb+R8uW4dIhOyrHQHq9pSAGWi+ZcB4UIpftQ+k3a07CNoXWtw?= =?utf-8?q?p+9ZtPZSj0IFQr+YSFA6ymG6+nBhdCXXpUK+pAop82nz/BAA78SYL7tvIypXSAacW?= =?utf-8?q?P1EXhoMA19H1u4RvU2Yfz/gHC1bVMmpGRWGIosUi8XE4FP4zqEpJAIGYwiRCGcsUH?= =?utf-8?q?iMu9DO94zvm7ql6tEKrO7pGRYIg0Sb8lKC0babP+2F78yrTWRcwGb9kkmJeWArDTE?= =?utf-8?q?Ew064LxB7SFw5QL0Q4rM6rfyo4sqkBGPunJXfMS+26WIWhQTJPaDzP63nClPKKqxz?= =?utf-8?q?18SIlXYXnmu1Ll3k1dNbwK5Govh8RqvDYykgo87nqe0T+yGEUfAHecohGEI3q3q1g?= =?utf-8?q?8z48ztOorHFe/0PdOO1ctTTqTY9+4RmBrrLKND40KvAMH4ZYJD3MLcugOXFu0EjwK?= =?utf-8?q?zNRUlMfRX5n7EB8Bo1JkWgBdRjm2QCXVdhSeI8QVDDjkRhM6WXqWK3FoqMIgYeR6W?= =?utf-8?q?kDJURgfGUXAziEnSVh8AHLw3WQRjKD38ueXqbFj1AUBKTkCDcwT0QdmsYV1YBT8f1?= =?utf-8?q?BhvfjWfh9tuGiVjBNMcyrqd9SMowMqhPQMO717zAIpgewDUy+IAt+A2SYVszmw2Vd?= =?utf-8?q?Gtx0UHl/nP+9?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5349b1b9-abc5-4301-95f6-08dbb658a251 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2023 02:00:00.0666 (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: UuMUYQtJvbAKktY91rxRIiH6d8+dkfUEFAA/lIkPwMMP5b6WPRgFBiTrN1g9WuqLz3lXp2nyl9pm8SIvZ72bhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9142 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Peng Fan Per binding doc, i.MX93 GPIO supports two interrupts and one register base, compatible with i.MX8ULP. So update the node Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx93.dtsi | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 6f85a05ee7e1..4b111b8c1931 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -825,11 +825,12 @@ usdhc3: mmc@428b0000 { }; gpio2: gpio@43810080 { - compatible = "fsl,imx93-gpio", "fsl,imx7ulp-gpio"; - reg = <0x43810080 0x1000>, <0x43810040 0x40>; + compatible = "fsl,imx93-gpio", "fsl,imx8ulp-gpio"; + reg = <0x43810000 0x1000>; gpio-controller; #gpio-cells = <2>; - interrupts = ; + interrupts = , + ; interrupt-controller; #interrupt-cells = <2>; clocks = <&clk IMX93_CLK_GPIO2_GATE>, @@ -839,11 +840,12 @@ gpio2: gpio@43810080 { }; gpio3: gpio@43820080 { - compatible = "fsl,imx93-gpio", "fsl,imx7ulp-gpio"; - reg = <0x43820080 0x1000>, <0x43820040 0x40>; + compatible = "fsl,imx93-gpio", "fsl,imx8ulp-gpio"; + reg = <0x43820000 0x1000>; gpio-controller; #gpio-cells = <2>; - interrupts = ; + interrupts = , + ; interrupt-controller; #interrupt-cells = <2>; clocks = <&clk IMX93_CLK_GPIO3_GATE>, @@ -854,11 +856,12 @@ gpio3: gpio@43820080 { }; gpio4: gpio@43830080 { - compatible = "fsl,imx93-gpio", "fsl,imx7ulp-gpio"; - reg = <0x43830080 0x1000>, <0x43830040 0x40>; + compatible = "fsl,imx93-gpio", "fsl,imx8ulp-gpio"; + reg = <0x43830000 0x1000>; gpio-controller; #gpio-cells = <2>; - interrupts = ; + interrupts = , + ; interrupt-controller; #interrupt-cells = <2>; clocks = <&clk IMX93_CLK_GPIO4_GATE>, @@ -868,11 +871,12 @@ gpio4: gpio@43830080 { }; gpio1: gpio@47400080 { - compatible = "fsl,imx93-gpio", "fsl,imx7ulp-gpio"; - reg = <0x47400080 0x1000>, <0x47400040 0x40>; + compatible = "fsl,imx93-gpio", "fsl,imx8ulp-gpio"; + reg = <0x47400000 0x1000>; gpio-controller; #gpio-cells = <2>; - interrupts = ; + interrupts = , + ; interrupt-controller; #interrupt-cells = <2>; clocks = <&clk IMX93_CLK_GPIO1_GATE>,