xref: /linux/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml (revision 95298d63c67673c654c08952672d016212b26054)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/usb/ti,tps6598x.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: Texas Instruments 6598x Type-C Port Switch and Power Delivery controller DT bindings
8
9maintainers:
10  - Bryan O'Donoghue <bryan.odonoghue@linaro.org>
11
12description: |
13  Texas Instruments 6598x Type-C Port Switch and Power Delivery controller
14
15properties:
16  compatible:
17    enum:
18      - ti,tps6598x
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  interrupt-names:
26    items:
27      - const: irq
28
29required:
30  - compatible
31  - reg
32  - interrupts
33  - interrupt-names
34
35examples:
36  - |
37    #include <dt-bindings/interrupt-controller/irq.h>
38    i2c0 {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        tps6598x: tps6598x@38 {
43            compatible = "ti,tps6598x";
44            reg = <0x38>;
45
46            interrupt-parent = <&msmgpio>;
47            interrupts = <107 IRQ_TYPE_LEVEL_LOW>;
48            interrupt-names = "irq";
49
50            pinctrl-names = "default";
51            pinctrl-0 = <&typec_pins>;
52
53            typec_con: connector {
54                compatible = "usb-c-connector";
55                label = "USB-C";
56                port {
57                    typec_ep: endpoint {
58                        remote-endpoint = <&otg_ep>;
59                    };
60                };
61            };
62        };
63    };
64...
65