summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/usb/microchip,lan9691-dwc3.yaml
blob: 08113eac74b8c4b7473f6aa6508648847282a517 (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
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/usb/microchip,lan9691-dwc3.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Microchip LAN969x SuperSpeed DWC3 USB SoC controller

maintainers:
  - Robert Marko <robert.marko@sartura.hr>

select:
  properties:
    compatible:
      contains:
        enum:
          - microchip,lan9691-dwc3
  required:
    - compatible

properties:
  compatible:
    items:
      - enum:
          - microchip,lan9691-dwc3
      - const: snps,dwc3

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    items:
      - description: Gated USB DRD clock
      - description: Controller reference clock

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

unevaluatedProperties: false

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

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

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

    usb@300000 {
        compatible = "microchip,lan9691-dwc3", "snps,dwc3";
        reg = <0x300000 0x80000>;
        interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clks 12>, <&clks 11>;
        clock-names = "bus_early", "ref";
    };