xref: /linux/Documentation/devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/usb/allwinner,sun4i-a10-musb.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A10 mUSB OTG Controller
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13properties:
14  compatible:
15    oneOf:
16      - enum:
17          - allwinner,sun4i-a10-musb
18          - allwinner,sun6i-a31-musb
19          - allwinner,sun8i-a33-musb
20          - allwinner,sun8i-h3-musb
21          - allwinner,suniv-f1c100s-musb
22      - items:
23          - enum:
24              - allwinner,sun8i-a83t-musb
25              - allwinner,sun20i-d1-musb
26              - allwinner,sun50i-a100-musb
27              - allwinner,sun50i-h6-musb
28              - allwinner,sun55i-a523-musb
29          - const: allwinner,sun8i-a33-musb
30      - items:
31          - const: allwinner,sun50i-h616-musb
32          - const: allwinner,sun8i-h3-musb
33
34  reg:
35    maxItems: 1
36
37  interrupts:
38    maxItems: 1
39
40  interrupt-names:
41    const: mc
42
43  clocks:
44    maxItems: 1
45
46  resets:
47    maxItems: 1
48
49  phys:
50    maxItems: 1
51
52  phy-names:
53    const: usb
54
55  extcon:
56    description: Extcon specifier for the OTG PHY
57
58  dr_mode:
59    enum:
60      - host
61      - otg
62      - peripheral
63
64  allwinner,sram:
65    description: Phandle to the device SRAM
66    $ref: /schemas/types.yaml#/definitions/phandle-array
67
68required:
69  - compatible
70  - reg
71  - interrupts
72  - interrupt-names
73  - clocks
74  - phys
75  - phy-names
76  - dr_mode
77  - extcon
78
79if:
80  properties:
81    compatible:
82      contains:
83        enum:
84          - allwinner,sun6i-a31-musb
85          - allwinner,sun8i-a33-musb
86          - allwinner,sun8i-h3-musb
87
88then:
89  required:
90    - resets
91
92additionalProperties: false
93
94examples:
95  - |
96    usb_otg: usb@1c13000 {
97      compatible = "allwinner,sun4i-a10-musb";
98      reg = <0x01c13000 0x0400>;
99      clocks = <&ahb_gates 0>;
100      interrupts = <38>;
101      interrupt-names = "mc";
102      phys = <&usbphy 0>;
103      phy-names = "usb";
104      extcon = <&usbphy 0>;
105      dr_mode = "peripheral";
106    };
107
108...
109