From: Rob Herring <robh@kernel.org>
To: Aparna M <a-m1@ti.com>
Cc: a-govindraju@ti.com, vigneshr@ti.com, grygorii.strashko@ti.com,
linus.walleij@linaro.org, devicetree@vger.kernel.org,
linux-gpio@vger.kernel.org, bgolaszewski@baylibre.com
Subject: Re: [PATCH v2] dt-bindings: gpio: Convert TI TPIC2810 GPIO Controller bindings to YAML
Date: Tue, 12 Oct 2021 07:54:46 -0500 [thread overview]
Message-ID: <YWWFluiECO/Di0ZI@robh.at.kernel.org> (raw)
In-Reply-To: <20211004131500.22100-1-a-m1@ti.com>
On Mon, Oct 04, 2021 at 06:45:00PM +0530, Aparna M wrote:
> Convert gpio-tpic2810 bindings to yaml format and remove outdated
> bindings in .txt format.
>
> Signed-off-by: Aparna M <a-m1@ti.com>
> ---
> .../bindings/gpio/gpio-tpic2810.txt | 16 -------
> .../bindings/gpio/gpio-tpic2810.yaml | 48 +++++++++++++++++++
> 2 files changed, 48 insertions(+), 16 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-tpic2810.txt
> create mode 100644 Documentation/devicetree/bindings/gpio/gpio-tpic2810.yaml
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-tpic2810.txt b/Documentation/devicetree/bindings/gpio/gpio-tpic2810.txt
> deleted file mode 100644
> index 1afc2de7a537..000000000000
> --- a/Documentation/devicetree/bindings/gpio/gpio-tpic2810.txt
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -TPIC2810 GPIO controller bindings
> -
> -Required properties:
> - - compatible : Should be "ti,tpic2810".
> - - reg : The I2C address of the device
> - - gpio-controller : Marks the device node as a GPIO controller.
> - - #gpio-cells : Should be two. For consumer use see gpio.txt.
> -
> -Example:
> -
> - gpio@60 {
> - compatible = "ti,tpic2810";
> - reg = <0x60>;
> - gpio-controller;
> - #gpio-cells = <2>;
> - };
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-tpic2810.yaml b/Documentation/devicetree/bindings/gpio/gpio-tpic2810.yaml
> new file mode 100644
> index 000000000000..811aee483f43
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/gpio-tpic2810.yaml
> @@ -0,0 +1,48 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/gpio/gpio-tpic2810.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: TPIC2810 GPIO controller bindings
> +
> +maintainers:
> + - Aswath Govindraju <a-govindraju@ti.com>
> +
> +properties:
> + compatible:
> + enum:
> + - ti,tpic2810
> +
> + reg:
> + maxItems: 1
> + description: The I2C address of the device
Drop generic descriptions.
> +
> + gpio-controller: true
> +
> + "#gpio-cells":
> + const: 2
> +
> +required:
> + - compatible
> + - reg
> + - gpio-controller
> + - "#gpio-cells"
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + i2c1 {
i2c {
With those changes,
Reviewed-by: Rob Herring <robh@kernel.org>
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + gpio@60 {
> + compatible = "ti,tpic2810";
> + reg = <0x60>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> + };
> --
> 2.17.1
>
>
prev parent reply other threads:[~2021-10-12 12:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-04 13:15 [PATCH v2] dt-bindings: gpio: Convert TI TPIC2810 GPIO Controller bindings to YAML Aparna M
2021-10-04 13:25 ` Aswath Govindraju
2021-10-12 12:54 ` Rob Herring [this message]
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=YWWFluiECO/Di0ZI@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=a-govindraju@ti.com \
--cc=a-m1@ti.com \
--cc=bgolaszewski@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=grygorii.strashko@ti.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=vigneshr@ti.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.