xref: /linux/Documentation/devicetree/bindings/usb/ti,omap4-musb.yaml (revision fc2d791a43d3880496d1c729b8bd74d2c19cb4e7)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/usb/ti,omap4-musb.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments OMAP MUSB USB OTG Controller
8
9maintainers:
10  - Felipe Balbi <balbi@ti.com>
11
12description:
13  Texas Instruments glue layer for the Mentor Graphics MUSB OTG controller.
14  Handles SoC-specific integration including PHY interface bridging(ULPI/
15  UTMI), interrupt aggregation, DMA engine coordination (internal/
16  external), VBUS/session control via control module mailbox, and
17  clock/reset management. Provides fixed hardware configuration parameters
18  to the generic MUSB core driver.
19
20properties:
21  compatible:
22    enum:
23      - ti,omap3-musb
24      - ti,omap4-musb
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    minItems: 1
31    maxItems: 2
32
33  interrupt-names:
34    minItems: 1
35    items:
36      - const: mc
37      - const: dma
38
39  multipoint:
40    $ref: /schemas/types.yaml#/definitions/uint32
41    description:
42      Indicates the MUSB controller supports multipoint. This is a MUSB
43      configuration-specific setting.
44    const: 1
45
46  num-eps:
47    $ref: /schemas/types.yaml#/definitions/uint32
48    description:
49      Specifies the number of endpoints. This is a MUSB configuration
50      specific setting.
51    const: 16
52
53  ram-bits:
54    description: Specifies the RAM address size.
55    const: 12
56
57  interface-type:
58    $ref: /schemas/types.yaml#/definitions/uint32
59    description:
60      Describes the type of interface between the controller and the PHY.
61      0 for ULPI, 1 for UTMI.
62    enum: [0, 1]
63
64  mode:
65    $ref: /schemas/types.yaml#/definitions/uint32
66    description: 1 for HOST, 2 for PERIPHERAL, 3 for OTG.
67    enum: [1, 2, 3]
68
69  power:
70    $ref: /schemas/types.yaml#/definitions/uint32
71    description:
72      Indicates the maximum current the controller can supply when
73      operating in host mode. A value of 50 corresponds to 100 mA, and a
74      value of 150 corresponds to 300 mA.
75    enum: [50, 150]
76
77  phys:
78    maxItems: 1
79
80  phy-names:
81    const: usb2-phy
82
83  usb-phy:
84    $ref: /schemas/types.yaml#/definitions/phandle-array
85    description: Phandle for the PHY device.
86    deprecated: true
87
88  ctrl-module:
89    $ref: /schemas/types.yaml#/definitions/phandle
90    description:
91      Phandle of the control module this glue uses to write to mailbox.
92
93required:
94  - reg
95  - compatible
96  - interrupts
97  - interrupt-names
98
99unevaluatedProperties: false
100
101examples:
102  - |
103    #include <dt-bindings/interrupt-controller/arm-gic.h>
104    usb@4a0ab000 {
105        compatible = "ti,omap4-musb";
106        reg = <0x4a0ab000 0x1000>;
107        interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>,
108                     <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
109        interrupt-names = "mc", "dma";
110        multipoint = <1>;
111        num-eps = <16>;
112        ram-bits = <12>;
113        ctrl-module = <&omap_control_usb>;
114        phys = <&usb2_phy>;
115        phy-names = "usb2-phy";
116        interface-type = <1>;
117        mode = <3>;
118        power = <50>;
119    };
120...
121