xref: /linux/Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1cde80191SLad Prabhakar# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2cde80191SLad Prabhakar%YAML 1.2
3cde80191SLad Prabhakar---
4cde80191SLad Prabhakar$id: http://devicetree.org/schemas/usb/ti,hd3ss3220.yaml#
5cde80191SLad Prabhakar$schema: http://devicetree.org/meta-schemas/core.yaml#
6cde80191SLad Prabhakar
7cde80191SLad Prabhakartitle: TI HD3SS3220 TypeC DRP Port Controller
8cde80191SLad Prabhakar
9cde80191SLad Prabhakarmaintainers:
10cde80191SLad Prabhakar  - Biju Das <biju.das.jz@bp.renesas.com>
11cde80191SLad Prabhakar
12cde80191SLad Prabhakardescription: |-
13cde80191SLad Prabhakar  HD3SS3220 is a USB SuperSpeed (SS) 2:1 mux with DRP port controller. The device provides Channel
14cde80191SLad Prabhakar  Configuration (CC) logic and 5V VCONN sourcing for ecosystems implementing USB Type-C. The
15cde80191SLad Prabhakar  HD3SS3220 can be configured as a Downstream Facing Port (DFP), Upstream Facing Port (UFP) or a
16cde80191SLad Prabhakar  Dual Role Port (DRP) making it ideal for any application.
17cde80191SLad Prabhakar
18cde80191SLad Prabhakarproperties:
19cde80191SLad Prabhakar  compatible:
20cde80191SLad Prabhakar    const: ti,hd3ss3220
21cde80191SLad Prabhakar
22cde80191SLad Prabhakar  reg:
23cde80191SLad Prabhakar    maxItems: 1
24cde80191SLad Prabhakar
25cde80191SLad Prabhakar  interrupts:
26cde80191SLad Prabhakar    maxItems: 1
27cde80191SLad Prabhakar
28cde80191SLad Prabhakar  ports:
295250f8f3SRob Herring    $ref: /schemas/graph.yaml#/properties/ports
30cde80191SLad Prabhakar    description: OF graph bindings (specified in bindings/graph.txt) that model
31cde80191SLad Prabhakar      SS data bus to the SS capable connector.
325250f8f3SRob Herring
33cde80191SLad Prabhakar    properties:
34cde80191SLad Prabhakar      port@0:
355250f8f3SRob Herring        $ref: /schemas/graph.yaml#/properties/port
36cde80191SLad Prabhakar        description: Super Speed (SS) MUX inputs connected to SS capable connector.
37cde80191SLad Prabhakar
38cde80191SLad Prabhakar      port@1:
395250f8f3SRob Herring        $ref: /schemas/graph.yaml#/properties/port
40cde80191SLad Prabhakar        description: Output of 2:1 MUX connected to Super Speed (SS) data bus.
41cde80191SLad Prabhakar
42cde80191SLad Prabhakar    required:
43cde80191SLad Prabhakar      - port@0
44cde80191SLad Prabhakar      - port@1
45cde80191SLad Prabhakar
46cde80191SLad Prabhakarrequired:
47cde80191SLad Prabhakar  - compatible
48cde80191SLad Prabhakar  - reg
49cde80191SLad Prabhakar
50cde80191SLad PrabhakaradditionalProperties: false
51cde80191SLad Prabhakar
52cde80191SLad Prabhakarexamples:
53cde80191SLad Prabhakar  - |
54*20a72af1SRob Herring    i2c {
55cde80191SLad Prabhakar        #address-cells = <1>;
56cde80191SLad Prabhakar        #size-cells = <0>;
57cde80191SLad Prabhakar
58cde80191SLad Prabhakar        hd3ss3220@47 {
59cde80191SLad Prabhakar                compatible = "ti,hd3ss3220";
60cde80191SLad Prabhakar                reg = <0x47>;
61cde80191SLad Prabhakar                interrupt-parent = <&gpio6>;
62cde80191SLad Prabhakar                interrupts = <3>;
63cde80191SLad Prabhakar
64cde80191SLad Prabhakar                ports {
65cde80191SLad Prabhakar                        #address-cells = <1>;
66cde80191SLad Prabhakar                        #size-cells = <0>;
67cde80191SLad Prabhakar                        port@0 {
68cde80191SLad Prabhakar                                reg = <0>;
69cde80191SLad Prabhakar                                hd3ss3220_in_ep: endpoint {
70cde80191SLad Prabhakar                                        remote-endpoint = <&ss_ep>;
71cde80191SLad Prabhakar                                };
72cde80191SLad Prabhakar                        };
73cde80191SLad Prabhakar                        port@1 {
74cde80191SLad Prabhakar                                reg = <1>;
75cde80191SLad Prabhakar                                hd3ss3220_out_ep: endpoint {
76cde80191SLad Prabhakar                                        remote-endpoint = <&usb3_role_switch>;
77cde80191SLad Prabhakar                                };
78cde80191SLad Prabhakar                        };
79cde80191SLad Prabhakar                };
80cde80191SLad Prabhakar        };
81cde80191SLad Prabhakar    };
82