Commit 6b7e8c79 authored by Aparna M's avatar Aparna M Committed by Bartosz Golaszewski
Browse files

dt-bindings: gpio: Convert TI TPIC2810 GPIO Controller bindings to YAML



Convert gpio-tpic2810 bindings to yaml format and remove outdated
bindings in .txt format.

Signed-off-by: default avatarAparna M <a-m1@ti.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent 13e024b6
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
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>;
	};
+51 −0
Original line number Diff line number Diff line
# 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

  gpio-controller: true

  "#gpio-cells":
    const: 2

  gpio-line-names:
    minItems: 1
    maxItems: 32

required:
  - compatible
  - reg
  - gpio-controller
  - "#gpio-cells"

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
        gpio@60 {
            compatible = "ti,tpic2810";
            reg = <0x60>;
            gpio-controller;
            #gpio-cells = <2>;
            gpio-line-names = "LED A", "LED B", "LED C";
        };
    };