From patchwork Thu Sep 14 02:20:57 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: 722785 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E737EE0212 for ; Thu, 14 Sep 2023 02:16:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233827AbjINCQl (ORCPT ); Wed, 13 Sep 2023 22:16:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233609AbjINCQi (ORCPT ); Wed, 13 Sep 2023 22:16:38 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2078.outbound.protection.outlook.com [40.107.20.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D51C61BCD; Wed, 13 Sep 2023 19:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TViEZCmdVNXsj4EVCYeb7CXLzckeu2Pa6/1l/l8LpOFk5yEgokd0TGPa+LLbxWHIZ/gde11k+ISzRWH1RmVSzs5nVgQa853RPDxzzaXwUpz3GhARt0N5wdDo7A5JPCrarmM0UEwHIksvsbc8n1R1OjG1xGAJVWYw3ZD8Zn/VzIacg1VelOy4a454VHGfjFSRp5XwwhZ9bg/zCRAyBmAr5JvjJNt2gOB/e5I3u33/tr7DiWof3rBv0aXPqxdWXWrCnt222+IbpmKRa+7scp5nbyIAih3grzCG3rPCA8ShyRsUPli5ppRYFSXb+TBXzoa8a4ePY2meKSybVu0IgluFlw== 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=eXvTs+TjNVO8uK4NA2JOlFvhHMtDd3XnoOC3ZLO/AU8=; b=d7/v5IMbDmYgfKW9NnRcdIDZxyQuw+m3vOLmcB6/nPeGWgwK9Glc7FxQaVsPM52llku1uPZXTAK6DvRcJLZyvpcIkZySvuMjT5rDnd28CpfztohcxN9skOccAI9C4RKHcZ7R1ti5SURq6f2otaQ1h9JARlA83QNcVsEMk0Xh/71zwB2vqOQQUrAOQQb8MyOMs01of4HMK7/jY04DudRa7cNaSQG6tDGY/kW8aOLxnSnOTU5+VaHCiH6RBfla6c3tM60KkrcqqRUUWw1ocVAvdi3MPPfTiZKbacJrWlst9I03Ds5tASx977hAV8G0brCgnSoDuHj2ZC4mg7nTHUcAwg== 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=eXvTs+TjNVO8uK4NA2JOlFvhHMtDd3XnoOC3ZLO/AU8=; b=Hnr3uaSKqJ3v/H6VKzSflqqsKWyoxEtq3+QGjgge9nF6E1slJ4oJufOGikyAoIAl3dbQgzLW1GXiDh+U6UbEIs+vGDxMq2+hXbEVdLpi1ad14IDDCQ9cOEschFlr0Dr86xMqY47kQmugD2bj/wkzq/eXBfedsWpOO34cyZ0XaYE= 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 PR3PR04MB7257.eurprd04.prod.outlook.com (2603:10a6:102:93::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.20; Thu, 14 Sep 2023 02:16:31 +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.6768.029; Thu, 14 Sep 2023 02:16:31 +0000 From: "Peng Fan (OSS)" Date: Thu, 14 Sep 2023 10:20:57 +0800 Subject: [PATCH 1/5] dt-bindings: gpio: vf610: correct i.MX8ULP and i.MX93 interrupts Message-Id: <20230914-vf610-gpio-v1-1-3ed418182a6a@nxp.com> References: <20230914-vf610-gpio-v1-0-3ed418182a6a@nxp.com> In-Reply-To: <20230914-vf610-gpio-v1-0-3ed418182a6a@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=1694658075; l=1878; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=fX33GbOupfc1l5ZNjyuO7eo52gumhMQmaomyhmvf9Eo=; b=YMfCKZrdzSLouo2rJPtYpJIMhrqvoaplIR5LvJBLWG3mD65WAscPn8/NMBAKvkh6oKkX2Mklu m9TyNJWOkApAY7bLRn+dEXfVXGYdHOFDBk7Ij3erkpSZB8r/T9v6BNC X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0053.apcprd02.prod.outlook.com (2603:1096:4:1f5::8) 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_|PR3PR04MB7257:EE_ X-MS-Office365-Filtering-Correlation-Id: f30e333a-40f9-4ced-9dc5-08dbb4c89c2d 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: dzHY47lmSrWs88WaLjwGtlXja+UdUJkdOQ4R1FEKt7Dlcz/nLtdVYNVZrugUqoseUFGc7CEc6b3C2EbsDHMxiJmXJe7VQhrPlVAtBfNCKvjm6dPQl3RTT4sVsL3vULqNbFb0ZoC7jQ0eLgbeoPx7+chu5QQO4wrc5jP1LAYVrqphIoYzt63ekG1ktFZP1SETSvPgKMFXjt9sCIKwjahkeZqvykn/ZBCjYL+Js9Q//czTFMY9WY+h3JBo9HStTAbgpJpUzg07UC4eoAb9E5pukt/sl7Ua8NiNorJr3pIkBfydYyaJBnRRBaUCYjBm/GoOywey6Lz8CWEI36mjWXK7n6daJCedV8662ji2GVkd5d5laXlyDqsGrTdWVLFw4Fd3CZoUv51baKUykrOe5JQYNO5LhVXvnnaF44Hl+q6XJXOep2o8p0FXpMgDb8KGsjdaAk8kyhlHrUByxtHC3rdFwwTa5KdsXubOPtUIbQPx4q1e0GFZjHUVRso+016rRJNk8zpzeFgGdA5MYhoXlEbbr+RytdSgRh+LmMAzTbF95+GBCqt67OEvu+/OheV/k4f9m2yZpT7G6ESiH/hvJ4tD1eSzLv/0zhf1HKpNNKHWVRtvXJe3eIJDZrISrYqP2lw7Dpk3ylTy0oElVHmZv3RD5A== 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)(39860400002)(346002)(136003)(376002)(396003)(366004)(451199024)(1800799009)(186009)(7416002)(2906002)(5660300002)(8676002)(8936002)(41300700001)(4326008)(66556008)(66476007)(26005)(66946007)(110136005)(316002)(478600001)(52116002)(6666004)(9686003)(6506007)(6486002)(6512007)(83380400001)(36756003)(921005)(38350700002)(86362001)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SZpeZHEyd23NbOdNHdrYVNFDxHxX?= =?utf-8?q?5hp70MptIgrnTZLOXI4gJ225VshSl5Nqa8WXD56OeXYgLloh3NknW0RUpiuqUnYzP?= =?utf-8?q?gbmBSkcLGGOLe4cYTXj23fTLhg6mNA7YwTmOCl0F6rLcP20PkmZeEASpoe6kclneY?= =?utf-8?q?DJ5lbAgfIEqzoa8jxD7vFOyZECS3F1tK/S3uKTolZiNn8yt2viEq9aH/yb8hFhTU4?= =?utf-8?q?L4AEZU8JCHhmcHwCfbY80n7rGtd/PxcAKRG3Fk5oujMT9zR+HEOB+L3wEsNepI3AG?= =?utf-8?q?sjvK39KXygGCu6HKzsmyMMV5ci5u2b6OT/UmUcIvKYPLPJmbdVv6JSpjbMh5XCAFA?= =?utf-8?q?xVxFkaVpNvlT0T/3u65efTA1C9r6cakjsMhc0jpe966lqU3qFxy2x/ti4VIsVlf6e?= =?utf-8?q?L1liuLEVQGq9G0ExyapLStU08kCch9+U+tcTOXxtvG0ZfDJcdDthqUs9aRdE+X4tv?= =?utf-8?q?HXIa31XFf6hGUQ4mIiIFrxdQsf2Fctd9Fs+eApvLO9HNi4oPS0fhEKz53kniieU8w?= =?utf-8?q?lfB7ypmjb9V4DULDsbqrw+LBIiRg0WItRAq5OrJSrrrnPh88ihox3qOYz+cHsbA/M?= =?utf-8?q?09lrQn3nTprqFXYTZR1Jt+SQmVFBr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rjmGoQYzB?= =?utf-8?q?HOzFOszqV7AO?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f30e333a-40f9-4ced-9dc5-08dbb4c89c2d X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2023 02:16:31.2002 (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: HMhuFdc7ZZfzUfDQWYGHEmSD1AWpw6zeMb8tWSV/oTthE346GcN1MzuJrHUK29u/pGX+4Su69hSq7iLtDWDqCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7257 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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 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 | 27 ++++++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml index 7c2d152e8617..2593cc96fcbb 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml +++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml @@ -20,15 +20,14 @@ description: | properties: compatible: oneOf: + - const: fsl,imx8ulp-gpio - const: fsl,vf610-gpio - items: - const: fsl,imx7ulp-gpio - const: fsl,vf610-gpio - items: - - enum: - - fsl,imx93-gpio - - fsl,imx8ulp-gpio - - const: fsl,imx7ulp-gpio + - const: fsl,imx93-gpio + - const: fsl,imx8ulp-gpio reg: description: The first reg tuple represents the PORT module, the second tuple @@ -36,7 +35,8 @@ properties: maxItems: 2 interrupts: - maxItems: 1 + minItems: 1 + maxItems: 2 interrupt-controller: true @@ -77,6 +77,23 @@ required: - "#gpio-cells" - gpio-controller +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,vf610-gpio + - fsl,imx7ulp-gpio + then: + properties: + interrupts: + maxItems: 1 + else: + properties: + interrupts: + maxItems: 2 + additionalProperties: false examples: