xref: /linux/Documentation/devicetree/bindings/misc/ti,fpc202.yaml (revision 5643c6b2c8308b206cb01cbfd0e6ac80f9f1bc9a)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/misc/ti,fpc202.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI FPC202 dual port controller with expanded IOs
8
9maintainers:
10  - Romain Gantois <romain.gantois@bootlin.com>
11
12allOf:
13  - $ref: /schemas/i2c/i2c-atr.yaml#
14
15properties:
16  compatible:
17    const: ti,fpc202
18
19  reg:
20    maxItems: 1
21
22  gpio-controller: true
23
24  "#gpio-cells":
25    const: 2
26
27  enable-gpios:
28    description:
29      Specifier for the GPIO connected to the EN pin.
30    maxItems: 1
31
32  '#address-cells':
33    const: 1
34
35  '#size-cells':
36    const: 0
37
38patternProperties:
39  "^i2c@[0-1]$":
40    $ref: /schemas/i2c/i2c-controller.yaml#
41    description: Downstream device ports 0 and 1
42
43    properties:
44      reg:
45        maxItems: 1
46        description:
47          Downstream port ID
48
49    required:
50      - "#address-cells"
51      - "#size-cells"
52      - reg
53
54    unevaluatedProperties: false
55
56  "^led@1[4-b]$":
57    $ref: /schemas/leds/common.yaml#
58    description: Output GPIO line with advanced LED features enabled.
59
60    properties:
61      reg:
62        minimum: 0x14
63        maximum: 0x1b
64        description:
65          GPIO line ID
66
67    required:
68      - reg
69
70    unevaluatedProperties: false
71
72required:
73  - compatible
74  - reg
75  - gpio-controller
76  - "#gpio-cells"
77  - "#address-cells"
78  - "#size-cells"
79
80unevaluatedProperties: false
81
82examples:
83  - |
84    i2c {
85        #address-cells = <1>;
86        #size-cells = <0>;
87
88        i2c-atr@f {
89            compatible = "ti,fpc202";
90            reg = <0xf>;
91            #address-cells = <1>;
92            #size-cells = <0>;
93
94            gpio-controller;
95            #gpio-cells = <2>;
96
97            i2c@0 {
98                #address-cells = <1>;
99                #size-cells = <0>;
100                reg = <0>;
101            };
102
103            i2c@1 {
104                #address-cells = <1>;
105                #size-cells = <0>;
106                reg = <1>;
107            };
108
109            led@14 {
110                reg = <0x14>;
111                label = "phy0:green:indicator";
112            };
113        };
114    };
115...
116