1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2# Copyright 2022 Linaro Ltd.
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/usb/faraday,fotg210.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Faraday Technology FOTG210 HS OTG USB 2.0 controller Bindings
9
10maintainers:
11  - Linus Walleij <linus.walleij@linaro.org>
12
13allOf:
14  - $ref: usb-drd.yaml#
15  - $ref: usb-hcd.yaml#
16
17properties:
18  compatible:
19    oneOf:
20      - const: faraday,fotg210
21      - items:
22          - const: cortina,gemini-usb
23          - const: faraday,fotg210
24
25  reg:
26    maxItems: 1
27
28  interrupts:
29    maxItems: 1
30
31  clocks:
32    maxItems: 1
33
34  clock-names:
35    items:
36      - const: PCLK
37
38  resets:
39    maxItems: 1
40
41  syscon:
42    $ref: /schemas/types.yaml#/definitions/phandle
43    description: a phandle to the global Gemini system controller on
44      Gemini systems
45
46  dr_mode: true
47
48  phys:
49    maxItems: 1
50
51  phy-names:
52    const: usb2-phy
53
54required:
55  - compatible
56  - reg
57  - interrupts
58  - clocks
59  - clock-names
60
61additionalProperties: false
62
63examples:
64  - |
65    #include <dt-bindings/interrupt-controller/irq.h>
66    #include <dt-bindings/clock/cortina,gemini-clock.h>
67    #include <dt-bindings/reset/cortina,gemini-reset.h>
68    usb0: usb@68000000 {
69        compatible = "cortina,gemini-usb", "faraday,fotg210";
70        reg = <0x68000000 0x1000>;
71        interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
72        resets = <&syscon GEMINI_RESET_USB0>;
73        clocks = <&syscon GEMINI_CLK_GATE_USB0>;
74        clock-names = "PCLK";
75        syscon = <&syscon>;
76        dr_mode = "host";
77    };
78