From patchwork Mon Aug 26 08:42:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Stefanescu X-Patchwork-Id: 13777428 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 B5128C5321D for ; Mon, 26 Aug 2024 08:44: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=ReMTfYB6XlnXjTuva12Bx5ElDSxWV5lyjVfoopXhl6A=; b=UNYrJF85G6Qh+HK2/W+E6UbgZ6 S3m5OzSSIGlVVBD/psF/UUsu0ZgEnLY/bA/p8mS9SuVFgs4pkh7hDf6AY5uB7L+q1ebR6/iDc7+yM F0c+sCax7tzN9tlqapYsF4IF7mHDEKdO8Lcdx6tuE8aL+55EABQ0Zs0tYycwjZDznPOu7kJS+SdgC VfxxOer95AmGUJiUdPcqFXNfq6xZvRDij/dvvOOZJWJVuMv1W9Xj/ThUjfHwBDv6SevHGVtp1Lp1A jlMQsBtGWmluMbdbebZrcyc/Hh3jxvynQAmHDu/i39SBtikVnlc+fImEhm9y8mFuM+A+8jOvdaJzg 4qLbbGFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siVKz-00000006XrQ-1WV3; Mon, 26 Aug 2024 08:44:33 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siVJT-00000006XSW-3u91 for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 08:43:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yhZt+yMKaItWT76/yiRf5Pan7C4sWw3+o1YWeK4Jkw7EtSl0JSLsHRE54kcHRJhxODDoGkDBTy3uW7WI/uh1JZwHcuhrrrDR4CHI3BHHG/Nj6v1yl0EWKOEVswrgqeFrYhYQHDEa0b5Dk91AZmVXhDHBnUb/xO/O1xW83072VUu8PHqqVMKNHfRxS29IhKPa+9NHkWgMoBe64qAfHB71d7xqJVRBIuxUHTyG43YkiaMWuJlyYhHirrlF0d81oEbLHeHa9mOFd4+xRV5Yn46tSb2t/O1h1xa5MkE5nADsBClPZsrZEsj3egRe+6d0FnBEk8IgtXTg/n1f9TfuGpIMKg== 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=ReMTfYB6XlnXjTuva12Bx5ElDSxWV5lyjVfoopXhl6A=; b=JhnvD006k974Yr/6mD4N0limOHBNwXgy9Z8SpA3V7hiohiJetdR+CLyHN/9l0zAZ3WA15cbaolx+qApIxHVf+Q+YfEsHdubAch7NYQAwVY1hC3Q1hXd4qLSjwQA9YGJd02Qiw3HCBhayP3/DEyb0o+IfKsAdt1YSQ1IPHGncmszsJCEdqwOD/Y/SZvWBUdBrt/BB26FT5erM94xmW1jZ3l98s8WPLGAw507FENsRZgE+HLLVtX9k1a1Lv7P3VEPjzZk30NAYsDpN546VdEhoht2SbbTxCIWvzyMyF0uwwKFJ9FgUpgHpBTYb7KgjtAD75YXewVoBf8hwGgOeTaaO+A== 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=ReMTfYB6XlnXjTuva12Bx5ElDSxWV5lyjVfoopXhl6A=; b=ggA3M5JVWdB55kYazmQvsbqhdTpzrtpEp8DqWoYKtmdAO3y0s6xwwuap4UjwzX1SqHp+m3RL8RMonQkuUy5NV7egMNJ5/8HXM9Gs+i6bD1GvxINNvh+sPA2/OUDM4LQjrPH78jXHSv2oSID39vqfPYRpCPidX+QdbeFh+7WpkNgTu0XYhjlh4n7PmRlubkPV7kbaNVc/iVKp1slmmX6zATCOCT9y0UyMTJsmoyTUFV6yyBvewx2xy85vRzA4L7nHkrJCEk7w3aQfaD1AD6zGtD3tft+qGpd6oDiywEBn5yhcMVDKZvoaQxTnEJQZs9FWGwgnEFd6IX+7zIVD4h6Oqw== 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 PAXPR04MB9680.eurprd04.prod.outlook.com (2603:10a6:102:23e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.23; Mon, 26 Aug 2024 08:42:53 +0000 Received: from AM9PR04MB8487.eurprd04.prod.outlook.com ([fe80::6d7a:8d2:f020:455]) by AM9PR04MB8487.eurprd04.prod.outlook.com ([fe80::6d7a:8d2:f020:455%4]) with mapi id 15.20.7897.021; Mon, 26 Aug 2024 08:42:53 +0000 From: Andrei Stefanescu To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Larisa Grigore 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 , Phu Luu An , Ghennadi Procopciuc Subject: [PATCH 1/3] dt-bindings: gpio: add schema for NXP S32G2/S32G3 SoCs Date: Mon, 26 Aug 2024 11:42:08 +0300 Message-ID: <20240826084214.2368673-2-andrei.stefanescu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240826084214.2368673-1-andrei.stefanescu@oss.nxp.com> References: <20240826084214.2368673-1-andrei.stefanescu@oss.nxp.com> X-ClientProxiedBy: AS4P191CA0043.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:657::10) 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_|PAXPR04MB9680:EE_ X-MS-Office365-Filtering-Correlation-Id: b8f9a210-f00b-44bd-6675-08dcc5ab131a 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|7416014|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?wUMsM2ThwS2WNfdI2GJZdxOxytyX7ox?= =?utf-8?q?taqb74D+tvtz1z/7diJCjgznl/E6bcP8eZd0QU3nSgXRFYPEKOr48uem6MU+pZZLR?= =?utf-8?q?o5x4lsQaV71JVIDWAyfoK3UtX69nxxSbLMP1oa2DsdxBaoKGISf6kk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RyWS6?= =?utf-8?q?BxmDJimOyyFyS+/aBUQfhFmH6PjnM4DV6FSdYYYwAyPQk/toB6UA3g9RaieJmZ8bF?= =?utf-8?q?2HfUGzbzd6h3fufYQ/FDivO5JfS/S8HaiJa5hLKDX4VuTs6eigCZiRXiEM9JDPQi+?= =?utf-8?q?/4119zylNrvA68FYrq/qR/qbz639DapcT7w3nDALYGJTSC1qupONMFRIibd1mkT+S?= =?utf-8?q?lJ/L4u5N6e41gDipBIr+UaVrbIuLTMuvs0BEAQ8YhoHpt+nY33Ehhn/5IXM0Cwy3g?= =?utf-8?q?ATiutuO0ssEbvLidmWpubUu7iBFmGVaDyfaVRs2oynnaRe52FbcWHoeg=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)(7416014)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Hh9pk+G60lUSbhWspqkAABQIkblo?= =?utf-8?q?f8O4kOyVx4wuxp5xSUnmtfE8qTRdmjGT5vNju0XudmkDmSaRpBCjLtMxD2IELi8UH?= =?utf-8?q?KrAIpUieaSWKILCzEOBIW4Xf5KpQIBmtECS/fuAZ/CZPEp9NgtbeOd9E+018HMcrI?= =?utf-8?q?2yR7btFgYqWMACeAvSg8ghCg0BkqU4I09bFJAatgbBODvWTd+X6XOw622fXgRZZrR?= =?utf-8?q?tuOC3zmBa39+MQsXUvyvdqbUfgTneAB7kIWnhbbyc/HMQ8nHXTtNaeHmtVEzoNr4n?= =?utf-8?q?N3RqbPFjsmyzZXeKWCK302jfYxJWC3FRUekE0xkw6jErmpzlyBH29NkO/krG1ZNZW?= =?utf-8?q?fjWh8btcduSvXIUoeBFf8BO6yJFy510BzR5G8z9FWU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E1aEiFjsEwkf2c?= =?utf-8?q?TCcWsmjTFyQ5qn4ZmJuw1tgmw3HqgDekKVqSMkbD40uf95ABIaTRWSGB43JkW3CbA?= =?utf-8?q?9zlWb+5xiuO3dzKaMe1o+EHqB3D5tafUVt/+EscNmatC1MbpULKMSxno7eIBmb6zW?= =?utf-8?q?g9niIqsG+JVZhauTqasQ0lT7JA2L4SE40mVZ5eJl5wqE8OhjwFbbTLGt5JnnxQeCJ?= =?utf-8?q?PnDPXFCXgLB476E+9lLiue0m6pAMepvWwX6aB4KbL0f3a5gh/5hCqcYypPQLOQRP6?= =?utf-8?q?1vO6ssW2xgn8y0f9LIwOltq/gEDa8stdvw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8f9a210-f00b-44bd-6675-08dcc5ab131a X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8487.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 08:42:53.3860 (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: FYuhcTBLD+vEvHo48RIMyiXYcVVfMwIp1Rivn0K/b5N5O939pU592r5z+s1nohnQVy9tkBzWhzGycEoWe5iVd7W3jwFt6Pg5kLG+IvYtFY0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9680 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_014300_027055_24EBA077 X-CRM114-Status: GOOD ( 17.42 ) 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 the DT schema 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,gpio-siul2-s32g2.yaml | 134 ++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/nxp,gpio-siul2-s32g2.yaml diff --git a/Documentation/devicetree/bindings/gpio/nxp,gpio-siul2-s32g2.yaml b/Documentation/devicetree/bindings/gpio/nxp,gpio-siul2-s32g2.yaml new file mode 100644 index 000000000000..fba41a18d4c8 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/nxp,gpio-siul2-s32g2.yaml @@ -0,0 +1,134 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause +# Copyright 2024 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/nxp,gpio-siul2-s32g2.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: + description: | + A list of register regions for configuring interrupts, + GPIO output values and reading GPIO input values. + 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 + + interrupts: + description: + The port interrupt shared by all 32 EIRQs. + + gpio-controller: + description: + Marks the device node as a gpio controller + + "#gpio-cells": + description: | + Should be two. The first cell is the pin number and + the second cell is used to specify the gpio polarity + 0 = active high + 1 = active low + + interrupt-controller: + description: + Marks the device node as an interrupt controller + + "#interrupt-cells": + const: 2 + description: + Refer to ../interrupt-controller/interrupts.txt for more details. + + gpio-ranges: + description: + Interaction with the PINCTRL subsystem + Refer to gpio.txt for more details. + + gpio-reserved-ranges: + description: + A list of start GPIO and number of GPIO pairs which are unusable. + Refer to gpio.txt for more details. + +patternProperties: + "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": + additionalProperties: false + type: object + properties: + gpio-hog: true + gpios: true + input: true + output-high: true + output-low: true + line-name: true + required: + - gpio-hog + - gpios + +required: + - compatible + - interrupts + - reg + - reg-names + - gpio-controller + - "#gpio-cells" + - interrupt-controller + - "#interrupt-cells" + - gpio-ranges + +additionalProperties: false + +examples: + - | + #include + #include + + gpio: siul2-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>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + status = "okay"; + };