Allwinner A10 mUSB OTG Controller

Schema identifier ($id): "http://devicetree.org/schemas/usb/allwinner,sun4i-a10-musb.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "allwinner,sun4i-a10-musb", "allwinner,sun6i-a31-musb", "allwinner,sun8i-a33-musb", "allwinner,sun8i-h3-musb", "allwinner,suniv-f1c100s-musb"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun8i-a83t-musb", "allwinner,sun20i-d1-musb", "allwinner,sun50i-a100-musb", "allwinner,sun50i-h6-musb", "allwinner,sun55i-a523-musb"

Item 2

Exact value (const): "allwinner,sun8i-a33-musb"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun50i-h616-musb"

Item 2

Exact value (const): "allwinner,sun8i-h3-musb"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-names — required here #

Exact value (const): "mc"

clocks — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

phys — required here #

Maximum number of items (maxItems): 1

phy-names — required here #

Exact value (const): "usb"

extcon — required here #

Extcon specifier for the OTG PHY

dr_mode — required here #

Allowed values (enum): "host", "otg", "peripheral"

allwinner,sram — not listed as required here #

Phandle to the device SRAM

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "phys", "phy-names", "dr_mode", "extcon"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun6i-a31-musb", "allwinner,sun8i-a33-musb", "allwinner,sun8i-h3-musb"

When the condition matches (then) #

Required in this object (required): "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

usb_otg: usb@1c13000 {
  compatible = "allwinner,sun4i-a10-musb";
  reg = <0x01c13000 0x0400>;
  clocks = <&ahb_gates 0>;
  interrupts = <38>;
  interrupt-names = "mc";
  phys = <&usbphy 0>;
  phy-names = "usb";
  extcon = <&usbphy 0>;
  dr_mode = "peripheral";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page