xref: /freebsd/sys/contrib/device-tree/Bindings/soc/qcom/qcom,eud.yaml (revision b197d4b893974c9eb4d7b38704c6d5c486235d6f)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/soc/qcom/qcom,eud.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: Qualcomm Embedded USB Debugger
8
9maintainers:
10  - Souradeep Chowdhury <quic_schowdhu@quicinc.com>
11
12description:
13  This binding is used to describe the Qualcomm Embedded USB Debugger, which is
14  mini USB-hub implemented on chip to support USB-based debug capabilities.
15
16properties:
17  compatible:
18    items:
19      - enum:
20          - qcom,sc7280-eud
21      - const: qcom,eud
22
23  reg:
24    items:
25      - description: EUD Base Register Region
26      - description: EUD Mode Manager Register
27
28  interrupts:
29    description: EUD interrupt
30    maxItems: 1
31
32  ports:
33    $ref: /schemas/graph.yaml#/properties/ports
34    description:
35      These ports is to be attached to the endpoint of the DWC3 controller node
36      and type C connector node. The controller has the "usb-role-switch"
37      property.
38
39    properties:
40      port@0:
41        $ref: /schemas/graph.yaml#/properties/port
42        description: This port is to be attached to the DWC3 controller.
43
44      port@1:
45        $ref: /schemas/graph.yaml#/properties/port
46        description: This port is to be attached to the type C connector.
47
48required:
49  - compatible
50  - reg
51  - ports
52
53additionalProperties: false
54
55examples:
56  - |
57    eud@88e0000 {
58           compatible = "qcom,sc7280-eud","qcom,eud";
59           reg = <0x88e0000 0x2000>,
60                 <0x88e2000 0x1000>;
61           ports {
62                   #address-cells = <1>;
63                   #size-cells = <0>;
64                   port@0 {
65                           reg = <0>;
66                           eud_ep: endpoint {
67                                   remote-endpoint = <&usb2_role_switch>;
68                           };
69                   };
70                   port@1 {
71                           reg = <1>;
72                           eud_con: endpoint {
73                                   remote-endpoint = <&con_eud>;
74                           };
75                   };
76           };
77    };
78