From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76D4AC4338F for ; Fri, 23 Jul 2021 21:42:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5941060E95 for ; Fri, 23 Jul 2021 21:42:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231940AbhGWVCH (ORCPT ); Fri, 23 Jul 2021 17:02:07 -0400 Received: from mail-io1-f47.google.com ([209.85.166.47]:34504 "EHLO mail-io1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231839AbhGWVCH (ORCPT ); Fri, 23 Jul 2021 17:02:07 -0400 Received: by mail-io1-f47.google.com with SMTP id y200so4286561iof.1 for ; Fri, 23 Jul 2021 14:42:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=idLNdoBL59EdjnP3Cd62t3DHKj1QdbsdtjYWIri+5Aw=; b=VjDKET91aB5LRRzFcETnN+WX9SUdnt2lHsqPP8ei2nN4OeYDuTxlAIs/qmWvjaqg5p cOHjq81qeyw3RH1D+Dx4nZfaMVQbte9QsHyE1JtzooUbRNrZs5ni74wH5sMxZmX89QEA xZtkAZlbpyHyUk2Q/iUjITrjdj6PdTgc51eklzm2b2vP9RnZb9+ImM1HoVw823WSu/9U GW3OPFSjK+hJgcPXgyhHSZDAx5IzBJF5Jva4Nf/qW0cjOUnY1U/MhT5+XYuJJHb/FTln LEkURcED+s+SCX0c3aruzjZRflhtZb18iGp1Ch+oOw+6zOpgSgLpEPu/a+18A4cLAEU7 Uxsg== X-Gm-Message-State: AOAM5304wu2k9kpP9lcr04dlC9qcQ060oBMs+t3jOB8LcVLxAmhkRMR5 Srm9UAFeCRDVAjx0fdO/Kw== X-Google-Smtp-Source: ABdhPJwKqYpwz6rAPrp5oaMV/rcP3TdYDw5wk9FiAVxFnFmLhj84GSDykHxSrhpEb4m5A4Km6SgZPw== X-Received: by 2002:a02:8241:: with SMTP id q1mr5796571jag.134.1627076559178; Fri, 23 Jul 2021 14:42:39 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id t11sm8805336ioc.4.2021.07.23.14.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jul 2021 14:42:38 -0700 (PDT) Received: (nullmailer pid 2640950 invoked by uid 1000); Fri, 23 Jul 2021 21:42:37 -0000 Date: Fri, 23 Jul 2021 15:42:37 -0600 From: Rob Herring To: Maxime Ripard Cc: Chen-Yu Tsai , Jernej Skrabec , devicetree@vger.kernel.org, Frank Rowand , linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Johan Hovold Subject: Re: [PATCH 12/54] dt-bindings: gnss: Convert UBlox Neo-6M binding to a schema Message-ID: <20210723214237.GA2637886@robh.at.kernel.org> References: <20210721140424.725744-1-maxime@cerno.tech> <20210721140424.725744-13-maxime@cerno.tech> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210721140424.725744-13-maxime@cerno.tech> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, Jul 21, 2021 at 04:03:42PM +0200, Maxime Ripard wrote: > The UBlox Neo 6M is supported by Linux thanks to its device tree > binding. > > Now that we have the DT validation in place, let's convert the device > tree bindings for that driver over to a YAML schema. > > Cc: Johan Hovold > Signed-off-by: Maxime Ripard > --- > .../bindings/gnss/u-blox,neo-6m.yaml | 62 +++++++++++++++++++ > .../devicetree/bindings/gnss/u-blox.txt | 45 -------------- > 2 files changed, 62 insertions(+), 45 deletions(-) > create mode 100644 Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml > delete mode 100644 Documentation/devicetree/bindings/gnss/u-blox.txt > > diff --git a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml > new file mode 100644 > index 000000000000..45b886ae0f45 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml > @@ -0,0 +1,62 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gnss/u-blox,neo-6m.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: U-blox GNSS Receiver Device Tree Bindings > + > +maintainers: > + - Johan Hovold > + > +description: > > + The U-blox GNSS receivers can use UART, DDC (I2C), SPI and USB interfaces. > + > +properties: > + compatible: > + enum: > + - u-blox,neo-6m > + - u-blox,neo-8 > + - u-blox,neo-m8 > + > + reg: > + description: > > + The DDC Slave Address, SPI chip select address, the number of the USB hub > + port or the USB host-controller port to wich this device is attached, s/wich/which/ > + depending on the bus used. Required for the DDC, SPI or USB busses. > + > + vcc-supply: > + description: > > + Main voltage regulator > + > + timepulse-gpios: > + maxItems: 1 > + description: > > + Time pulse GPIO > + > + u-blox,extint-gpios: > + maxItems: 1 > + description: > > + GPIO connected to the "external interrupt" input pin > + > + v-bckp-supply: > + description: > > + Backup voltage regulator > + > + current-speed: true > + > +required: > + - compatible > + - vcc-supply > + > +additionalProperties: false > + > +examples: > + - | > + uart { serial { > + gnss { > + compatible = "u-blox,neo-8"; > + v-bckp-supply = <&gnss_v_bckp_reg>; > + vcc-supply = <&gnss_vcc_reg>; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/gnss/u-blox.txt b/Documentation/devicetree/bindings/gnss/u-blox.txt > deleted file mode 100644 > index 7cdefd058fe0..000000000000 > --- a/Documentation/devicetree/bindings/gnss/u-blox.txt > +++ /dev/null > @@ -1,45 +0,0 @@ > -u-blox GNSS Receiver DT binding > - > -The u-blox GNSS receivers can use UART, DDC (I2C), SPI and USB interfaces. > - > -Please see Documentation/devicetree/bindings/gnss/gnss.txt for generic > -properties. > - > -Required properties: > - > -- compatible : Must be one of > - > - "u-blox,neo-6m" > - "u-blox,neo-8" > - "u-blox,neo-m8" > - > -- vcc-supply : Main voltage regulator > - > -Required properties (DDC): > -- reg : DDC (I2C) slave address > - > -Required properties (SPI): > -- reg : SPI chip select address > - > -Required properties (USB): > -- reg : Number of the USB hub port or the USB host-controller port > - to which this device is attached > - > -Optional properties: > - > -- timepulse-gpios : Time pulse GPIO > -- u-blox,extint-gpios : GPIO connected to the "external interrupt" input pin > -- v-bckp-supply : Backup voltage regulator > - > -Example: > - > -serial@1234 { > - compatible = "ns16550a"; > - > - gnss { > - compatible = "u-blox,neo-8"; > - > - v-bckp-supply = <&gnss_v_bckp_reg>; > - vcc-supply = <&gnss_vcc_reg>; > - }; > -}; > -- > 2.31.1 > > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0086C4338F for ; Fri, 23 Jul 2021 21:44:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8DF1960EB6 for ; Fri, 23 Jul 2021 21:44:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8DF1960EB6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EvVRyCMcnPg9OVZYHJi1TANNY+9Z44e8C3+5FvkPTWk=; b=2YNsfnY8pOBggz Vk2SU/fZoTydQj0ko3rkkKKh56avGIjh7ve4flM8VvEA6oD+itjkrkjmu+eaF0Dt/yjghOQBYOwoN EsFYHDuPpSd50yOL5lypZVlEke4/J5O0HsUS8nRt19+itsyyHUbvLqZBripQNp+NWSG4R9WvPBzjs CZL+cPXFUcNyIcnBBI5JtRxVNFYpKXUbH5BcIH7VWKvQXHiBnc7+gA+wf7Y2IvnkgNl+9eAVyIQ9f m48eo+0fhxLQLwnbYrkVA5aamY0vJtA/UB82ogckjUAnOX44LNfFaUwerYUoN3zkJl2Fd8NYQx3DR xkOixR+WVJ7eseHzXQUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m72wh-0060VO-DE; Fri, 23 Jul 2021 21:43:04 +0000 Received: from mail-io1-f50.google.com ([209.85.166.50]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m72wL-0060Ly-6G for linux-arm-kernel@lists.infradead.org; Fri, 23 Jul 2021 21:42:43 +0000 Received: by mail-io1-f50.google.com with SMTP id y9so4264127iox.2 for ; Fri, 23 Jul 2021 14:42:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=idLNdoBL59EdjnP3Cd62t3DHKj1QdbsdtjYWIri+5Aw=; b=C04tGDcIVLmH3HOIVwT+neDw5l8VkfMim71XE39ziGZCVxqp+328R9Ozlg7uvWHmfp VuyidIv/eZsCDVt+paAL2rQnFhSI0vLmW8pGEAnh84N8piABS/77Yg9iDYsckRzJ1kEj CAc7hPUe+4YpuvXP+zPlL8KHvuI2MtqzxqDCaL/sOjrMxO9fWVhGiOLHAITNQ8aqCPd6 MhGky1/QxMRqKLbv1oinOmxNUCCZB8y4dNhmLL0DH2KdX5gpsKUt1FQ7eR1D3XJJZAjw WzK/Pd2mwbIRRkgbohtGoxSPqo1izoVhyHoalktdm4UnJnlIWDvBLer/WoKbTxso7veo cgCA== X-Gm-Message-State: AOAM532kwqZliraeYWNJ99o0Jb7P2XTdzYa4yGD4twiI6ocC40hXfFUx olEruJ/a5HAg44UReW+qmw== X-Google-Smtp-Source: ABdhPJwKqYpwz6rAPrp5oaMV/rcP3TdYDw5wk9FiAVxFnFmLhj84GSDykHxSrhpEb4m5A4Km6SgZPw== X-Received: by 2002:a02:8241:: with SMTP id q1mr5796571jag.134.1627076559178; Fri, 23 Jul 2021 14:42:39 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id t11sm8805336ioc.4.2021.07.23.14.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jul 2021 14:42:38 -0700 (PDT) Received: (nullmailer pid 2640950 invoked by uid 1000); Fri, 23 Jul 2021 21:42:37 -0000 Date: Fri, 23 Jul 2021 15:42:37 -0600 From: Rob Herring To: Maxime Ripard Cc: Chen-Yu Tsai , Jernej Skrabec , devicetree@vger.kernel.org, Frank Rowand , linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Johan Hovold Subject: Re: [PATCH 12/54] dt-bindings: gnss: Convert UBlox Neo-6M binding to a schema Message-ID: <20210723214237.GA2637886@robh.at.kernel.org> References: <20210721140424.725744-1-maxime@cerno.tech> <20210721140424.725744-13-maxime@cerno.tech> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210721140424.725744-13-maxime@cerno.tech> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210723_144241_271536_2FEF205C X-CRM114-Status: GOOD ( 26.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jul 21, 2021 at 04:03:42PM +0200, Maxime Ripard wrote: > The UBlox Neo 6M is supported by Linux thanks to its device tree > binding. > > Now that we have the DT validation in place, let's convert the device > tree bindings for that driver over to a YAML schema. > > Cc: Johan Hovold > Signed-off-by: Maxime Ripard > --- > .../bindings/gnss/u-blox,neo-6m.yaml | 62 +++++++++++++++++++ > .../devicetree/bindings/gnss/u-blox.txt | 45 -------------- > 2 files changed, 62 insertions(+), 45 deletions(-) > create mode 100644 Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml > delete mode 100644 Documentation/devicetree/bindings/gnss/u-blox.txt > > diff --git a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml > new file mode 100644 > index 000000000000..45b886ae0f45 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml > @@ -0,0 +1,62 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gnss/u-blox,neo-6m.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: U-blox GNSS Receiver Device Tree Bindings > + > +maintainers: > + - Johan Hovold > + > +description: > > + The U-blox GNSS receivers can use UART, DDC (I2C), SPI and USB interfaces. > + > +properties: > + compatible: > + enum: > + - u-blox,neo-6m > + - u-blox,neo-8 > + - u-blox,neo-m8 > + > + reg: > + description: > > + The DDC Slave Address, SPI chip select address, the number of the USB hub > + port or the USB host-controller port to wich this device is attached, s/wich/which/ > + depending on the bus used. Required for the DDC, SPI or USB busses. > + > + vcc-supply: > + description: > > + Main voltage regulator > + > + timepulse-gpios: > + maxItems: 1 > + description: > > + Time pulse GPIO > + > + u-blox,extint-gpios: > + maxItems: 1 > + description: > > + GPIO connected to the "external interrupt" input pin > + > + v-bckp-supply: > + description: > > + Backup voltage regulator > + > + current-speed: true > + > +required: > + - compatible > + - vcc-supply > + > +additionalProperties: false > + > +examples: > + - | > + uart { serial { > + gnss { > + compatible = "u-blox,neo-8"; > + v-bckp-supply = <&gnss_v_bckp_reg>; > + vcc-supply = <&gnss_vcc_reg>; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/gnss/u-blox.txt b/Documentation/devicetree/bindings/gnss/u-blox.txt > deleted file mode 100644 > index 7cdefd058fe0..000000000000 > --- a/Documentation/devicetree/bindings/gnss/u-blox.txt > +++ /dev/null > @@ -1,45 +0,0 @@ > -u-blox GNSS Receiver DT binding > - > -The u-blox GNSS receivers can use UART, DDC (I2C), SPI and USB interfaces. > - > -Please see Documentation/devicetree/bindings/gnss/gnss.txt for generic > -properties. > - > -Required properties: > - > -- compatible : Must be one of > - > - "u-blox,neo-6m" > - "u-blox,neo-8" > - "u-blox,neo-m8" > - > -- vcc-supply : Main voltage regulator > - > -Required properties (DDC): > -- reg : DDC (I2C) slave address > - > -Required properties (SPI): > -- reg : SPI chip select address > - > -Required properties (USB): > -- reg : Number of the USB hub port or the USB host-controller port > - to which this device is attached > - > -Optional properties: > - > -- timepulse-gpios : Time pulse GPIO > -- u-blox,extint-gpios : GPIO connected to the "external interrupt" input pin > -- v-bckp-supply : Backup voltage regulator > - > -Example: > - > -serial@1234 { > - compatible = "ns16550a"; > - > - gnss { > - compatible = "u-blox,neo-8"; > - > - v-bckp-supply = <&gnss_v_bckp_reg>; > - vcc-supply = <&gnss_vcc_reg>; > - }; > -}; > -- > 2.31.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel