xref: /linux/Documentation/devicetree/bindings/usb/allwinner,sun4i-a10-musb.yaml (revision fcc79e1714e8c2b8e216dc3149812edd37884eef)
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          - const: allwinner,sun8i-a33-musb
29      - items:
30          - const: allwinner,sun50i-h616-musb
31          - const: allwinner,sun8i-h3-musb
32
33  reg:
34    maxItems: 1
35
36  interrupts:
37    maxItems: 1
38
39  interrupt-names:
40    const: mc
41
42  clocks:
43    maxItems: 1
44
45  resets:
46    maxItems: 1
47
48  phys:
49    maxItems: 1
50
51  phy-names:
52    const: usb
53
54  extcon:
55    description: Extcon specifier for the OTG PHY
56
57  dr_mode:
58    enum:
59      - host
60      - otg
61      - peripheral
62
63  allwinner,sram:
64    description: Phandle to the device SRAM
65    $ref: /schemas/types.yaml#/definitions/phandle-array
66
67required:
68  - compatible
69  - reg
70  - interrupts
71  - interrupt-names
72  - clocks
73  - phys
74  - phy-names
75  - dr_mode
76  - extcon
77
78if:
79  properties:
80    compatible:
81      contains:
82        enum:
83          - allwinner,sun6i-a31-musb
84          - allwinner,sun8i-a33-musb
85          - allwinner,sun8i-h3-musb
86
87then:
88  required:
89    - resets
90
91additionalProperties: false
92
93examples:
94  - |
95    usb_otg: usb@1c13000 {
96      compatible = "allwinner,sun4i-a10-musb";
97      reg = <0x01c13000 0x0400>;
98      clocks = <&ahb_gates 0>;
99      interrupts = <38>;
100      interrupt-names = "mc";
101      phys = <&usbphy 0>;
102      phy-names = "usb";
103      extcon = <&usbphy 0>;
104      dr_mode = "peripheral";
105    };
106
107...
108