Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35091325rwd; Mon, 10 Jul 2023 02:21:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlG7cyBy65hUH2Wj40MmuajL/5/p61bwlLx5nbNm81FfXNSaHSAHJJjKJmjQBtefqVr55+Te X-Received: by 2002:a05:6a20:b717:b0:126:43f7:e271 with SMTP id fg23-20020a056a20b71700b0012643f7e271mr7960253pzb.39.1688980885645; Mon, 10 Jul 2023 02:21:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688980885; cv=none; d=google.com; s=arc-20160816; b=sHHZvuJRCukhFuX9JDkiuIk2p/gER7zodE7PNY4ht8T+lrH6WP86ESzuT+mbfDTuZJ bHZ5pVP5BC4bJwgVWEbpRDIluPM+oD86gX1iAu76N+cfrB8XhMBI/kvBdxiXyOmHHHxI tZ+LzRWd7TNpdEOFyJSPy39KAMjbb+7fBS9sVyWU+It3PhPLA0Q80dYdKjEhenUTI0Ri jptoFW37c80nKi7MkJ6X5FPNyezlbkOIxq9ObtS4izuSzrjsR1OZgOUugRugc0fBPPDm 8J8UvR81KwiQOuYdaFQJKYqhL2bEwl4FoRhSwAngmq15PQeNSK15Tl+fZfuLMNUnYbnJ Z/Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dy2KuLcXZ4Ve1Tpog66+CQXXOfL/pwzTVK9wzp2h/kY=; fh=ZnWa2aMGlbdnPw6IYlD3z7uMx9eKS0IFOGYOtuOSjPE=; b=JmeddSOiZixUyEaITB0ukngBjGbYbgtSgChMcQxZblK/FsrLYe6sdHfCeoNd+aeeO7 CSDpTJp505lM8pRw7n31ZBeR29VElWbf5fEou9LJs/OSd3BvXJ+tp7nVdYI+46SJFyg5 IO9KkxY9f0t0vCWUkRCWP2XyBctEKG/VmgQ2VWbH2Ws0mUAg/U03OtTZepvH3b5TVodo HqGCkU8OirTYItEpztBP2djCMqdl7yOpIiBFRW4KM+YPM5JEcIhWVFHgYWV4ycTmgZJK 8kOj0Oail+rj88qAAr92aaWQyBPwj62P2aX/NcHA/jfrQmIc3BwQFes1JS/xAs1TwqQ4 RPTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=YE+VfCqf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t7-20020a170902e84700b001b80ecdcb88si9176454plg.473.2023.07.10.02.21.13; Mon, 10 Jul 2023 02:21:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=YE+VfCqf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229743AbjGJJFM (ORCPT + 99 others); Mon, 10 Jul 2023 05:05:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjGJJFK (ORCPT ); Mon, 10 Jul 2023 05:05:10 -0400 Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 444FEC3 for ; Mon, 10 Jul 2023 02:05:09 -0700 (PDT) Received: by mail-ua1-x929.google.com with SMTP id a1e0cc1a2514c-78f32e233a0so1332479241.0 for ; Mon, 10 Jul 2023 02:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1688979908; x=1691571908; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dy2KuLcXZ4Ve1Tpog66+CQXXOfL/pwzTVK9wzp2h/kY=; b=YE+VfCqfJoJp0tmjB0RFKq39bKSXtnUO3Dm4zvB0Y0Fq9Vjm2fgh5t4/sBD1sxB2eY IQSYIsb66mJLgM/I2FVBkp22OLiB/dSjBeSZQ7f0cDu0fa5YnzGYIMYUZusZXggOMn+x vJPcdGuQ2FdFPpzbW/dLV/DQIEGuaX6LW9lx4CRUJszjEIYVko3x8hCVBEMKSW+yCl3/ 1BWpKfSYPIWd9bDbfFVlpRkLa7eQjlWvRMHXSxq3fNSn+ktUjj1iU4UjExdAvFY6PF4N zgC8Spd6dfIcv+JLcmds/2140n07lwvlcRbgPBkPM5suSuaF1bif33PklFo0lmQtFxme QUWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688979908; x=1691571908; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dy2KuLcXZ4Ve1Tpog66+CQXXOfL/pwzTVK9wzp2h/kY=; b=Z95RiZFcDeqCbgNJRjo2YKy/7mC/JZYhG46YvtV3nKOKO2PQReSlKG3KOwMCVl9JiN 2ympXktHLKHBaTlncEqQ8vHCY9kNN35g7Z4KIfCLxGgJ8goL5Dvx3nwLMFTBC6a6FFD0 dLJxO5u5CSs1D49JK1zhKrt2S67BHQgmPZXxLYXgj1KY4InWGmLdHSXNj/0MFDUA+lkq UyhC9+S7R5vtYz2zmD+d1kTNEwA8Sz2FxwjjsrxBdAN2N9EPsdKpphrYjPmfE4dFVpja BMNx8rxWpt4f66L9U6xfcd4wqtTokcf+Mr/h/cLhukk4Ob4EUpe001gQWQ+sf/ma0A7K DOAA== X-Gm-Message-State: ABy/qLbB1at3uHjBkisexk5GSiM5TeTi8sHHr+d9uHZWuVpHF1LfNJCK o+JLTbYXEfvwWhaBd3SAp/UOVqA2mOMeBubh8cA2SQ== X-Received: by 2002:a67:eb44:0:b0:43b:3cab:23a8 with SMTP id x4-20020a67eb44000000b0043b3cab23a8mr6227319vso.20.1688979908344; Mon, 10 Jul 2023 02:05:08 -0700 (PDT) MIME-Version: 1.0 References: <20230710042812.2007928-1-huqiang.qin@amlogic.com> <20230710042812.2007928-2-huqiang.qin@amlogic.com> In-Reply-To: <20230710042812.2007928-2-huqiang.qin@amlogic.com> From: Bartosz Golaszewski Date: Mon, 10 Jul 2023 11:04:57 +0200 Message-ID: Subject: Re: [PATCH V2 1/2] dt-bindings: gpio: Add a header file for Amlogic C3 SoCs To: Huqiang Qin Cc: linus.walleij@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, neil.armstrong@linaro.org, khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, andy@kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 10, 2023 at 6:28=E2=80=AFAM Huqiang Qin wrote: > > Add dt-binding and related header file for Amlogic C3 GPIO. > The subject of this patch is describing the new model, not only adding the header, so make the commit message say that, e.g.: dt-bindings: ...: describe xyz Bart > Signed-off-by: Huqiang Qin > --- > .../pinctrl/amlogic,meson-pinctrl-a1.yaml | 1 + > include/dt-bindings/gpio/amlogic-c3-gpio.h | 72 +++++++++++++++++++ > 2 files changed, 73 insertions(+) > create mode 100644 include/dt-bindings/gpio/amlogic-c3-gpio.h > > diff --git a/Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinc= trl-a1.yaml b/Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinct= rl-a1.yaml > index 99080c9eaac3..e019b6aa6ca3 100644 > --- a/Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.= yaml > +++ b/Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.= yaml > @@ -17,6 +17,7 @@ properties: > enum: > - amlogic,meson-a1-periphs-pinctrl > - amlogic,meson-s4-periphs-pinctrl > + - amlogic,c3-periphs-pinctrl > > required: > - compatible > diff --git a/include/dt-bindings/gpio/amlogic-c3-gpio.h b/include/dt-bind= ings/gpio/amlogic-c3-gpio.h > new file mode 100644 > index 000000000000..75c8da6f505f > --- /dev/null > +++ b/include/dt-bindings/gpio/amlogic-c3-gpio.h > @@ -0,0 +1,72 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ > +/* > + * Copyright (c) 2021 Amlogic, Inc. All rights reserved. > + * Author: Huqiang Qin > + */ > + > +#ifndef _DT_BINDINGS_AMLOGIC_C3_GPIO_H > +#define _DT_BINDINGS_AMLOGIC_C3_GPIO_H > + > +#define GPIOE_0 0 > +#define GPIOE_1 1 > +#define GPIOE_2 2 > +#define GPIOE_3 3 > +#define GPIOE_4 4 > + > +#define GPIOB_0 5 > +#define GPIOB_1 6 > +#define GPIOB_2 7 > +#define GPIOB_3 8 > +#define GPIOB_4 9 > +#define GPIOB_5 10 > +#define GPIOB_6 11 > +#define GPIOB_7 12 > +#define GPIOB_8 13 > +#define GPIOB_9 14 > +#define GPIOB_10 15 > +#define GPIOB_11 16 > +#define GPIOB_12 17 > +#define GPIOB_13 18 > +#define GPIOB_14 19 > + > +#define GPIOC_0 20 > +#define GPIOC_1 21 > +#define GPIOC_2 22 > +#define GPIOC_3 23 > +#define GPIOC_4 24 > +#define GPIOC_5 25 > +#define GPIOC_6 26 > + > +#define GPIOX_0 27 > +#define GPIOX_1 28 > +#define GPIOX_2 29 > +#define GPIOX_3 30 > +#define GPIOX_4 31 > +#define GPIOX_5 32 > +#define GPIOX_6 33 > +#define GPIOX_7 34 > +#define GPIOX_8 35 > +#define GPIOX_9 36 > +#define GPIOX_10 37 > +#define GPIOX_11 38 > +#define GPIOX_12 39 > +#define GPIOX_13 40 > + > +#define GPIOD_0 41 > +#define GPIOD_1 42 > +#define GPIOD_2 43 > +#define GPIOD_3 44 > +#define GPIOD_4 45 > +#define GPIOD_5 46 > +#define GPIOD_6 47 > + > +#define GPIOA_0 48 > +#define GPIOA_1 49 > +#define GPIOA_2 50 > +#define GPIOA_3 51 > +#define GPIOA_4 52 > +#define GPIOA_5 53 > + > +#define GPIO_TEST_N 54 > + > +#endif /* _DT_BINDINGS_AMLOGIC_C3_GPIO_H */ > -- > 2.37.1 >