xref: /freebsd-src/sys/contrib/device-tree/Bindings/gpio/gpio-tpic2810.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2b97ee269SEmmanuel Vadot%YAML 1.2
3b97ee269SEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/gpio/gpio-tpic2810.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6b97ee269SEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: TPIC2810 GPIO controller
8b97ee269SEmmanuel Vadot
9b97ee269SEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Aswath Govindraju <a-govindraju@ti.com>
11b97ee269SEmmanuel Vadot
12b97ee269SEmmanuel Vadotproperties:
13b97ee269SEmmanuel Vadot  compatible:
14b97ee269SEmmanuel Vadot    enum:
15b97ee269SEmmanuel Vadot      - ti,tpic2810
16b97ee269SEmmanuel Vadot
17b97ee269SEmmanuel Vadot  reg:
18b97ee269SEmmanuel Vadot    maxItems: 1
19b97ee269SEmmanuel Vadot
20b97ee269SEmmanuel Vadot  gpio-controller: true
21b97ee269SEmmanuel Vadot
22b97ee269SEmmanuel Vadot  "#gpio-cells":
23b97ee269SEmmanuel Vadot    const: 2
24b97ee269SEmmanuel Vadot
25b97ee269SEmmanuel Vadot  gpio-line-names:
26b97ee269SEmmanuel Vadot    minItems: 1
27b97ee269SEmmanuel Vadot    maxItems: 32
28b97ee269SEmmanuel Vadot
29b97ee269SEmmanuel Vadotrequired:
30b97ee269SEmmanuel Vadot  - compatible
31b97ee269SEmmanuel Vadot  - reg
32b97ee269SEmmanuel Vadot  - gpio-controller
33b97ee269SEmmanuel Vadot  - "#gpio-cells"
34b97ee269SEmmanuel Vadot
35b97ee269SEmmanuel VadotadditionalProperties: false
36b97ee269SEmmanuel Vadot
37b97ee269SEmmanuel Vadotexamples:
38b97ee269SEmmanuel Vadot  - |
39b97ee269SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
40b97ee269SEmmanuel Vadot
41b97ee269SEmmanuel Vadot    i2c {
42b97ee269SEmmanuel Vadot        #address-cells = <1>;
43b97ee269SEmmanuel Vadot        #size-cells = <0>;
44b97ee269SEmmanuel Vadot        gpio@60 {
45b97ee269SEmmanuel Vadot            compatible = "ti,tpic2810";
46b97ee269SEmmanuel Vadot            reg = <0x60>;
47b97ee269SEmmanuel Vadot            gpio-controller;
48b97ee269SEmmanuel Vadot            #gpio-cells = <2>;
49b97ee269SEmmanuel Vadot            gpio-line-names = "LED A", "LED B", "LED C";
50b97ee269SEmmanuel Vadot        };
51b97ee269SEmmanuel Vadot    };
52