xref: /linux/Documentation/devicetree/bindings/usb/nxp,ptn36502.yaml (revision 6190d0fa18995b8bcc6b9a26913bb8390bda8396)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/usb/nxp,ptn36502.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP PTN36502 Type-C USB 3.1 Gen 1 and DisplayPort v1.2 combo redriver
8
9maintainers:
10  - Luca Weiss <luca.weiss@fairphone.com>
11
12properties:
13  compatible:
14    enum:
15      - nxp,ptn36502
16
17  reg:
18    maxItems: 1
19
20  vdd18-supply:
21    description: Power supply for VDD18 pin
22
23  orientation-switch: true
24  retimer-switch: true
25
26  ports:
27    $ref: /schemas/graph.yaml#/properties/ports
28    properties:
29      port@0:
30        $ref: /schemas/graph.yaml#/properties/port
31        description: Super Speed (SS) Output endpoint to the Type-C connector
32
33      port@1:
34        $ref: /schemas/graph.yaml#/properties/port
35        description: Super Speed (SS) Input endpoint from the Super-Speed PHY
36
37      port@2:
38        $ref: /schemas/graph.yaml#/properties/port
39        description:
40          Sideband Use (SBU) AUX lines endpoint to the Type-C connector for the purpose of
41          handling altmode muxing and orientation switching.
42
43required:
44  - compatible
45  - reg
46
47allOf:
48  - $ref: usb-switch.yaml#
49  - $ref: usb-switch-ports.yaml#
50
51additionalProperties: false
52
53examples:
54  - |
55    i2c {
56        #address-cells = <1>;
57        #size-cells = <0>;
58
59        typec-mux@1a {
60            compatible = "nxp,ptn36502";
61            reg = <0x1a>;
62
63            vdd18-supply = <&usb_redrive_1v8>;
64
65            retimer-switch;
66            orientation-switch;
67
68            ports {
69                #address-cells = <1>;
70                #size-cells = <0>;
71
72                port@0 {
73                    reg = <0>;
74                    usb_con_ss: endpoint {
75                        remote-endpoint = <&typec_con_ss>;
76                    };
77                };
78                port@1 {
79                    reg = <1>;
80                    phy_con_ss: endpoint {
81                        remote-endpoint = <&usb_phy_ss>;
82                    };
83                };
84                port@2 {
85                    reg = <2>;
86                    usb_con_sbu: endpoint {
87                        remote-endpoint = <&typec_dp_aux>;
88                    };
89                };
90            };
91        };
92    };
93...
94