summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/usb/socionext,uniphier-dwc3.yaml
blob: 2b253339c19946d944cfe9d72ad1efab1afa771b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/usb/socionext,uniphier-dwc3.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Socionext Uniphier SuperSpeed DWC3 USB SoC controller

maintainers:
  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
  - Masami Hiramatsu <mhiramat@kernel.org>

select:
  properties:
    compatible:
      contains:
        const: socionext,uniphier-dwc3
  required:
    - compatible

properties:
  compatible:
    items:
      - const: socionext,uniphier-dwc3
      - const: snps,dwc3

  reg:
    maxItems: 1

  interrupts:
    minItems: 1
    items:
      - description: Host or single combined interrupt
      - description: Peripheral interrupt

  interrupt-names:
    minItems: 1
    items:
      - enum:
          - dwc_usb3
          - host
      - const: peripheral

  clocks:
    maxItems: 3

  clock-names:
    items:
      - const: ref
      - const: bus_early
      - const: suspend

  phys:
    description: 1 to 4 HighSpeed PHYs followed by 1 or 2 SuperSpeed PHYs
    minItems: 1
    maxItems: 6

  resets:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names
  - phys

unevaluatedProperties: false

allOf:
  - $ref: snps,dwc3.yaml#

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    usb@65a00000 {
        compatible = "socionext,uniphier-dwc3", "snps,dwc3";
        reg = <0x65a00000 0xcd00>;
        interrupt-names = "dwc_usb3";
        interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
        clock-names = "ref", "bus_early", "suspend";
        clocks = <&sys_clk 12>, <&sys_clk 12>, <&sys_clk 12>;
        resets = <&usb0_rst 15>;
        phys = <&usb0_hsphy0>, <&usb0_hsphy1>,
               <&usb0_ssphy0>, <&usb0_ssphy1>;
        dr_mode = "host";
    };