Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1318579pxb; Wed, 2 Feb 2022 02:04:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8mYVqdXFCTpwOqo90B39s39tyj0jRwvZ3i2DnUNXx8cvf4VSFrPPYKWetXW7o5W/PLd9d X-Received: by 2002:a17:902:684c:: with SMTP id f12mr29211580pln.51.1643796267283; Wed, 02 Feb 2022 02:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643796267; cv=none; d=google.com; s=arc-20160816; b=Liz//izju9lLP/1hfbq59cFqWocdgowDgcSEeAXihDAgNVmlopNpsXY+Z4kXmOTGeZ waTjr5ZiAs/wu/qODLRwQy7NgL7FwBHlb2fK1SCS0Ws2/EyII3GXlB9rZbrDc8+KZSPk eTE3Rh5Giq0/vMeviOkP7pcI1zyNIGObBhV1j22tyK3Q3mXzLUA27jtMA2IxuG4IKUOd 7PqL+0DfajytVOFwrctLK+amP0eLOm5iqMVZhQguUx5DPH75cjE5ll+lyYel+0NzTIAW lYI6rLPiE31QwstdVlP4acgD8N2L1JoYFtj6DYvU5RAolL/oq0BMzj9mrPyblIJyiCMD QMWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RUbHe6OkUS7VK/8n9PfmB1KOiLdx1b8u/oec8YAc/Ao=; b=EXi4ROe7NXDrQl6DcU/OZMr3xPJ436R4r+QTXs8Iim6Jm8Xx5pkdR7ni+nA4t6T8Gg vnESjRXnF3Tx1V0tg7j7W0opFimFZc1skNxa23Abb/uvSxDtZkzyMq70/wyH05HWhi95 LiapR8tQYVZPlYnnBi3leC/kADX8QoU00xyygASInF4vzOdFS6OjLQVcpibdqzkwd4ux qAF3jTsVKKXmEk6MVcGh+zvbRr664pMN6C4YEckZZfR46CRb+fvgDBr6HZSLM4Uzr/Qr IbPgCBMaNP+JV0NxYNlmHBbZD2DqYAF5mg1QgYGvAPT2BZjKGYwF+FbwG/JIAxgSuIJC wczQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=EnUh7nff; 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 s1si17153354plr.215.2022.02.02.02.04.12; Wed, 02 Feb 2022 02:04:27 -0800 (PST) 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.20210112.gappssmtp.com header.s=20210112 header.b=EnUh7nff; 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 S237892AbiBBJAC (ORCPT + 99 others); Wed, 2 Feb 2022 04:00:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232444AbiBBI7y (ORCPT ); Wed, 2 Feb 2022 03:59:54 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B0A8C061714 for ; Wed, 2 Feb 2022 00:59:54 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id o12so63133930eju.13 for ; Wed, 02 Feb 2022 00:59:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RUbHe6OkUS7VK/8n9PfmB1KOiLdx1b8u/oec8YAc/Ao=; b=EnUh7nffM9AhyVpU7yINr5/KFAk8j7ARRu+SyqgMRskQVidbz760nxXh5OOIePMg2w LeldPAg++vmGYUxHKN/CQZq9kDNwLMX/q22av6Jv7yvE+xfJ5oNwAgaMEh972RDyUI+K dR0QyPGJ3bY31GYk5bfo/E+W8g4f5wUanQsa2oPO4w0nOf9MBSiojEy4iyX40UOxPU1D xAptxdWo8kA4YijFNcXgqCqIAslvx5oFXEKKHJUdIoDjnm7dTh83UpKMa8ixLDjQTfzg 7wTiXNCKmch4JpL+rUck9uiZLqBdvRy0GVSat0+2vUL5IO6d2GRd7ZlHMYRwVmRKe5Kl OmAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RUbHe6OkUS7VK/8n9PfmB1KOiLdx1b8u/oec8YAc/Ao=; b=AmWlDEABn6jliDNkdegOapbg/2Fznb5rDOf4uFx4r8r8pCGRX07BMO8QGksovwcPru BI1MBoPUj+kfUBbY7hTV9UxJY0pcMbMB8ywmCGMmHaUN59L5ealmTeaYTRznyuKOwuXT lnyti8uZxIHe6uPWp/mR+iq7yNC8yNDhX9bZY/oFZGWBAJBQEjrpZqdc0/Ic7X3d7gfe MpYBpNjWC9l3DMxnpzrxvF2xw8x85ejHlgx/SfjVOtTIEOXlUovP7eUQwipBmUVWcLm1 LXahzDT8xxSAPqvyKT2aDxClebSOJAsNAcOMzSstcpxCOukUWZyFT0wVe8sWMIIhU2UZ PiiQ== X-Gm-Message-State: AOAM531d230n3irAK2RbZeJDCiOG6HCZSTlJLi3dSQUCvEbwZ7KdxT5B ORQ/6dtUg48u8/Pgt3ZlqZsAFod5f+Lt3wWHPU0oJA== X-Received: by 2002:a17:907:6e1f:: with SMTP id sd31mr24745804ejc.286.1643792392532; Wed, 02 Feb 2022 00:59:52 -0800 (PST) MIME-Version: 1.0 References: <20220127123028.3992288-1-clabbe@baylibre.com> In-Reply-To: <20220127123028.3992288-1-clabbe@baylibre.com> From: Bartosz Golaszewski Date: Wed, 2 Feb 2022 09:59:41 +0100 Message-ID: Subject: Re: [PATCH] dt-bindings: gpio: convert faraday,ftgpio01 to yaml To: Corentin Labbe , Rob Herring Cc: conleylee@foxmail.com, Linus Walleij , devicetree , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 1:30 PM Corentin Labbe wrote: > > Converts gpio/faraday,ftgpio010.txt to yaml. > > Signed-off-by: Corentin Labbe > --- > > This commit will cause arch/arm/boot/dts/moxart-uc7112lx.dts to fail DT validation, > but the GPIO driver need an interrupt so the current moxart DT is incomplete and the error is appropriate. > > .../bindings/gpio/faraday,ftgpio010.txt | 27 --------- > .../bindings/gpio/faraday,ftgpio010.yaml | 59 +++++++++++++++++++ > 2 files changed, 59 insertions(+), 27 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt > create mode 100644 Documentation/devicetree/bindings/gpio/faraday,ftgpio010.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt b/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt > deleted file mode 100644 > index d04236558619..000000000000 > --- a/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt > +++ /dev/null > @@ -1,27 +0,0 @@ > -Faraday Technology FTGPIO010 GPIO Controller > - > -Required properties: > - > -- compatible : Should be one of > - "cortina,gemini-gpio", "faraday,ftgpio010" > - "moxa,moxart-gpio", "faraday,ftgpio010" > - "faraday,ftgpio010" > -- reg : Should contain registers location and length > -- interrupts : Should contain the interrupt line for the GPIO block > -- gpio-controller : marks this as a GPIO controller > -- #gpio-cells : Should be 2, see gpio/gpio.txt > -- interrupt-controller : marks this as an interrupt controller > -- #interrupt-cells : a standard two-cell interrupt flag, see > - interrupt-controller/interrupts.txt > - > -Example: > - > -gpio@4d000000 { > - compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; > - reg = <0x4d000000 0x100>; > - interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; > - gpio-controller; > - #gpio-cells = <2>; > - interrupt-controller; > - #interrupt-cells = <2>; > -}; > diff --git a/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.yaml b/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.yaml > new file mode 100644 > index 000000000000..dfd10b76c9d5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/faraday,ftgpio010.yaml > @@ -0,0 +1,59 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/faraday,ftgpio010.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Faraday Technology FTGPIO010 GPIO Controller > + > +maintainers: > + - Linus Walleij > + > +properties: > + compatible: > + oneOf: > + - items: > + - const: "cortina,gemini-gpio" > + - const: "faraday,ftgpio010" > + - items: > + - const: "moxa,moxart-gpio" > + - const: "faraday,ftgpio010" > + - const: "faraday,ftgpio010" > + reg: > + maxItems: 1 > + resets: > + maxItems: 1 > + clocks: > + maxItems: 1 > + interrupts: > + maxItems: 1 > + description: Should contain the interrupt line for the GPIO block > + gpio-controller: true > + "#gpio-cells": > + const: 2 > + interrupt-controller: true > + "#interrupt-cells": > + const: 2 > + > +required: > + - compatible > + - reg > + - interrupts > + - "#gpio-cells" > + - interrupt-controller > + - "#interrupt-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + gpio@4d000000 { > + compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; > + reg = <0x4d000000 0x100>; > + interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > -- > 2.34.1 > Looks good to me but I'll wait for Rob's ack on that. Bart