From: Krzysztof Kozlowski <krzk@kernel.org>
To: Linus Walleij <linus.walleij@linaro.org>,
Johan Hovold <johan@kernel.org>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 5/5 v2] dt-bindings: gnss: Rewrite Mediatek bindings in YAML
Date: Fri, 18 Mar 2022 10:33:59 +0100 [thread overview]
Message-ID: <0a8c7661-806e-f403-8903-b6c1b4e3e23b@kernel.org> (raw)
In-Reply-To: <20220317225844.1262643-5-linus.walleij@linaro.org>
On 17/03/2022 23:58, Linus Walleij wrote:
> This rewrites the Mediatek GNSS bindings in YAML.
>
> Cc: devicetree@vger.kernel.org
> Cc: Krzysztof Kozlowski <krzk@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> ChangeLog v1->v2:
> - New patch since Krzysztof pointed out there is really just
> one more binding to convert, so why not.
> ---
> .../devicetree/bindings/gnss/mediatek.txt | 35 ------------
> .../devicetree/bindings/gnss/mediatek.yaml | 54 +++++++++++++++++++
> 2 files changed, 54 insertions(+), 35 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/gnss/mediatek.txt
> create mode 100644 Documentation/devicetree/bindings/gnss/mediatek.yaml
>
> diff --git a/Documentation/devicetree/bindings/gnss/mediatek.txt b/Documentation/devicetree/bindings/gnss/mediatek.txt
> deleted file mode 100644
> index 80cb802813c5..000000000000
> --- a/Documentation/devicetree/bindings/gnss/mediatek.txt
> +++ /dev/null
> @@ -1,35 +0,0 @@
> -Mediatek-based GNSS Receiver DT binding
> -
> -Mediatek chipsets are used in GNSS-receiver modules produced by several
> -vendors and can use a UART interface.
> -
> -Please see Documentation/devicetree/bindings/gnss/gnss.txt for generic
> -properties.
> -
> -Required properties:
> -
> -- compatible : Must be
> -
> - "globaltop,pa6h"
> -
> -- vcc-supply : Main voltage regulator (pin name: VCC)
> -
> -Optional properties:
> -
> -- current-speed : Default UART baud rate
> -- gnss-fix-gpios : GPIO used to determine device position fix state
> - (pin name: FIX, 3D_FIX)
What happened with this property? It looks not used, but still I am not
sure we should remove it.
> -- reset-gpios : GPIO used to reset the device (pin name: RESET, NRESET)
> -- timepulse-gpios : Time pulse GPIO (pin name: PPS1, 1PPS)
> -- vbackup-supply : Backup voltage regulator (pin name: VBAT, VBACKUP)
> -
> -Example:
> -
> -serial@1234 {
> - compatible = "ns16550a";
> -
> - gnss {
> - compatible = "globaltop,pa6h";
> - vcc-supply = <&vcc_3v3>;
> - };
> -};
> diff --git a/Documentation/devicetree/bindings/gnss/mediatek.yaml b/Documentation/devicetree/bindings/gnss/mediatek.yaml
> new file mode 100644
> index 000000000000..273732225c1f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gnss/mediatek.yaml
> @@ -0,0 +1,54 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/gnss/mediatek.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Mediatek GNSS Receiver Device Tree Bindings
> +
> +allOf:
> + - $ref: gnss-common.yaml#
> +
> +maintainers:
> + - Johan Hovold <johan@kernel.org>
> +
> +description:
> + Mediatek chipsets are used in GNSS-receiver modules produced by several
> + vendors and can use a UART interface.
> +
> +properties:
> + compatible:
> + const: globaltop,pa6h
> +
> + vcc-supply:
> + description:
> + Main voltage regulator, pin name VCC.
> +
> + reset-gpios:
> + maxItems: 1
> + description: An optional reset line, with names such as RESET or NRESET.
> + If the line is active low it should be flagged with GPIO_ACTIVE_LOW.
> +
> + timepulse-gpios:
> + description: Comes with pin names such as PPS1 or 1PPS.
This should not be needed here (same as patch #3). While changing it,
move also "allOf" just before properties.
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-03-18 9:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-17 22:58 [PATCH 1/5 v2] dt-bindings: gnss: Rewrite common bindings in YAML Linus Walleij
2022-03-17 22:58 ` [PATCH 2/5 v2] dt-bindings: gnss: Modify u-blox to use common bindings Linus Walleij
2022-03-18 9:13 ` Krzysztof Kozlowski
2022-03-20 18:54 ` Rob Herring
2022-03-17 22:58 ` [PATCH 3/5 v2] dt-bindings: gnss: Rewrite sirfstar binding in YAML Linus Walleij
2022-03-18 9:29 ` Krzysztof Kozlowski
2022-03-20 18:58 ` Rob Herring
2022-03-22 0:01 ` Linus Walleij
2022-03-17 22:58 ` [PATCH 4/5 v2] dt-bindings: gnss: Add two more chips Linus Walleij
2022-03-18 9:29 ` Krzysztof Kozlowski
2022-03-21 18:59 ` Rob Herring
2022-03-17 22:58 ` [PATCH 5/5 v2] dt-bindings: gnss: Rewrite Mediatek bindings in YAML Linus Walleij
2022-03-18 9:33 ` Krzysztof Kozlowski [this message]
2022-03-20 18:53 ` [PATCH 1/5 v2] dt-bindings: gnss: Rewrite common " Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0a8c7661-806e-f403-8903-b6c1b4e3e23b@kernel.org \
--to=krzk@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=johan@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).