From patchwork Thu Aug 4 18:49:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 12936612 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 F3A2FC19F2A for ; Thu, 4 Aug 2022 18:51:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=FXy02G5oVHENM/HZ0h0KUls8gr1TvXi4W+BgGbDhTkM=; b=zkoVYg32vHjVol nOf0LT3ox5nOd3iWmr9952Yhrn/r1mqbv7OvYqNC/PfF0eyj6r3ZPtHB1Cra9WjAvV09FLywA9mfl ZmARKQs9vbOJXEXQpXFycH3TkmPfOh0kiKv+sIumqDJw8Af05zVF0Rw4ScXRGlYYI/W1y22DLmPfs TW+7W3gdXK38JyIJ68bW7qKIVm6l1f/IvXb92OX+aBaW3LmZkc0b82LTzvUy0TRKc/Tn2BSW22JCl auDPAWWARQjphy38krsiP9mzh9xa+u84+uE2J48jkgZtJ5Q6jnwlOfOWaHPKbJrMJa77hlTN66RFA uHI+rI5d7iunmyOvH+sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJfvk-008LQs-9E; Thu, 04 Aug 2022 18:50:48 +0000 Received: from mail-eopbgr60040.outbound.protection.outlook.com ([40.107.6.40] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJfvQ-008LFD-8v for linux-arm-kernel@lists.infradead.org; Thu, 04 Aug 2022 18:50:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XaVFN4+rWU+SmIR3s0VkhkFjlwa7V6FvizmAwAEamxpifjcQFHN7/yxw21hfYgB9s/1Sz6trqGQiTM3SUCKgOr5KVqFiH1ChJJ943flI1PqKL/mdQsEtrPlDWRQ1qDZU9tUnt7wu7FvFLUYj2Red13t3YAdymjAz+eAobMqtlhCgKgrzAqKTupTtfF30eO3RG/YhDT4Htg723liEqJUYqpPEXsCn9C8oC/0rYXj7fW0YwZKLDrvY3Zute6umzbmcgkf8brr6Z238aS8IM3FWBrwPea4aAsShtc6bsdRgGaCC0c7pEtf+3VySkxy5GLU6luFDOxDFDJXQ15eaNKBdzA== 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=cz9jfM536FH6asE8Q6u4TPDLSSpmepRW9GXSwBLdvEQ=; b=h6nPZWuJGl1n2x+45xEEWnqm2hlvMgjN6Tp14h36jfWcp63IuV/7hRtxgPZ4JlswXitI/A6Pc2AjmBoHfPMvHr7rtnWANAfsAY1+oW2r/YOdofKTb8aHZZQhavGeRlt8/zjVkrX1WKkjMTM17o/a1fHqQfu0UAxDy0JmgjHHe5RdsOd6TUSjeagNM28CB4/nHQlAR49Eq1PIMWxpnZ6dIbjCaVfW6C0otsYtOFOW76vKQzjcyJxdZlo0Wfv61WpgXGmVPJFjJjJIgvqYU+T0cDA/beDaUNfYEKrZ4wqGxf+4ybJW+NN8puN85u5UMUBQAza1YEX02hBxjMsKe1rqEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cz9jfM536FH6asE8Q6u4TPDLSSpmepRW9GXSwBLdvEQ=; b=eFyFZoYuRIIZoeveAtefiL9Vc6aMEa7C85UE4KZatQCAYPaVpHO6zoFedBVH/rD2rdP0hC0ftByfUgMcAPxzftZyZ0FD36qwpTNhhYWb9m68ZcBeFMQVdndYycZimGSI+OHkslcT6v7jhiKv4ZAiduiLdIG8Iy5f78GJDNCUk64= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM9PR04MB8274.eurprd04.prod.outlook.com (2603:10a6:20b:3e8::23) by AM6PR04MB3992.eurprd04.prod.outlook.com (2603:10a6:209:50::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.16; Thu, 4 Aug 2022 18:50:18 +0000 Received: from AM9PR04MB8274.eurprd04.prod.outlook.com ([fe80::747c:397f:a003:dbca]) by AM9PR04MB8274.eurprd04.prod.outlook.com ([fe80::747c:397f:a003:dbca%5]) with mapi id 15.20.5504.015; Thu, 4 Aug 2022 18:50:18 +0000 From: Shenwei Wang To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, brgl@bgdev.pl, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Shenwei Wang Subject: [PATCH v1 1/3] dt-bindings: gpio: Add imx-scu gpio driver bindings Date: Thu, 4 Aug 2022 13:49:06 -0500 Message-Id: <20220804184908.470216-2-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220804184908.470216-1-shenwei.wang@nxp.com> References: <20220804184908.470216-1-shenwei.wang@nxp.com> X-ClientProxiedBy: MN2PR15CA0001.namprd15.prod.outlook.com (2603:10b6:208:1b4::14) To AM9PR04MB8274.eurprd04.prod.outlook.com (2603:10a6:20b:3e8::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 92f5c721-8132-4610-f8b1-08da764a2cc5 X-MS-TrafficTypeDiagnostic: AM6PR04MB3992:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FbXfgYqCmZ24TqUkz7VzVUpDwIQHMh+zdzNIKsRS/J6cXMbClWpuvVee9Xbi4dBYScoN0L6Rng3xhWLFt7TxkWk39cdGYThtcBs4UZM3/aljqGS65cYHSvwindH6EI9IS9esrW92Jf2VlnZgIIO9gK8k/2D6hYn5zUp++ZJ28wS4jC/Uf86YwdrDynl9489kgF/MBBB8RRQoMqnudLwXodxw/oARHk8zR0Q49wGZutHIMvu9mvuLhxzxLu/hHKmmNGpdytax0GC1LckllZRw2gSBxU8wrUFzPAETnJEMnv+DWoxCYDVJeVzFORSCZsEBHCXGexevbRzQu9MufjbaCPrBPAPB7xjsYm9Xlb7rMXFkkfo58K3xtjngflyGC+yIajdB1KRu9RFQYBg6Ils1jNeQmd++dBBYTY/IQudR7RtjawsuWr2rzcg04Xr+6o4RStsA+/DfbNghOj87yFmyQfiDVItc+RgiUgrFbXJ0HT4Ce9EH9mvhq6kcvw26vbm0f3/K4H9yvZwAA6PTmgbqh8hp/gAzM2Vusz5bXC99ZAD5C3lgeihP6UTlHNjhl6fKQmUX2uv6mZde+e8Mhcjh0kpPxTzhTSdiFqDT97wjxcUyKt7mKUrMr3xeaMPakY4islx1LUCmleiu/zBYDe15NsLfgqLbtQFVTgAR1f9ffYBNXLAj5ArWlZmh4QCpGTYb1MSEy7vHQyQkjRlYBtQHZdCMUX2pXod9HFgq/nUEbHQ17Akfr0+M2AJsfywUpR0FcIu1bqU1QmxDw1NAvUe+sh6S3uMdRTgEXzvf7xkwp/lm7/sWDpch21STnVjAHXkk5sUKm0tvHpm2r8ayeUDyrQRD5+/54Py/c/8OlV2H8WRdUVlkeqL1vUOq5zyMpAbd X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8274.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(136003)(346002)(366004)(396003)(376002)(2906002)(6636002)(36756003)(4326008)(8676002)(66946007)(38100700002)(66556008)(8936002)(316002)(66476007)(6486002)(38350700002)(6666004)(86362001)(52116002)(478600001)(6506007)(55236004)(26005)(6512007)(41300700001)(966005)(7416002)(5660300002)(44832011)(2616005)(186003)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: A3tnIlofn/JZJEfn/hDc6HQ8Tka5e84hX6ZyMcxXKQqRE30Hgj/4fDlsX9nGGwvsup2E2ivSk4sWgyBn0tKIMpEqZTf0DdlZaqpE45SPTxX8aW2d3Nmqd5s4lnz/u0WM89OYvy3H9YUsE53jz/3HmqjYGwTw1pmgX1B0LjgjO41/8FlKVk3kfxQYMgqm/utZ9eZ3Zg4OKg/V4pKHmFoXt042no7lnRZ95cyzEh2XmZI0uw666tQCLwZZBFfFmB/9MYDvQ0y+QBZGN5LbJC0pJCKMuyMHqxQugUcSHNlos7iJ7gnm7+um07egjSfhacX8fiVrWqJL+eZxWYRkWUWI1uW+wYmtUKamLocPLTMC2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YWpyBS6vFwZm7xBKJ0gzcFlTcUepTVCc0ksnNygSZJ0KC0N1XbLoWZTHL4+M8Ga84O68NZBk7idZdlSYVCBIHqUGJJ9a7XobCya7ComPoavtwldL5ptvjPWyP6fMhXLhoSbdgcvpmAwg77N14/6NVLwvreP0Jz5W4Dkb X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92f5c721-8132-4610-f8b1-08da764a2cc5 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8274.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2022 18:50:17.9050 (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: OYaj9RiIMPqBiF/UpjIgi5buVFXcHfvXhDvRQYstiJwS+IatMeyFjemB3NGlY4hsY7PEzv5pQaoFgPqgv8BWaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB3992 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220804_115028_361548_983BAD81 X-CRM114-Status: GOOD ( 14.20 ) 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 binding document for the imx-scu gpio driver. Signed-off-by: Shenwei Wang --- .../bindings/gpio/fsl,imx8-scu-gpio.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/fsl,imx8-scu-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/fsl,imx8-scu-gpio.yaml b/Documentation/devicetree/bindings/gpio/fsl,imx8-scu-gpio.yaml new file mode 100644 index 000000000000..d06e91402666 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/fsl,imx8-scu-gpio.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/fsl,imx8-scu-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GPIO driver over IMX SCU firmware API + +maintainers: + - Shenwei Wang + +description: | + This module provides the standard interface to control the + resource pins in SCU domain on i.MX8 platforms. + +properties: + compatible: + enum: + - fsl,imx8-scu-gpio + + "#gpio-cells": + const: 2 + + gpio-controller: true + +required: + - compatible + - "#gpio-cells" + - gpio-controller + +additionalProperties: false + +examples: + - | + gpio@scu { + compatible = "fsl,imx8-scu-gpio"; + gpio-controller; + #gpio-cells = <2>; + };