1334daddbSSouradeep Chowdhury# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2334daddbSSouradeep Chowdhury%YAML 1.2
3334daddbSSouradeep Chowdhury---
42961ab05SRob Herring$id: http://devicetree.org/schemas/soc/qcom/qcom,eud.yaml#
52961ab05SRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
6334daddbSSouradeep Chowdhury
7334daddbSSouradeep Chowdhurytitle: Qualcomm Embedded USB Debugger
8334daddbSSouradeep Chowdhury
9334daddbSSouradeep Chowdhurymaintainers:
10334daddbSSouradeep Chowdhury  - Souradeep Chowdhury <quic_schowdhu@quicinc.com>
11334daddbSSouradeep Chowdhury
12334daddbSSouradeep Chowdhurydescription:
13334daddbSSouradeep Chowdhury  This binding is used to describe the Qualcomm Embedded USB Debugger, which is
14334daddbSSouradeep Chowdhury  mini USB-hub implemented on chip to support USB-based debug capabilities.
15334daddbSSouradeep Chowdhury
16334daddbSSouradeep Chowdhuryproperties:
17334daddbSSouradeep Chowdhury  compatible:
18334daddbSSouradeep Chowdhury    items:
19334daddbSSouradeep Chowdhury      - enum:
20334daddbSSouradeep Chowdhury          - qcom,sc7280-eud
21334daddbSSouradeep Chowdhury      - const: qcom,eud
22334daddbSSouradeep Chowdhury
23334daddbSSouradeep Chowdhury  reg:
24334daddbSSouradeep Chowdhury    items:
25334daddbSSouradeep Chowdhury      - description: EUD Base Register Region
26334daddbSSouradeep Chowdhury      - description: EUD Mode Manager Register
27334daddbSSouradeep Chowdhury
28334daddbSSouradeep Chowdhury  interrupts:
29334daddbSSouradeep Chowdhury    description: EUD interrupt
30334daddbSSouradeep Chowdhury    maxItems: 1
31334daddbSSouradeep Chowdhury
32334daddbSSouradeep Chowdhury  ports:
33334daddbSSouradeep Chowdhury    $ref: /schemas/graph.yaml#/properties/ports
34334daddbSSouradeep Chowdhury    description:
35334daddbSSouradeep Chowdhury      These ports is to be attached to the endpoint of the DWC3 controller node
36334daddbSSouradeep Chowdhury      and type C connector node. The controller has the "usb-role-switch"
37334daddbSSouradeep Chowdhury      property.
38334daddbSSouradeep Chowdhury
39334daddbSSouradeep Chowdhury    properties:
40334daddbSSouradeep Chowdhury      port@0:
41334daddbSSouradeep Chowdhury        $ref: /schemas/graph.yaml#/properties/port
42334daddbSSouradeep Chowdhury        description: This port is to be attached to the DWC3 controller.
43334daddbSSouradeep Chowdhury
44334daddbSSouradeep Chowdhury      port@1:
45334daddbSSouradeep Chowdhury        $ref: /schemas/graph.yaml#/properties/port
46334daddbSSouradeep Chowdhury        description: This port is to be attached to the type C connector.
47334daddbSSouradeep Chowdhury
48334daddbSSouradeep Chowdhuryrequired:
49334daddbSSouradeep Chowdhury  - compatible
50334daddbSSouradeep Chowdhury  - reg
51334daddbSSouradeep Chowdhury  - ports
52334daddbSSouradeep Chowdhury
53334daddbSSouradeep ChowdhuryadditionalProperties: false
54334daddbSSouradeep Chowdhury
55334daddbSSouradeep Chowdhuryexamples:
56334daddbSSouradeep Chowdhury  - |
57334daddbSSouradeep Chowdhury    eud@88e0000 {
58334daddbSSouradeep Chowdhury           compatible = "qcom,sc7280-eud", "qcom,eud";
59334daddbSSouradeep Chowdhury           reg = <0x88e0000 0x2000>,
60334daddbSSouradeep Chowdhury                 <0x88e2000 0x1000>;
61*6ade5ce2SBhupesh Sharma
62334daddbSSouradeep Chowdhury           ports {
63334daddbSSouradeep Chowdhury                   #address-cells = <1>;
64334daddbSSouradeep Chowdhury                   #size-cells = <0>;
65334daddbSSouradeep Chowdhury                   port@0 {
66334daddbSSouradeep Chowdhury                           reg = <0>;
67334daddbSSouradeep Chowdhury                           eud_ep: endpoint {
68334daddbSSouradeep Chowdhury                                   remote-endpoint = <&usb2_role_switch>;
69334daddbSSouradeep Chowdhury                           };
70334daddbSSouradeep Chowdhury                   };
71*6ade5ce2SBhupesh Sharma
72334daddbSSouradeep Chowdhury                   port@1 {
73334daddbSSouradeep Chowdhury                           reg = <1>;
74334daddbSSouradeep Chowdhury                           eud_con: endpoint {
75334daddbSSouradeep Chowdhury                                   remote-endpoint = <&con_eud>;
76334daddbSSouradeep Chowdhury                           };
77334daddbSSouradeep Chowdhury                   };
78334daddbSSouradeep Chowdhury           };
79334daddbSSouradeep Chowdhury    };
80