xref: /freebsd/sys/contrib/device-tree/Bindings/usb/nxp,ptn36502.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
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  retimer-switch:
24    description: Flag the port as possible handle of SuperSpeed signals retiming
25    type: boolean
26
27  orientation-switch:
28    description: Flag the port as possible handler of orientation switching
29    type: boolean
30
31  ports:
32    $ref: /schemas/graph.yaml#/properties/ports
33    properties:
34      port@0:
35        $ref: /schemas/graph.yaml#/properties/port
36        description: Super Speed (SS) Output endpoint to the Type-C connector
37
38      port@1:
39        $ref: /schemas/graph.yaml#/properties/port
40        description: Super Speed (SS) Input endpoint from the Super-Speed PHY
41
42      port@2:
43        $ref: /schemas/graph.yaml#/properties/port
44        description:
45          Sideband Use (SBU) AUX lines endpoint to the Type-C connector for the purpose of
46          handling altmode muxing and orientation switching.
47
48required:
49  - compatible
50  - reg
51
52additionalProperties: false
53
54examples:
55  - |
56    i2c {
57        #address-cells = <1>;
58        #size-cells = <0>;
59
60        typec-mux@1a {
61            compatible = "nxp,ptn36502";
62            reg = <0x1a>;
63
64            vdd18-supply = <&usb_redrive_1v8>;
65
66            retimer-switch;
67            orientation-switch;
68
69            ports {
70                #address-cells = <1>;
71                #size-cells = <0>;
72
73                port@0 {
74                    reg = <0>;
75                    usb_con_ss: endpoint {
76                        remote-endpoint = <&typec_con_ss>;
77                    };
78                };
79                port@1 {
80                    reg = <1>;
81                    phy_con_ss: endpoint {
82                        remote-endpoint = <&usb_phy_ss>;
83                    };
84                };
85                port@2 {
86                    reg = <2>;
87                    usb_con_sbu: endpoint {
88                        remote-endpoint = <&typec_dp_aux>;
89                    };
90                };
91            };
92        };
93    };
94...
95