xref: /linux/Documentation/devicetree/bindings/usb/faraday,fotg210.yaml (revision 0e9b70c1e3623fa110fb6be553e644524228ef60)
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 FOTG200 series HS OTG USB 2.0 controller
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,fotg200
21      - const: faraday,fotg210
22      - items:
23          - const: cortina,gemini-usb
24          - const: faraday,fotg200
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32  clocks:
33    maxItems: 1
34
35  clock-names:
36    items:
37      - const: PCLK
38
39  resets:
40    maxItems: 1
41
42  syscon:
43    $ref: /schemas/types.yaml#/definitions/phandle
44    description: a phandle to the global Gemini system controller on
45      Gemini systems
46
47  dr_mode: true
48
49  phys:
50    maxItems: 1
51
52  phy-names:
53    const: usb2-phy
54
55required:
56  - compatible
57  - reg
58  - interrupts
59  - clocks
60  - clock-names
61
62additionalProperties: false
63
64examples:
65  - |
66    #include <dt-bindings/interrupt-controller/irq.h>
67    #include <dt-bindings/clock/cortina,gemini-clock.h>
68    #include <dt-bindings/reset/cortina,gemini-reset.h>
69    usb0: usb@68000000 {
70        compatible = "cortina,gemini-usb", "faraday,fotg200";
71        reg = <0x68000000 0x1000>;
72        interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
73        resets = <&syscon GEMINI_RESET_USB0>;
74        clocks = <&syscon GEMINI_CLK_GATE_USB0>;
75        clock-names = "PCLK";
76        syscon = <&syscon>;
77        dr_mode = "host";
78    };
79