From patchwork Thu Aug 11 12:41:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 12941424 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 25CE7C19F2A for ; Thu, 11 Aug 2022 12:44:12 +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=9Ac2PK+b1aisAr6VI9Abe3GBlgNFmn+PqJlgAXbzDsY=; b=xI5Gdqzx8CeopP PGlK1aXFgF+vntd0jjsnIKrFGjRi9a7GXCEbuctgJbm2QRAJAs4f4zf/ItIzQbTEN9tPQVrN4SA81 dvVXv/2K9g2gUxQH1Hp0+T9DaE7gDOgFG1FD7rTqIOwV3ge+adSUlsV1Nw4YU5iStPTAP69Op8d5M ZyIZPn3YLlqx697rHySLCdwImWsyYi6InVSO09FJ9slrmk476GreolGi1hYmK7nh8zEWq/O4Q6cAh kHSACuy9TMttC2l84bTo7jqk9us9JVCzuot5RPkDgho5Bd8Yk9aH0NGwoNeyF0nFcnFOXT0BxoRwm KfyV3zqBxR6BmSkQrhfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oM7Wh-00CE7w-EP; Thu, 11 Aug 2022 12:43:03 +0000 Received: from mail-eopbgr80082.outbound.protection.outlook.com ([40.107.8.82] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oM7WZ-00CDzi-Jr for linux-arm-kernel@lists.infradead.org; Thu, 11 Aug 2022 12:42:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jcWGKa59yRLauWeFFI2xY2i6OiAVjdWg0GNqpo2jrQK+eatPMCSs0ByH4Gf3MVLYbsEUsmZDzVGBMAgXc+9EB+Xw6bKIstHiNuPgSqG+H00MYeKCLyQD0r8gNt9imVg+XrnplpFyQhgPzilMDNiOA3FcdGMJl8DCi26OgBpDwY+UAkv5+4Qi207ad+vdUifc9YA5YU29MxFpUigKZe7mBBeksFEHMhdJBvvY4Q0mdeB64h4cThJI4rWhd9+l4FSxYcWwat0to0gx4MMulBMwlbiAjACLIl9h948eukGpyVDRrSPucf/2BRj9+jPX5f8CxA4Z1O9YJCJ9t9saUNcHcg== 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=uovhpHgfSX5dVq4h4plvltEBpjSMmLqX2/Xvq72jKBU=; b=GXNZBkDmRRO7UM3e5s0irEd7nks6J4u/BbtAr7J8dErKyL5xkGcLsCJqDmwS/MWIk3LkEWoA37+f0oj9BcZ6UTi0foFCTszWsc9O5i425ydmIE00K98nUNwV5+Jg3rqLO+O1IT82al3vhSuFmDRN8Mnbm3gwU4PlaUUWzYtI157yijpS6FbzmNQWD5yWcwjPoFDmbQjYYfW/gy03R/eB9KbGHveToAiZfcmbvmOwX8q8ocFr8LCbfxmsKM0Qt5Ggx+wbzk1pz4sqqsCCttcCR55W8XmyZ8SR7YrXw1Li/aJfzl+evWEXP0HHsSdvxvZlDN33tkG+oaBXUwbIpyO2Kw== 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=uovhpHgfSX5dVq4h4plvltEBpjSMmLqX2/Xvq72jKBU=; b=MoeXOm0Ruw1MbiaF9gksDh/e5q7SomwDFZqIN/9VjJeSSPQGgi46etX7dLp6+W6DQpDZKNjVfOnzcEaxRoxYy0qDkotpZeN+8q5QjdacZmzurwttywCRHO17y+VfI0CpFVOhAwmbM+ru4+0yz8cmFbtmvSOVO/abF2pgBhPMRHU= 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 VI1PR0402MB2832.eurprd04.prod.outlook.com (2603:10a6:800:b3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.22; Thu, 11 Aug 2022 12:42:52 +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.5525.010; Thu, 11 Aug 2022 12:42:51 +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, imx@lists.linux.dev, Shenwei Wang Subject: [PATCH v4 1/3] dt-bindings: gpio: Add imx scu gpio driver bindings Date: Thu, 11 Aug 2022 07:41:33 -0500 Message-Id: <20220811124135.95299-2-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220811124135.95299-1-shenwei.wang@nxp.com> References: <20220811124135.95299-1-shenwei.wang@nxp.com> X-ClientProxiedBy: SJ0PR13CA0064.namprd13.prod.outlook.com (2603:10b6:a03:2c4::9) 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: 8fd9f30e-1300-488b-8833-08da7b970127 X-MS-TrafficTypeDiagnostic: VI1PR0402MB2832:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7pmYlxh88/3rFAZYO4QKH+ImDimzrDEl2KLTayJ7X4f0kbXbXvtDsTJY0rsVVHp0bNxPHAH98+FtxPuXYWqkixZDctDoNsv5QnuthKBNkCP2pBz+TFPoTCEpcP+2Y4mHLFRKT6sgXoCWLuFi3AkIfE9Zmz5ahFfn8L/UVb4NmBJtmX09r2ZL6ELxG8y2/mkTgWIVYbd4d5gMu8OCJG+d8mee2xLt/MUlZ/1z3iqgw+VLcqBwHDUG9Voc/DnrGitJQDc9XELezaqX+V5+MoXIcVdCY73lUdwg6dKe9m0BfCAtf0nrxwMZ/2xO7NK6iulg0ach14onWvzM1KZ4paUnNYTc+KSZLaxM95JrAZhEXUsxAMm8PPc/7kEip1KVflO8tpuALehnZd88UxzZ4vcmZFKDUqj7GN9CdRf4hF9dWG6FS+/iadDw5n95vuTx56kaLPXZVeEKLIjcqu+ANhJezPZxh1iv7GC8UhS3NyWeSzfvgIA+Bv18QRX6Pc0B1V0JKFcqBrBF9+MmBmdLQ0iHIsqqyr7Hus3pl8UU/YDROA3JZchXKUnAggKxF9LiELZ7R8E2jguaweyvdLrQ1hgHBY3VMH83d687uoQD4yeRiykQLDapamzS8eBSDvgvwJT1HBgjNg1LoSJQz5js+RYjNSH/fVs+F1amS9LYGB8OgQHhu30kRLO2SSr4EbcMJycfl8NA+lrRQaD2PVMtenJlO82Ot7bT3KynzpekCDFPNtQ1ZJXInHqvdlGkZOSoavWSobvSn3feDOr3r1GF/i2cZXgoEmYu1HtQtGwDZaSwKDTu8nIV47t7o0AmVvbOwGfVMp6QzHrLFI1vbCEimW1DoJDcHQ0EY0hWiPXaRAzjeSdfySWN8aWnddPoQF+trX0Z 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)(376002)(346002)(39860400002)(366004)(396003)(136003)(6666004)(186003)(6636002)(41300700001)(478600001)(1076003)(2906002)(36756003)(316002)(26005)(7416002)(38350700002)(8936002)(6512007)(52116002)(6506007)(44832011)(2616005)(5660300002)(55236004)(86362001)(966005)(66476007)(8676002)(66556008)(66946007)(4326008)(6486002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Z12fOlC9flW4varWnR7+1+9gmUfdwnO1Balap0r0ahJya9x4q0rDagVTcqjmNn+DQXScOU7an4ZF4lfOKylzkpJQ/cub1UbzhXexJQvOkoP91VpedUb8x1DN7Fv/KPh47cp7luuqbad8cK5eEPjcF17sCbqA1fhHUQJvzAKCM5czFl7X6pHESZ/CsxOIzEP34fak7bnlg9HHDTVxYmyPz1DOoxB9aGhiLItvV+TZJ2aznQ+Z0tsJtcPQNZCBvg1CZBsRPfEgjjd7yrtSbvJVuQ90KuppkDW38Z7PUqoP7jIGzCdD3y80EnsIUeXemUgQtsuwB/MgByStdW3jGAT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0PJ1It3bSSx12SSpXcYosuOPfY9FgOXaI8AvVfH4hoqoDiLllLHlTlQfnVjd9YLfWGsTw93H//T+2/ntzW6ly5WEIWlpsgHZNFaVcEc2ZLXsE/2TR3pwBoHML2UTzetTyVYfxrFnD01mmFXNnW2WEuDgru/LYPVD2e6Ja0JJ3xpaf8CHZL3WHmalC6iUmjNiX3YJ2ST/OCSA7BSg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8fd9f30e-1300-488b-8833-08da7b970127 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8274.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2022 12:42:51.8335 (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: Lk3N1KXCN0ua9X+iAUXcAcXk9eP71LUbxsvzjF59EYU31S19u5wFeIY6sePNcR7Rs9bQ7nWxaPy4nQixNYyQ+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2832 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220811_054255_707002_F95C59EF X-CRM114-Status: GOOD ( 13.95 ) 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,imx-sc-gpio.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/fsl,imx-sc-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/fsl,imx-sc-gpio.yaml b/Documentation/devicetree/bindings/gpio/fsl,imx-sc-gpio.yaml new file mode 100644 index 000000000000..a1b024cddc97 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/fsl,imx-sc-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,imx-sc-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,imx8qxp-sc-gpio + + "#gpio-cells": + const: 2 + + gpio-controller: true + +required: + - compatible + - "#gpio-cells" + - gpio-controller + +additionalProperties: false + +examples: + - | + gpio0: gpio { + compatible = "fsl,imx8qxp-sc-gpio"; + gpio-controller; + #gpio-cells = <2>; + };