xref: /freebsd/sys/contrib/device-tree/Bindings/soc/qcom/qcom,eud.yaml (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
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
62           ports {
63                   #address-cells = <1>;
64                   #size-cells = <0>;
65                   port@0 {
66                           reg = <0>;
67                           eud_ep: endpoint {
68                                   remote-endpoint = <&usb2_role_switch>;
69                           };
70                   };
71
72                   port@1 {
73                           reg = <1>;
74                           eud_con: endpoint {
75                                   remote-endpoint = <&con_eud>;
76                           };
77                   };
78           };
79    };
80