0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/usb/allwinner,sun4i-a10-musb.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A10 mUSB OTG Controller Device Tree Bindings
0008
0009 maintainers:
0010 - Chen-Yu Tsai <wens@csie.org>
0011 - Maxime Ripard <mripard@kernel.org>
0012
0013 properties:
0014 compatible:
0015 oneOf:
0016 - const: allwinner,sun4i-a10-musb
0017 - const: allwinner,sun6i-a31-musb
0018 - const: allwinner,sun8i-a33-musb
0019 - const: allwinner,sun8i-h3-musb
0020 - items:
0021 - enum:
0022 - allwinner,sun8i-a83t-musb
0023 - allwinner,sun20i-d1-musb
0024 - allwinner,sun50i-h6-musb
0025 - const: allwinner,sun8i-a33-musb
0026 - items:
0027 - const: allwinner,sun50i-h616-musb
0028 - const: allwinner,sun8i-h3-musb
0029
0030 reg:
0031 maxItems: 1
0032
0033 interrupts:
0034 maxItems: 1
0035
0036 interrupt-names:
0037 const: mc
0038
0039 clocks:
0040 maxItems: 1
0041
0042 resets:
0043 maxItems: 1
0044
0045 phys:
0046 maxItems: 1
0047
0048 phy-names:
0049 const: usb
0050
0051 extcon:
0052 description: Extcon specifier for the OTG PHY
0053
0054 dr_mode:
0055 enum:
0056 - host
0057 - otg
0058 - peripheral
0059
0060 allwinner,sram:
0061 description: Phandle to the device SRAM
0062 $ref: /schemas/types.yaml#/definitions/phandle-array
0063
0064 required:
0065 - compatible
0066 - reg
0067 - interrupts
0068 - interrupt-names
0069 - clocks
0070 - phys
0071 - phy-names
0072 - dr_mode
0073 - extcon
0074
0075 if:
0076 properties:
0077 compatible:
0078 contains:
0079 enum:
0080 - allwinner,sun6i-a31-musb
0081 - allwinner,sun8i-a33-musb
0082 - allwinner,sun8i-h3-musb
0083
0084 then:
0085 required:
0086 - resets
0087
0088 additionalProperties: false
0089
0090 examples:
0091 - |
0092 usb_otg: usb@1c13000 {
0093 compatible = "allwinner,sun4i-a10-musb";
0094 reg = <0x01c13000 0x0400>;
0095 clocks = <&ahb_gates 0>;
0096 interrupts = <38>;
0097 interrupt-names = "mc";
0098 phys = <&usbphy 0>;
0099 phy-names = "usb";
0100 extcon = <&usbphy 0>;
0101 dr_mode = "peripheral";
0102 };
0103
0104 ...