xref: /linux/Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml (revision 5250f8f37b7ebbeaeab13517d6c08c703c95a687)
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:
29*5250f8f3SRob 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.
32*5250f8f3SRob Herring
33cde80191SLad Prabhakar    properties:
34cde80191SLad Prabhakar      port@0:
35*5250f8f3SRob 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:
39*5250f8f3SRob 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  - interrupts
50cde80191SLad Prabhakar
51cde80191SLad PrabhakaradditionalProperties: false
52cde80191SLad Prabhakar
53cde80191SLad Prabhakarexamples:
54cde80191SLad Prabhakar  - |
55cde80191SLad Prabhakar    i2c0 {
56cde80191SLad Prabhakar        #address-cells = <1>;
57cde80191SLad Prabhakar        #size-cells = <0>;
58cde80191SLad Prabhakar
59cde80191SLad Prabhakar        hd3ss3220@47 {
60cde80191SLad Prabhakar                compatible = "ti,hd3ss3220";
61cde80191SLad Prabhakar                reg = <0x47>;
62cde80191SLad Prabhakar                interrupt-parent = <&gpio6>;
63cde80191SLad Prabhakar                interrupts = <3>;
64cde80191SLad Prabhakar
65cde80191SLad Prabhakar                ports {
66cde80191SLad Prabhakar                        #address-cells = <1>;
67cde80191SLad Prabhakar                        #size-cells = <0>;
68cde80191SLad Prabhakar                        port@0 {
69cde80191SLad Prabhakar                                reg = <0>;
70cde80191SLad Prabhakar                                hd3ss3220_in_ep: endpoint {
71cde80191SLad Prabhakar                                        remote-endpoint = <&ss_ep>;
72cde80191SLad Prabhakar                                };
73cde80191SLad Prabhakar                        };
74cde80191SLad Prabhakar                        port@1 {
75cde80191SLad Prabhakar                                reg = <1>;
76cde80191SLad Prabhakar                                hd3ss3220_out_ep: endpoint {
77cde80191SLad Prabhakar                                        remote-endpoint = <&usb3_role_switch>;
78cde80191SLad Prabhakar                                };
79cde80191SLad Prabhakar                        };
80cde80191SLad Prabhakar                };
81cde80191SLad Prabhakar        };
82cde80191SLad Prabhakar    };
83