xref: /freebsd/sys/contrib/device-tree/Bindings/usb/ti,tps6598x.yaml (revision fe6060f10f634930ff71b7c50291ddc610da2475)
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
35additionalProperties: true
36
37examples:
38  - |
39    #include <dt-bindings/interrupt-controller/irq.h>
40    i2c0 {
41        #address-cells = <1>;
42        #size-cells = <0>;
43
44        tps6598x: tps6598x@38 {
45            compatible = "ti,tps6598x";
46            reg = <0x38>;
47
48            interrupt-parent = <&msmgpio>;
49            interrupts = <107 IRQ_TYPE_LEVEL_LOW>;
50            interrupt-names = "irq";
51
52            pinctrl-names = "default";
53            pinctrl-0 = <&typec_pins>;
54
55            typec_con: connector {
56                compatible = "usb-c-connector";
57                label = "USB-C";
58                port {
59                    typec_ep: endpoint {
60                        remote-endpoint = <&otg_ep>;
61                    };
62                };
63            };
64        };
65    };
66...
67