From patchwork Tue Aug 9 14:31:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 12939670 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 7E9F3C19F2D for ; Tue, 9 Aug 2022 14:33:00 +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=FHPd1SRWv5FMMfhmeAnnoFQWDfgL+IaqQKWvqPgycro=; b=tc32vvXV/5F8xI n79rgkwVwAUWdHYQzrR0l5wmnKEv9T5lJtbUHfbNbQ8yA8g2nuLn49HGYPNvyxCu+NrB7EVunS+Ks XFGoEV0ptF/dtUPtgnrR2lz+G+Qi7shLuHoUSWctpsDROzG5OdNHol5If4ILgk/72LBarkBeTBGYj DWHy9W1cZWf3TBZskMQclIrV9h/yEObq9XWwrLt4C6MScbYNDSd1plOjd8pGkMSgHV+5Pv6z0lsrh z8ofjyLvruMoQbtw8ftG7L20B0nMYgY7fWqYs9/xTVTNpigVumjhBPM1sH8l/qpksFkXcdrv8SXcE TYmvQqFS/krvlD0TvzQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oLQGn-004Ntl-2a; Tue, 09 Aug 2022 14:31:45 +0000 Received: from mail-eopbgr00069.outbound.protection.outlook.com ([40.107.0.69] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oLQGc-004NpE-L2 for linux-arm-kernel@lists.infradead.org; Tue, 09 Aug 2022 14:31:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BKBmLfamhIQNgPQajKgR6LS6cPTG7doqLUhyNBcI7b0Iokz6m1S/u+QMDRHHyy9kfPEul+fdS1WktuZjaIikQUufIo/fWDowEOdggWujNkCLGjMp+vyXlZ/NR1rA3yA6mygozFWDJ3+BfzXcDxIzhfLtvcp3yrWIxlj9jNxh7qSm6dyhJ64m/sRGD9yaNiL9oK+KBQgk8uL+gBor98aKiGFWEnPRxvQtpxP8YF8o2qab0SxR4fFr4JS+nF7mDIordg3qnyjFicrt/bUFIQxnq1rRRoCeckshde+wqSkR4c2zvoml+lhTqP4pCZ3/y1wy8ohlfF22Vay9eMDaNvansA== 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=QBdwkibQBfzIcg01Jah5JxGscgRatFXJFDauzqiDOcs=; b=XXS15MAmr/pikYf2qjccnC4kjVmcSF8/jCyQyhxNh7MHE0H/9R0fgIk/v11X0QN7gpJckLAkWwdtRI79DXbVE8A/uLTDLR8Sj0xYul0cxfhE6mNFC7zIBzUHUIvVfq1J+2XBxNBu3uceyYVDv++2XJAeOlgzGdH1afIcravsCNlwMUhpOqRe3B2eeHdjwPR+Si8Ry8gmXR3VO7QvVuafzkisrkkIhlPptBGi7sYkhrGlVJKNriL9v7WvfLFK7mI339fLEJKQ03wkz7noff1NcOIZuBt/CU/r+wJ0NoPqg6gzrFrV29FxIuw5DS+dkHzi5zpWQt1g6gTWWzCb5btfUQ== 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=QBdwkibQBfzIcg01Jah5JxGscgRatFXJFDauzqiDOcs=; b=TcCQjmpqBIsTAMiK6yt3ux6JyYLUrpQWC2aJtLODAyzh+B+vrFOTVmB1tisoQqgHOwAGj/yd7yxc9NwNSEc9w+g0suzJr1hvpqPubQKl2jS8qtYsTXsqZNYS4td5X/3v7h45OFkhbVattUAFe/KgkkR/VJJF1Z7S6lhFsCRd+i0= 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 DB7PR04MB5226.eurprd04.prod.outlook.com (2603:10a6:10:21::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.20; Tue, 9 Aug 2022 14:31:31 +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; Tue, 9 Aug 2022 14:31:31 +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 v2 1/3] dt-bindings: gpio: Add imx-scu gpio driver bindings Date: Tue, 9 Aug 2022 09:31:03 -0500 Message-Id: <20220809143105.17967-2-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220809143105.17967-1-shenwei.wang@nxp.com> References: <20220809143105.17967-1-shenwei.wang@nxp.com> X-ClientProxiedBy: BY5PR13CA0003.namprd13.prod.outlook.com (2603:10b6:a03:180::16) 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: 6f6a7343-8fd6-456c-0aef-08da7a13da44 X-MS-TrafficTypeDiagnostic: DB7PR04MB5226:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z/dJBxTxK0gB7/tKlznynYza6qqRba3bKv4YYVoZDc8W9vl+rEraQrz9UG3qD8LR0T/9QSFAwgL9v3kLbnZOrtP+P9vDwTZIi41qWlgx+iBy5rXvzJCKjjwAKy9J44t9Yo4os8/4J51TkMr6xape59Mmzp3yBg/ZwNl8HM86ISGct+yxfXI67Jd0/MKpB0F7fNqJqi7VyPUXivhee9tG4hT3HYGpUTa29vQABvfs3bAJKOzNUtWz/GzuQrprtF+eGpRk7c8RznT6ypx2sv4b+u2d3hHZMWKudTCMtsSLzJRDmWb0NcGn/XLrnBxMqZtA4fX5ePEBO0AikmFUzYdqXWD7WftdZTwuTW3ZTSPtcqJS3S5pEEbrUnQNNXJCR7aZhVGfAjdiv+oUlGADfym+z1FDShl1y7Nb6rabU9x1aVh5PjGfaqEEgNH6JpzOyxMp0hAJRMeSlCniyTE0v6gA8f5GDsmHO3vVi9PJHhLXFGRjdq7gpvYJ+LMQPM7JmAkWPHC/6hb1DQC9MhSZipF7bquEz4uyQj7g0LSSfFXQ69Mljws0s0/lE98raJk2dGyPpWWB84LFb/kNC8IqFNneY7DixQugfXbRtufXLE0sKRxCb/1Bo3MY5plbpopRiLzZDVedbthVhKMhU4u3lybPnO4ms0Ekk8hqXkqR/20+/6TCh3IA+D/QE/hXicynqA+Zv+VyixSMi00TuZBavQrNbDVKVv8OVWx5sGYBWc9xlXa5oPgj4v6Ay4rBqFdTlmzgq3wXuq3VLVr4stBOG7ehJ1iJRGZG8DSbfkUZswAiqYB5Pfc5UOwWBLE4i15O9K5q33Aer5fMgLcuJNNiSCAFfr4UblmVA/hEirxNHEUgKD6JTGSmSMVv53BZnuw641K9 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)(396003)(366004)(136003)(39860400002)(376002)(346002)(6666004)(55236004)(2906002)(52116002)(26005)(6512007)(7416002)(6506007)(44832011)(8936002)(6486002)(41300700001)(478600001)(36756003)(966005)(86362001)(1076003)(2616005)(186003)(66946007)(5660300002)(6636002)(316002)(66556008)(66476007)(38350700002)(4326008)(8676002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9sWRJGp+mBqZTHpYAGYJs/Guab1PG/zst/xkF0fwnMTGBK6RCohCGTN3bGwlzBTKkPvlgNMWr07RueQDWV5d8YvjPj5Aw1V3Y9OF60LKdxFdVa9kltzUXD/HhllESqs+i0QVnpArBI+fDUBpVy7V2JPRmymZzJNNXdJXQCuzY3+sO/m+ufDITp3ID/oR1bax3iQn42ydq6U5h0wWTnokI8M5hrqYuhNn8l1rKEV4IzuUty6l42KHa0JF14NCxidjFUP4uMkXDiD9THbswts+cje0oRM4oYiK46ZiCGmNYmHp6dIJnDbqKz3pDVpCv/GX+UdBXMAAvR75+HBj29xPJ3mKUQiXy7vdu5mnjk+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AwzV9G6q6AJ7N7Ybp/VdGw2o7o1YlIU6Z0X0Fyu1R5cqBthONIr+LNKd3Rjh6I0CxIge5RFKD4e6kwHFuKxBp44u9r91N7pTZg8QsKFCGs2GL4FNRJleqE57yiDlJ9/A42tcD4+Jd6bkK1C2mtjgXS+j X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f6a7343-8fd6-456c-0aef-08da7a13da44 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8274.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2022 14:31:31.3393 (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: A0oPoRgzyAw0gIZH0B4K1SRrNp4PeF+v0ebhp6a73HQDK0aqw22orir99ewcVf+GwGfqb6TV0dSPEUmytIiu7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5226 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220809_073134_710397_ED496C0B X-CRM114-Status: GOOD ( 14.80 ) 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..4cbe3108a612 --- /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: + - | + gpio0: gpio { + compatible = "fsl,imx8-scu-gpio"; + gpio-controller; + #gpio-cells = <2>; + };