summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/usb/ti,omap4-musb.yaml
blob: e1887e490e0220f8bfed8b3cf5a134e8b85a0458 (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/usb/ti,omap4-musb.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Texas Instruments OMAP MUSB USB OTG Controller

maintainers:
  - Felipe Balbi <balbi@ti.com>

description:
  Texas Instruments glue layer for the Mentor Graphics MUSB OTG controller.
  Handles SoC-specific integration including PHY interface bridging(ULPI/
  UTMI), interrupt aggregation, DMA engine coordination (internal/
  external), VBUS/session control via control module mailbox, and
  clock/reset management. Provides fixed hardware configuration parameters
  to the generic MUSB core driver.

properties:
  compatible:
    enum:
      - ti,omap3-musb
      - ti,omap4-musb

  reg:
    maxItems: 1

  interrupts:
    minItems: 1
    maxItems: 2

  interrupt-names:
    minItems: 1
    items:
      - const: mc
      - const: dma

  multipoint:
    $ref: /schemas/types.yaml#/definitions/uint32
    description:
      Indicates the MUSB controller supports multipoint. This is a MUSB
      configuration-specific setting.
    const: 1

  num-eps:
    $ref: /schemas/types.yaml#/definitions/uint32
    description:
      Specifies the number of endpoints. This is a MUSB configuration
      specific setting.
    const: 16

  ram-bits:
    description: Specifies the RAM address size.
    const: 12

  interface-type:
    $ref: /schemas/types.yaml#/definitions/uint32
    description:
      Describes the type of interface between the controller and the PHY.
      0 for ULPI, 1 for UTMI.
    enum: [0, 1]

  mode:
    $ref: /schemas/types.yaml#/definitions/uint32
    description: 1 for HOST, 2 for PERIPHERAL, 3 for OTG.
    enum: [1, 2, 3]

  power:
    $ref: /schemas/types.yaml#/definitions/uint32
    description:
      Indicates the maximum current the controller can supply when
      operating in host mode. A value of 50 corresponds to 100 mA, and a
      value of 150 corresponds to 300 mA.
    enum: [50, 150]

  phys:
    maxItems: 1

  phy-names:
    const: usb2-phy

  usb-phy:
    maxItems: 1

  ctrl-module:
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      Phandle of the control module this glue uses to write to mailbox.

required:
  - reg
  - compatible
  - interrupts
  - interrupt-names

allOf:
  - $ref: usb-hcd.yaml#

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    usb@4a0ab000 {
        compatible = "ti,omap4-musb";
        reg = <0x4a0ab000 0x1000>;
        interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "mc", "dma";
        multipoint = <1>;
        num-eps = <16>;
        ram-bits = <12>;
        ctrl-module = <&omap_control_usb>;
        phys = <&usb2_phy>;
        phy-names = "usb2-phy";
        interface-type = <1>;
        mode = <3>;
        power = <50>;
    };
...