Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp420037pxb; Tue, 1 Feb 2022 02:54:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvgzM0GxYRtYwvuHannnjJOtPLxOcyIH14hqr1nDnsYQXpD1ybCt/PU8ln0FDEOmjCl46k X-Received: by 2002:a05:6402:c9b:: with SMTP id cm27mr24628031edb.100.1643712845536; Tue, 01 Feb 2022 02:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643712845; cv=none; d=google.com; s=arc-20160816; b=KAZduNQEbriu3+ZLvzNnvJsYIOIgN3+0783UCBlcNY8ToOeb69ZlaQJTPplNRaoHdh i0jZEYv9FkwJI01bFRN3a7AN5JRoWwPVX3Dxf4ARLHuGFpIYzkjLfMfbLEnL7QVh7bGZ iOe8xV2I0OxnwBWksfro1Wp9EF/qUYR2K3PNE3ANl4mXfNIABkLw0gH7lnGku8BumwXD KoNY8RQ2LJaufxAUmymBRWkCI9qqQmW7t89JEsrvZeIsaCDkZ9MTy1DK5ulgdO/t1faK ch/GuGoGU1i922f/+2K3WGUuj2gXcV+A0KnTEqqIMSfs6ymLLbJ6lsOKnDt2Lsgu1fDP Icuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9LNCxByVJfB01XgfTzWT/WHLAUj6DbOsTr33pwsf6iQ=; b=VGQne2vo5uHkagUGtUDwR9WSupr5L6SU7v2Uv2mlN4wJqD9n9iEUD2khKs4LxR2Gn9 P68FhR3cyzHKCesulgG13p+bV63IfImG08RYjDJ6rHyckAgfdsuCXxMIQqrJa1sjoS2J dg3ESRrm9mGRTvmeYftJeDk/mRUY43/L4FiiQvAM3270yKM00cdc6T/kX3xWAn5gO8HH we4+ndN7JWVg+dyPMqN49plbtzik0FH24iU1n86mWH/If4bm7cJXu1z9Q/NBtMiCHUOC MbgxwieFiNt/iI5K8Z/CKsQWBrcMZ+BoTSIB3mYC85FBy987fvGzSRx134aAzDv+1UJr 7/nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b="SF/9GSjb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gn27si9506614ejc.879.2022.02.01.02.53.40; Tue, 01 Feb 2022 02:54:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b="SF/9GSjb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355271AbiA3Oyi (ORCPT + 99 others); Sun, 30 Jan 2022 09:54:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347339AbiA3Oy1 (ORCPT ); Sun, 30 Jan 2022 09:54:27 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44562C061714; Sun, 30 Jan 2022 06:54:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9LNCxByVJfB01XgfTzWT/WHLAUj6DbOsTr33pwsf6iQ=; b=SF/9GSjb4y8NCa89dD1GXg/5/A N4m8fFIXfbRCnmiztwfcVCHvPlK0/Z/izxXOzG6lW/x6wLTpW417yuTkQQLP+HoqX/xhs7E6vMU/G nAxsMZxQKu7HuoXAEiZbkgit+AOJ6yLNtZE9li/EY9JYFEK130P52avws9BwIiABYr14=; Received: from p200300daa716f900d40f7dfd86c385e0.dip0.t-ipconnect.de ([2003:da:a716:f900:d40f:7dfd:86c3:85e0] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nEBYC-0002if-JZ; Sun, 30 Jan 2022 15:51:32 +0100 From: Felix Fietkau To: Linus Walleij , Bartosz Golaszewski , Rob Herring , John Crispin Cc: soc@kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Rob Herring , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 11/13] dt-bindings: arm: airoha: Add binding for Airoha GPIO controller Date: Sun, 30 Jan 2022 15:51:14 +0100 Message-Id: <20220130145116.88406-12-nbd@nbd.name> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20220130145116.88406-1-nbd@nbd.name> References: <20220130145116.88406-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Crispin Airoha's GPIO controller on their ARM EN7523 SoCs consists of two banks of 32 GPIOs Reviewed-by: Linus Walleij Reviewed-by: Rob Herring Signed-off-by: John Crispin Signed-off-by: Felix Fietkau --- .../bindings/gpio/airoha,en7523-gpio.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/airoha,en7523-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/airoha,en7523-gpio.yaml b/Documentation/devicetree/bindings/gpio/airoha,en7523-gpio.yaml new file mode 100644 index 000000000000..66c00ec85731 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/airoha,en7523-gpio.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/airoha,en7523-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha EN7523 GPIO controller + +maintainers: + - John Crispin + +description: | + Airoha's GPIO controller on their ARM EN7523 SoCs consists of two banks of 32 + GPIOs. + +properties: + $nodename: + pattern: "^gpio@[0-9a-f]+$" + + compatible: + items: + - const: airoha,en7523-gpio + + reg: + description: | + The first tuple points to the input register. + The second and third tuple point to the direction registers + The fourth tuple points to the output register + maxItems: 4 + + "#gpio-cells": + const: 2 + + gpio-controller: true + +required: + - compatible + - reg + - "#gpio-cells" + - gpio-controller + +additionalProperties: false + +examples: + - | + gpio0: gpio@1fbf0200 { + compatible = "airoha,en7523-gpio"; + reg = <0x1fbf0204 0x4>, + <0x1fbf0200 0x4>, + <0x1fbf0220 0x4>, + <0x1fbf0214 0x4>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio1: gpio@1fbf0270 { + compatible = "airoha,en7523-gpio"; + reg = <0x1fbf0270 0x4>, + <0x1fbf0260 0x4>, + <0x1fbf0264 0x4>, + <0x1fbf0278 0x4>; + gpio-controller; + #gpio-cells = <2>; + }; + + +... -- 2.32.0 (Apple Git-132)