Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp430399rdb; Sat, 19 Aug 2023 07:27:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLYz8XS+PlekN88nONaPBM5ZOZSMLNZ04LyOoHrW4KucT19mx5bC4LvtiUppY7kQcfTO8b X-Received: by 2002:a17:907:78d7:b0:99d:ec85:9e6a with SMTP id kv23-20020a17090778d700b0099dec859e6amr1494651ejc.20.1692455237388; Sat, 19 Aug 2023 07:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692455237; cv=none; d=google.com; s=arc-20160816; b=J+uRcNAkez9+DL6raONo1oFbPhLSUujfWCw6ers42RO6gleWXiip3c04ouOu4WFNI8 ICH+FjXsgfLcHhjc7AhVd+f26Vkwm2cntZBjmQ0IlZI5gQOtFXZN3mFsu7T/r71rglfA 0+a6YhfWPu9tsiaVUS44t47TMOyKqS3lnypbRx6aXGnjHeEsmOypqoXLenY7j2tKffSu 6MzLNkzHb99eAfuaOEot0qfnkASINiiKgblcGHfoNBEBZHN+MOBEZ4TiYVnMI6SKM04G 9QZDWnwGtIKXHQ+HfAIF9QO675YbYkUy4rM2eQclALCnmrfIEVvnsQ7l/c1hMTEc2Jnj 89Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GCqVsduGdByemTAbQEznF3gvrDg96qfAaL79oe80k60=; fh=loiI4zTDJJD8K2DoZ/O6GxMTWP5X+lVvF8bH3r43rCM=; b=tZAzsFMUh7QZqMZUaMz2h5tEHWJwC3QFcHC/7x32GJmne5uM3/S/mbuAk2TWiUumcf q0OfdMtsGMA5ASG2lOq0IKFaPg7Uwc1kMXrT9TQ5T2TleEqYIaAbGJSV1ItwlhFxTYbP LNhUZDecamEynIvZuvwglyjJ2NIWONxHf6jS3T0CBB7HCkMTNaLRs1d+I0JmH76Agkxg x6pzhlxAUU4CPRX0ip8EsE/aXtQFbdO9QGdy9sTxxIhnz3fFlUPrOzpBYcEMAfT+uG71 vozKt9dZHMiFV7S3Pf95pYfw5K3J+8/hUTTSbkSbYP0VVF3JA2IHSS5N7hK2RmSZy2Mq qvKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ckKvDLY1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dk3-20020a170906f0c300b0099bcf4f5e79si3103090ejb.674.2023.08.19.07.26.51; Sat, 19 Aug 2023 07:27:17 -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=@kernel.org header.s=k20201202 header.b=ckKvDLY1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378600AbjHRQYn (ORCPT + 99 others); Fri, 18 Aug 2023 12:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378604AbjHRQYg (ORCPT ); Fri, 18 Aug 2023 12:24:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FB9930F1; Fri, 18 Aug 2023 09:24:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0CE4161BAF; Fri, 18 Aug 2023 16:24:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C03A0C433C7; Fri, 18 Aug 2023 16:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692375874; bh=c8zN6/cDpi2/K8Iq9Z859/6w6tjD9P5FH9hjNWMoWuU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ckKvDLY1C9MAW25eizZ0moFB8jVKbU7eqKX9vU0zvdZ9FleHGYv7dxEplLjyDq24y VE0nqgjVDtwsxoW911otfHi4x/bZSEYYCFU/ziFiMpnhOLOgX+oDigDjrPNeEwQhoZ zlCu7bznHzzgkk5qY6IuiCIKbhXXxmmHrTRRlrzBtjGsrXqxpCpVVMrt0e9djz7MgR nYxQnZo2Km1s8SZXdgRqIhN7tQjdYPBuhfFmMeCHbGqtV69Dyju8duPb5zGSbhMXbK tC4qc8TxB8lJ1scKC7cmzoKUDJDbIoCn9lB8kFW5LManMH/8o0SdLGbrbXI+tcrrnP pSqtMUA4bR9ow== Received: (nullmailer pid 119460 invoked by uid 1000); Fri, 18 Aug 2023 16:24:32 -0000 Date: Fri, 18 Aug 2023 11:24:32 -0500 From: Rob Herring To: Fabio Estevam Cc: giometti@enneenne.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fabio Estevam Subject: Re: [PATCH] dt-bindings: pps: pps-gpio: Convert to yaml Message-ID: <20230818162432.GA118441-robh@kernel.org> References: <20230809110812.2058428-1-festevam@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230809110812.2058428-1-festevam@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Wed, Aug 09, 2023 at 08:08:12AM -0300, Fabio Estevam wrote: > From: Fabio Estevam > > Convert from pps-gpio.txt to pps-gpio.yaml to allow schema validation. > > Signed-off-by: Fabio Estevam > --- > .../devicetree/bindings/pps/pps-gpio.txt | 30 ------------ > .../devicetree/bindings/pps/pps-gpio.yaml | 46 +++++++++++++++++++ > 2 files changed, 46 insertions(+), 30 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/pps/pps-gpio.txt > create mode 100644 Documentation/devicetree/bindings/pps/pps-gpio.yaml > > diff --git a/Documentation/devicetree/bindings/pps/pps-gpio.txt b/Documentation/devicetree/bindings/pps/pps-gpio.txt > deleted file mode 100644 > index 9012a2a02e14..000000000000 > --- a/Documentation/devicetree/bindings/pps/pps-gpio.txt > +++ /dev/null > @@ -1,30 +0,0 @@ > -Device-Tree Bindings for a PPS Signal on GPIO > - > -These properties describe a PPS (pulse-per-second) signal connected to > -a GPIO pin. > - > -Required properties: > -- compatible: should be "pps-gpio" > -- gpios: one PPS GPIO in the format described by ../gpio/gpio.txt > - > -Additional required properties for the PPS ECHO functionality: > -- echo-gpios: one PPS ECHO GPIO in the format described by ../gpio/gpio.txt > -- echo-active-ms: duration in ms of the active portion of the echo pulse > - > -Optional properties: > -- assert-falling-edge: when present, assert is indicated by a falling edge > - (instead of by a rising edge) > - > -Example: > - pps { > - pinctrl-names = "default"; > - pinctrl-0 = <&pinctrl_pps>; > - > - gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; > - assert-falling-edge; > - > - echo-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; > - echo-active-ms = <100>; > - > - compatible = "pps-gpio"; > - }; > diff --git a/Documentation/devicetree/bindings/pps/pps-gpio.yaml b/Documentation/devicetree/bindings/pps/pps-gpio.yaml > new file mode 100644 > index 000000000000..801fd2720080 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pps/pps-gpio.yaml > @@ -0,0 +1,46 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pps/pps-gpio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: PPS Signal via GPIO > + > +maintainers: > + - Fabio Estevam > + > +properties: > + compatible: > + const: pps-gpio > + > + gpios: > + description: The GPIO that provides the PPS signal. maxItems: 1 > + > + echo-gpios: > + description: The GPIO that provides the PPS ECHO signal. maxItems: 1 > + > + echo-active-ms: > + description: Duration in ms of the active portion of the echo pulse. > + > + assert-falling-edge: > + description: Indicates a falling edge assert, when present. Rising edge if absent. type: boolean > + > +required: > + - compatible > + - gpios > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + pps { > + compatible = "pps-gpio"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_pps>; > + gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; > + assert-falling-edge; > + echo-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; > + echo-active-ms = <100>; > + }; > -- > 2.34.1 >