From patchwork Thu Sep 26 14:31:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Stefanescu X-Patchwork-Id: 13813424 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 761ACCDE00D for ; Thu, 26 Sep 2024 14:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=adzHJ1u+haq0OopMnC/hgMBYg+qqVAhJEhzx5nEN5VI=; b=ZIHTN1I9M7RrI4xdbYfeLzAkMH /zLKmwqAZ3g0+wVVsJScwBnBD4bO/Ij8ZjnLzpd63FbVu/A8JmdYy9gQk3cB8iZAWNFcytjANlQzZ t1TsGcQzw0rKIA2s/CqsYvlvFsBg7+d4/XVLP8dQlXICg0G/NEyxfOQ9l5bjvQ6zbneX+bav/3RU9 cRx2WzyJCWYgJl/3nKpM7Y0zl2sv/KGmbi7gFpaup/PsB65mYB6Mo3JS8iMaeLrc9EgiVwqs2AHUp +rAGZfeTXEjggZ0N+hrRMx3cqaqT14Pa1U+GFesFR0Dno/YcycSdDeLZbONaa7N63/ZyAuNcbrMWu e2S+0tWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stpbp-00000008cnC-25qg; Thu, 26 Sep 2024 14:36:45 +0000 Received: from mail-db5eur02on20603.outbound.protection.outlook.com ([2a01:111:f403:2608::603] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stpXK-00000008btR-3SFa for linux-arm-kernel@lists.infradead.org; Thu, 26 Sep 2024 14:32:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZEAXzThOUDLN8qRXLWhOjNlLQfMU4l2QNVAZEWYF2oiYy7Cvo5XvhCi6DRSZrPaDRaC252FHiuSqwk1zCk7mbzWvRGNL3ooc3ZOcl/lwaSU5XsXLmIK7DokTvrCJOjvPu0smGaXVBOIgE6PqcJgS40sHom4WyaFMxLMB84AEIs8gr3F7/LfsSYBr3HRK6n30Admk8YIU03l2jAAkCIN3JDjTwvk4TDKZ3EZImJTYDAvMhBoHVg6tQ6Wb6VX/4CDcxfSFBMQC8qtPhaUnxlo4kywAUnV4B7g2vaqT7+dKyzF5966sOuyTQz0GIULIQNYmPze68TR9zdXylW78qR1juw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=adzHJ1u+haq0OopMnC/hgMBYg+qqVAhJEhzx5nEN5VI=; b=Do3h+e2DgQAyFi8wJY10VNYpkRoinPp8kYLGULknSkFOSLPFJWFjnrxUaWBP8rVmOq8b48RiPmYmRs0Bksrw6DO0+qAoFB8ngV64zdzhHwWhgEyGh3Vfw1H8KgGnZFao8WNdeKgY7ra61QB0Ab3iZ2hIhVmUukNiK1M+4799Ou1oomCxwlmmMCT27rirxPFt0HOkl/QcBVtyyMcG6uwnG85CtmcHDGsBq6zQLd2SgXsvhzd+MPst84K+B/rFY4Mh1VG+Ivvxr5UyuW7Cci9ppcffCs6Angy3MCx3nufVHNEiBhFky3T6drZZ2bIytNXAPUO8U8zEeeZmNax/TtjXog== 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=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=adzHJ1u+haq0OopMnC/hgMBYg+qqVAhJEhzx5nEN5VI=; b=ng/5ItqxOWvq1qiDURaeChZ9LqDrpzZnwRarVBzYc1RuG39q8iOmwD4to28Cd/wK/8JlfPdQLwqPm1Akcfqcb+G8JWBlFcquUYykZFjZgteT13uu/k8S//GAeg/6h95xlEvYdQTkZGeStEkQHDdyEap5KogatfG1CUGpWrae2U6vy1Hv/Kx4euxHcTysTpPhA3lNWXewt2u9KjI3MzmE97r3zjX8s73mc7UlRgGcRgDT8Kn2Qcrj9WosmPqWGOr3q0jkVxyiSfvSlvOmlRWMliMh+2Uv1/D18EFPaE7lp13iQAQBJWWWOPzgmvDSTrrqKSZ9Idd3YlAD5WiuecHTbw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM9PR04MB8487.eurprd04.prod.outlook.com (2603:10a6:20b:41a::6) by GV1PR04MB10485.eurprd04.prod.outlook.com (2603:10a6:150:1d4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.27; Thu, 26 Sep 2024 14:31:52 +0000 Received: from AM9PR04MB8487.eurprd04.prod.outlook.com ([fe80::6d7a:8d2:f020:455]) by AM9PR04MB8487.eurprd04.prod.outlook.com ([fe80::6d7a:8d2:f020:455%5]) with mapi id 15.20.7962.022; Thu, 26 Sep 2024 14:31:52 +0000 From: Andrei Stefanescu To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chester Lin , Matthias Brugger , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP S32 Linux Team , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Andrei Stefanescu Subject: [PATCH v4 2/4] dt-bindings: gpio: add support for NXP S32G2/S32G3 SoCs Date: Thu, 26 Sep 2024 17:31:19 +0300 Message-ID: <20240926143122.1385658-3-andrei.stefanescu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240926143122.1385658-1-andrei.stefanescu@oss.nxp.com> References: <20240926143122.1385658-1-andrei.stefanescu@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0101.eurprd02.prod.outlook.com (2603:10a6:208:154::42) To AM9PR04MB8487.eurprd04.prod.outlook.com (2603:10a6:20b:41a::6) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8487:EE_|GV1PR04MB10485:EE_ X-MS-Office365-Filtering-Correlation-Id: 529dfb3d-41d8-4c50-ea2c-08dcde37f65f X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|1800799024|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?n5Jjwy0tlhuLtOMKjG7lSOFlFqTL1+i?= =?utf-8?q?RkPzcPfczITkAjeH8TWP0/MdwU1xjoyqXTLXAQaRFD6u07sAzyI1v/FDxYPtdP0yH?= =?utf-8?q?mS+616C7uTmZDm/fmqcVKGRpKWwiyWL9Gb2h9zasp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W6RU1WzveA0jQjr0JqiIqxE?= =?utf-8?q?55IbW+OiQcGNvZo8lZTpcD6o42Q4ZJ2m2lmWPi+7qeBs/yMm7WJGOo6II2C/o7Xes?= =?utf-8?q?uvELg5ZbPSzjrcF9gFrhbWiGMuHFFKpf43V7DUn860ZQrOZu3B7bGx2/7VNQVKiSw?= =?utf-8?q?Rko7IbhEe/TKbA/j0aAZb6jDQ0r8RuX6fu0chW3hu0Utv8p0O1c+84uX1K98XDsUn?= =?utf-8?q?Kx57Tq67Sk/yfCw9h7FtMFrfuIsngzIRRvjSo6DWN75MAiiRCLE1pD1CqRichbqDQ?= =?utf-8?q?gPjgjvYg0L/a1hb3qKXvsaTkW8KD2fsWUNpNXeW9EmaxfTD+4g1g7vlAhXK11+d4M?= =?utf-8?q?b4+JoYBP92tdJhW4nA5PJQvY2lEOAEkaqFA5fK3g4+FvB/CHQ51wnbE=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8487.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(1800799024)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?wkoEHARvxEC9md/+hsuoQ3xTKEFW?= =?utf-8?q?rc0kdfO41whgjC1IHvSuFzLVrcbmiID47NwezWu7e4Z3d6zqGU1kpLQc4Zr8LO7nC?= =?utf-8?q?NdgqA4FJ465uqJUtGQiz+ZmWl6u52MI+X5TLE2En0fzc34EGkUdk3ytymfeh8M8KH?= =?utf-8?q?rhBjzyaE7WjCOFIwVXu90rXqzVD8q9iss52H62egw3F4XAJqf9DGxRcvu+rvOUV3c?= =?utf-8?q?G5nzDU++uRuXnqCkw9ka4oFNvUCUKD43xkSuuzrvpHXGoaLeMOZyRzd2idniD/vbz?= =?utf-8?q?GYvCKT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MRdreWelk+Vk9i4ll3qtKOhpCheNew8XTdFImwCgdW/5TJp8nwuR5A7?= =?utf-8?q?4DVSumSWmOhsMwcRZk37fclz6ccMjSJLEaL6Kg4D98bGbeMhet/qvZt3cn49n6h1L?= =?utf-8?q?Ejc+FgTlaqEiRKYDtUD2nC2fzMBdHsrEpabIAto0yDI06CA6ZYJ8ctGc1Tsrjm3UF?= =?utf-8?q?TAaW/Pv14Cp/CepvC5ZVMlYSYxZy5hQGvMMXXVUYw889dKuqd+kElcfnszm8EaCjJ?= =?utf-8?q?7wSEBCXXv8bFBMY2gQKox86c94/T5CVQaWZO5uLOetR3ZT4VKVGo5XRMOTreO4T+F?= =?utf-8?q?pC8X4dzh8RCP27sws/beYcJSirSjaqK85E77H43axagkyhb77CuFhO17r4grWdQaM?= =?utf-8?q?253czWpCIc2bGOdEhTZjukmTTXN756p8oQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 529dfb3d-41d8-4c50-ea2c-08dcde37f65f X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8487.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2024 14:31:51.9238 (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: PUW2VS0RayO2Sef/gkdBcjMuMmzoCsmkngcvxIMchyFufrU/dJJn1+aUeMOw6GJXGXuBJ/0r8qYfxUbZpOOhkcxBIhl9CQ3B4GeSZ/VRr5c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10485 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240926_073207_018569_BE9E8E90 X-CRM114-Status: GOOD ( 16.09 ) 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 Add support for the GPIO driver of the NXP S32G2/S32G3 SoCs. Signed-off-by: Phu Luu An Signed-off-by: Larisa Grigore Signed-off-by: Ghennadi Procopciuc Signed-off-by: Andrei Stefanescu Signed-off-by: Phu Luu An Signed-off-by: Larisa Grigore Signed-off-by: Ghennadi Procopciuc Signed-off-by: Andrei Stefanescu --- .../bindings/gpio/nxp,s32g2-siul2-gpio.yaml | 110 ++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/nxp,s32g2-siul2-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/nxp,s32g2-siul2-gpio.yaml b/Documentation/devicetree/bindings/gpio/nxp,s32g2-siul2-gpio.yaml new file mode 100644 index 000000000000..4556505ee9c9 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/nxp,s32g2-siul2-gpio.yaml @@ -0,0 +1,110 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +# Copyright 2024 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/nxp,s32g2-siul2-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP S32G2 SIUL2 GPIO controller + +maintainers: + - Ghennadi Procopciuc + - Larisa Grigore + - Andrei Stefanescu + +description: + Support for the SIUL2 GPIOs found on the S32G2 and S32G3 + chips. It includes an IRQ controller for all pins which have + an EIRQ associated. + +properties: + compatible: + oneOf: + - const: nxp,s32g2-siul2-gpio + - items: + - const: nxp,s32g3-siul2-gpio + - const: nxp,s32g2-siul2-gpio + + reg: + items: + - description: PGPDO (output value) registers for SIUL2_0 + - description: PGPDO (output value) registers for SIUL2_1 + - description: PGPDI (input value) registers for SIUL2_0 + - description: PGPDI (input value) registers for SIUL2_1 + - description: EIRQ (interrupt) configuration registers from SIUL2_1 + - description: EIRQ IMCR registers for interrupt muxing between pads + + reg-names: + items: + - const: opads0 + - const: opads1 + - const: ipads0 + - const: ipads1 + - const: eirqs + - const: eirq-imcrs + + gpio-controller: true + + '#gpio-cells': + const: 2 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + gpio-ranges: + minItems: 2 + maxItems: 2 + + gpio-reserved-ranges: + minItems: 2 + +patternProperties: + "-hog(-[0-9]+)?$": + required: + - gpio-hog + +required: + - compatible + - reg + - reg-names + - gpio-controller + - "#gpio-cells" + - gpio-ranges + - gpio-reserved-ranges + - interrupts + - interrupt-controller + - "#interrupt-cells" + +additionalProperties: false + +examples: + - | + #include + #include + + gpio@4009d700 { + compatible = "nxp,s32g2-siul2-gpio"; + reg = <0x4009d700 0x10>, + <0x44011700 0x18>, + <0x4009d740 0x10>, + <0x44011740 0x18>, + <0x44010010 0xb4>, + <0x44011078 0x80>; + reg-names = "opads0", "opads1", "ipads0", + "ipads1", "eirqs", "eirq-imcrs"; + gpio-controller; + #gpio-cells = <2>; + /* GPIO 0-101 */ + gpio-ranges = <&pinctrl 0 0 102>, + /* GPIO 112-190 */ + <&pinctrl 112 112 79>; + gpio-reserved-ranges = <102 10>, <123 21>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + };