Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7212386rwl; Fri, 30 Dec 2022 05:22:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXskiggnfYp45UzisbmXh47Tdroe1LiKqNqu9WXljdBs1wmXP/a7rR1x8FXD43NeeysG9a/I X-Received: by 2002:a05:6a21:e384:b0:af:9539:9fc9 with SMTP id cc4-20020a056a21e38400b000af95399fc9mr44790242pzc.47.1672406567587; Fri, 30 Dec 2022 05:22:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672406567; cv=none; d=google.com; s=arc-20160816; b=XXS9EG8eusf/AtJQgnShrL4ZKqnOVKQXuH3NW/q24UQQDd/cj7OHbf/SHv40dAzWD9 ikbccCO2+HuryQTzqqfNJh/n6fFTz2Y7C+pRvJvMIyjhMlOWp854avu8DPi3eRoYHYnd ex/xknxJxrjC1PMlU2Vs2NbCFJ3x2rsWPf6KIaGx96FNWiCAJZk9YSspslUxZ8w6RciC 3px9RlAx2nE3NvLOPIB1B/jfEfKikMDPbf1PPPDahgYz30S03Zi+vQftRYE024MhqGfv 4W5imW/WSvw962oggOFZ6GTp4C2xGmpO06ZK7alRhL2fwkbyS4L3xBiGVugxs/Fz2Cx0 boHg== 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=E52pxg0Ieuxx94IUZMALcwMIHlB9oJ0ae6r7GhsPesE=; b=h4mrHGi2jZUL/wayAbsITnzCWmv+ikqiKLEY2JzCqRZD6cq6UxKpjrtVe8UUJ3+HsI 8an4UZCx4YrbJDUaYjw9IZof7OwgHblcFz3vnG2k4COOHUxliPRN8Zc9kDvhkc3DotuZ xqIVRtK1JunglLTz7vgRjZh2mKeXYQfWH1yp7jiMfHC99Mmsuipw7hmkvZ2Ros+n+Mkb s/DDVeUQTqVECVj0bFOutGNxblYRFPcilnDNsObR4ZthZ3BuGHo+IpPQLXXIoBwPoDHI dD5rcwSD/XphQoRh5SWXQcBJcOHDXp79r/dsPSmkama0bgF42UCiQkkfyuIQUyGtsDOc VcYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=qOYzZ22P; 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 k75-20020a636f4e000000b0043adff6d43dsi21979637pgc.583.2022.12.30.05.22.38; Fri, 30 Dec 2022 05:22:47 -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=qOYzZ22P; 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 S230283AbiL3NJY (ORCPT + 63 others); Fri, 30 Dec 2022 08:09:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbiL3NJX (ORCPT ); Fri, 30 Dec 2022 08:09:23 -0500 Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C104D186CD for ; Fri, 30 Dec 2022 05:09:21 -0800 (PST) Received: by mail-vs1-xe2b.google.com with SMTP id p30so15585226vsr.1 for ; Fri, 30 Dec 2022 05:09:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=E52pxg0Ieuxx94IUZMALcwMIHlB9oJ0ae6r7GhsPesE=; b=qOYzZ22PlOTxy5rz+2Jr6vOdX7lOUg0qaafPHrEjHG5f40E6RiScGPuGIEoUXr/2PH +oGvuptZsVJRju9ipSuVycuQ2W1ky3QRWi8zYzVx1KdMuC/JFOidxN1UJUimAjP1fsmn tm5Ny181bxJ6l/v6HbNscM306YS/OExwGnUmed+ZTlFqqct6x37nTtKHAO0ERc9MyPuo EVizILuGKO2iB6xrLdsaHGozVKQ+DAXtMH9IsOyRbgKGplHS4KROXebu2krcdX8gRcfe cFsAcKxLqZyiI1fpvuURw+3uSV1kv/KUBupXD4MMlFdCULnNBm1KUN2XFRlWZhdejD5I SUjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=E52pxg0Ieuxx94IUZMALcwMIHlB9oJ0ae6r7GhsPesE=; b=TJYcmeiaW4GAkPWDsy0o/ZLvetLyqMfYFcuyhn8qmiF8gmTig0JVJE+KUAnbQ6ki9C BHo61xt9emVrmuZ1Pxn9RiV35y0sm7rkJuKxGfGFvOQf5OHW4QGRkW5QuOiqBn2Qcu/U q2b0s+ZI22HS3Rz6KdgfOY95lOAg5Dyugw5IhAlI7uSmX4wwrIlwaxoAy2Svuoea5h+H lS14GtQMR12Zheq45kiXglv8Ry6izUtcvmiHnQu7HWvy2MucIPGPbRd91tzczrEA3ePg n7gEvEwtK3eZx66mpp2XYONftczEDnLSSpX+z7gxdQXYCgrIF2V/SjK8fuJEdZqaofxs nNrw== X-Gm-Message-State: AFqh2kptfRL1Zzj0o0r/KHt3OW/SLWsx6xbT25xppeIEWBFSFFVzTpG2 /j6LxTdZL3wf/Tb2+7Rm8cbhOUTDpfxyF0j4i6qr0Q== X-Received: by 2002:a05:6102:3d9f:b0:3c4:4918:80c with SMTP id h31-20020a0561023d9f00b003c44918080cmr2749753vsv.9.1672405760903; Fri, 30 Dec 2022 05:09:20 -0800 (PST) MIME-Version: 1.0 References: <20221209171629.3351420-1-robh@kernel.org> In-Reply-To: <20221209171629.3351420-1-robh@kernel.org> From: Bartosz Golaszewski Date: Fri, 30 Dec 2022 14:09:10 +0100 Message-ID: Subject: Re: [PATCH] dt-bindings: gpio: Convert Fujitsu MB86S7x GPIO to DT schema To: Rob Herring Cc: Linus Walleij , Krzysztof Kozlowski , Jassi Brar , Ard Biesheuvel , Ilias Apalodimas , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Fri, Dec 9, 2022 at 6:16 PM Rob Herring wrote: > > Convert the Fujitsu MB86S7x GPIO binding to DT schema format. > > The "socionext,synquacer-gpio" compatible was not documented, but is > compatible with "fujitsu,mb86s70-gpio" and is in use (in u-boot > Synquacer dts). > > Signed-off-by: Rob Herring > --- > .../bindings/gpio/fujitsu,mb86s70-gpio.txt | 20 -------- > .../bindings/gpio/fujitsu,mb86s70-gpio.yaml | 50 +++++++++++++++++++ > 2 files changed, 50 insertions(+), 20 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/gpio/fujitsu,mb86s70-gpio.txt > create mode 100644 Documentation/devicetree/bindings/gpio/fujitsu,mb86s70-gpio.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/fujitsu,mb86s70-gpio.txt b/Documentation/devicetree/bindings/gpio/fujitsu,mb86s70-gpio.txt > deleted file mode 100644 > index bef353f370d8..000000000000 > --- a/Documentation/devicetree/bindings/gpio/fujitsu,mb86s70-gpio.txt > +++ /dev/null > @@ -1,20 +0,0 @@ > -Fujitsu MB86S7x GPIO Controller > -------------------------------- > - > -Required properties: > -- compatible: Should be "fujitsu,mb86s70-gpio" > -- reg: Base address and length of register space > -- clocks: Specify the clock > -- gpio-controller: Marks the device node as a gpio controller. > -- #gpio-cells: Should be <2>. The first cell is the pin number and the > - second cell is used to specify optional parameters: > - - bit 0 specifies polarity (0 for normal, 1 for inverted). > - > -Examples: > - gpio0: gpio@31000000 { > - compatible = "fujitsu,mb86s70-gpio"; > - reg = <0 0x31000000 0x10000>; > - gpio-controller; > - #gpio-cells = <2>; > - clocks = <&clk 0 2 1>; > - }; > diff --git a/Documentation/devicetree/bindings/gpio/fujitsu,mb86s70-gpio.yaml b/Documentation/devicetree/bindings/gpio/fujitsu,mb86s70-gpio.yaml > new file mode 100644 > index 000000000000..d18d95285465 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/fujitsu,mb86s70-gpio.yaml > @@ -0,0 +1,50 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/fujitsu,mb86s70-gpio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Fujitsu MB86S7x GPIO Controller > + > +maintainers: > + - Jassi Brar > + > +properties: > + compatible: > + oneOf: > + - items: > + - const: socionext,synquacer-gpio > + - const: fujitsu,mb86s70-gpio > + - const: fujitsu,mb86s70-gpio > + > + reg: > + maxItems: 1 > + > + '#gpio-cells': > + const: 2 > + > + gpio-controller: true > + gpio-line-names: true > + > + clocks: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - '#gpio-cells' > + - gpio-controller > + - clocks > + > +additionalProperties: false > + > +examples: > + - | > + gpio@31000000 { > + compatible = "fujitsu,mb86s70-gpio"; > + reg = <0x31000000 0x10000>; > + gpio-controller; > + #gpio-cells = <2>; > + clocks = <&clk 0 2 1>; > + }; > +... > -- > 2.35.1 > Applied, thanks! Bart