From patchwork Thu Sep 19 13:47:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Stefanescu X-Patchwork-Id: 13807776 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 175EECF3942 for ; Thu, 19 Sep 2024 13:52:45 +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=4LRUHxrXT55ElFUST4jrMCGemrPsb/goitpTKPzmHNA=; b=DU5i1nXAcVce9wlYS6GCkuMJ6z GekOheMpZc0iDic1C5HGFVHHRCZLbOHbfloIw3WkRadCwPqs/YD8o6E+oLTj8jz0X/ASeB8P/SQVF 25hNGBGlZvHNN7iuGcbn1+KFuXnFf8HMWxRnTddHzINzDN2LxzRI7teB2AWMkwWfG5BY6lwdeOSc1 /hlxLhv2+Iz46ehw6SEU6Pmzp70HKd2ux6j8iE+9FOAp8Kc3pKE8bMKTz1KkWOXOOgtR5sOpBgKiv +7qQer807FeXZJL45Q+po3AwNiwsONmN7avisrx/mDM567Qjy93opOI00Vv4ee9WFOw1ZvALCe5x9 MrJjUbSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srHaA-0000000ANkZ-341K; Thu, 19 Sep 2024 13:52:30 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srHWr-0000000AN8m-31Ol for linux-arm-kernel@lists.infradead.org; Thu, 19 Sep 2024 13:49:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=drgWBANLxOjHJVbTW3x3ihL8B5Jx/ElC3r3HoOWFWHLnMHwxZjW1D6eoShzoCDbCnQe58skpXmgLMy5ddXIhHA1tsEyAgNzWH2+rv+/tTbuDNRznHDLkVMsqAkV6qecZRe2NyaBpFBsjDS5Xy8dyqcvHTiKLgdTeZF+gcnXvn9eaNQO840AXh2JnGQajueytiB2a6N1dcabA64GBhvXpPk+B/RaQrgUoySaSk//f9pal3PNzhV67z1RwbtS9MdfEkA0HU3bjjp2QAjjzXXuCi1UYOr21mIBSn99F2bG2613K1vytUcFgiJqx9MpXUXxHmgE208rdjGEdHl9d5M9nyg== 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=4LRUHxrXT55ElFUST4jrMCGemrPsb/goitpTKPzmHNA=; b=zPP/hPGIFzQQejovB3+F1N9Oz12Htpj2y9kP+KBzqlXSKKarguYHt+wIB8tXY2p5M+DGbgwDrXgk3nDbWtZNlFu9z4PIMIJcrHD5izb8KZqL1HXJKp5+oWmfAue9KQAyFbrUUaIRN1p0SbaEk+PuzXrJTSOCA2ymH63ssaBAfy+FmlTvRxJuKsI7bMqUruuQSdOE0aWifmXnG4N1a4NT2a1yRv5zH34i0IYyEvTAf3w5SCwR6kL2MkeJeJhW5fegsHXGgSKavwSvNpmHd4USbItPVuuZvmaVwsRRlM8qkiiuhpFu5WiadvYpgocXz9W9sgCXLCokTZuXMe+sKeTLmw== 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=4LRUHxrXT55ElFUST4jrMCGemrPsb/goitpTKPzmHNA=; b=Np/5Lte2sM2z0hJy1zWhJ2WUMGAAw4+YD5eyy9jUV3y7sVW2McrUIVUx9V5vItW1IXfU/bIpmOhiT8Z6xV6gjYxYxt82YHZN8VBG974ePcdNCxKa+wSgK4bkm0ZWT1MjrH0CwlPoVOkUaZ0HJL1gsDdeSYiHs/wm/OsYxbGxLK+6XoaR7nK+hBctrv9H3RYmxSy9jZ5Va1oGg6BFtfXWMIe9h0SPMaFf17u4MFRcAdOrT8Np7sk6WO1geBHKWyawl95Hd6FUApdheMMcJd5zsG82unKJiDczUKPY5pk4QhY+9FmBXY/L96zYE+i3COsIYb8J4qYgw7HZaU3wo6YdgA== 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 VI2PR04MB10267.eurprd04.prod.outlook.com (2603:10a6:800:225::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.24; Thu, 19 Sep 2024 13:48: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, 19 Sep 2024 13:48: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 , Andrei Stefanescu Subject: [PATCH v3 2/4] dt-bindings: gpio: add support for NXP S32G2/S32G3 SoCs Date: Thu, 19 Sep 2024 16:47:22 +0300 Message-ID: <20240919134732.2626144-3-andrei.stefanescu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240919134732.2626144-1-andrei.stefanescu@oss.nxp.com> References: <20240919134732.2626144-1-andrei.stefanescu@oss.nxp.com> X-ClientProxiedBy: AM0PR10CA0109.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:e6::26) 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_|VI2PR04MB10267:EE_ X-MS-Office365-Filtering-Correlation-Id: fef8b8ce-e709-4084-5419-08dcd8b1cc24 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|1800799024|366016|376014|7416014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?lVyjqeppbz4QB5FjlMBX+7Nq4ftNQZG?= =?utf-8?q?DgL3mfDQ7YJSYYm3J3hvEmEt3b4XrqgGGDn4oG6s78y905EsVGmSPCsUxQYKHkR8C?= =?utf-8?q?Cj579vxx5wSZfN+dCibI6qGnFr5yQlhtMa+YyPj42v/8PyjFN/hznkkeR8+duo9KP?= =?utf-8?q?1n8Z6bafjHctg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rmR7YTVpIMdHc4wv5Z8ecGhbK4pbqvfsI5/ksBU4gMBd4THAomzFC?= =?utf-8?q?4VrS1NzWm16EcQmw5750rt91ILepZgOYZ91YJOELPi4AsMUMdJqen+zLaaQh6XoNz?= =?utf-8?q?dkdjPg+NDBp29KjP2zELKwNde5ssHd+SswEI+rgPkiXZhkw4bqre/TY97KZi1L69t?= =?utf-8?q?oWyvZ7PBd4UDZvRM2IFMMNiEiTgnzlDJpVy2OKWNFeSacT88QATdJx5uDJ8W7kCzV?= =?utf-8?q?Xcyuw1/vxQR3yLYsyz77Gs6y8UbfYnnkSf7cK74cN5UrTaI5VbdWeLOg=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)(1800799024)(366016)(376014)(7416014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?MHeHqvmK1k6G2lHXIiBdcCdUfWXD?= =?utf-8?q?0B5oNRRJ/8RUTvKaOII8TVKnDrwcYrv3+IaGmrAvf1b2xFRPjIuPvl2QcfjaUUb1v?= =?utf-8?q?KdHIx1eOEX6KxfRRwDOE7q5ze+x9zbmx9V9aVSH2L1jDLVvIHbvagwi0C4M3r2ihZ?= =?utf-8?q?N4OdUdxHNDJQuLIZdxTjcjc3RZLPuru13RyYkSUYAoYnDKKNP3sSNHkaoBY61JQq2?= =?utf-8?q?ZnlqqUw5xQGO88tFZOeByCZHBzwjIWrzsPZOEOvJKHBK4Jxr2QPcdqKn9lZfbJZ4Z?= =?utf-8?q?2hI6wQOT1ZkCc3Z9jyA/YnvrEVYD/Ki8vrAjcm2FVH4P4sT+HIuAXX+N7RpfJh1fU?= =?utf-8?q?a1DZ3wx2S6mB+jumHU1Qw5q+xI+AVB2HuE5mQm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n5B3URvWjlIxP?= =?utf-8?q?zyTkgR30RM6pK/9PcI05LjzOa5IbdddTYp8u0y32TGUfcMkZ+vaq/7Bm8oMMbOG/G?= =?utf-8?q?NKNp3kmKrrePANMNCKPNz3HkYu+vR4xKJLGS51uFKDZO08fZv8WMCy04wZHmFmI4f?= =?utf-8?q?yoazOheDoo8PbNPfki3c5ta4e9hYYl1AqX4rhze3fcn3GTEFJEDkDOV0xW4TCa1+6?= =?utf-8?q?9q/aYWBuju+/M6A6zHnxBFuxaJGWRNDGJ2Twl6bAJQDb/KmxMaDGfi+eA0W7n3d7d?= =?utf-8?q?KqcRzC1BPJa9q1kkjT0tpCWUPOC3s1vsIw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fef8b8ce-e709-4084-5419-08dcd8b1cc24 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8487.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2024 13:48:52.6950 (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: ZfKCK1e6GDlauGEQLoXoCKJ+Ko3UxbB0OTs4Q4KfG2MoUg0w6SUPSTwnSLQGCkcE/vEI9Ul2EiWMqIbnSAlBaRUPSN/Jwdh+mIZBrzRW8y4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10267 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240919_064906_015842_1DBB07BB X-CRM114-Status: GOOD ( 16.99 ) 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 --- .../bindings/gpio/nxp,s32g2-siul2-gpio.yaml | 107 ++++++++++++++++++ 1 file changed, 107 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..0548028e6745 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/nxp,s32g2-siul2-gpio.yaml @@ -0,0 +1,107 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-3-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: + items: + - 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>; + };