DesignWare HS OTG USB 2.0 controller

Schema identifier ($id): "http://devicetree.org/schemas/usb/dwc2.yaml#"

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

Maintainers (maintainers): "Rob Herring <robh@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): usb-drd.yaml#

Rule 2 #

Shared schema rule ($ref): usb-hcd.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "brcm,bcm2835-usb"

Rule 2

Exact value (const): "hisilicon,hi6220-usb"

Rule 3

Exact value (const): "ingenic,jz4775-otg"

Rule 4

Exact value (const): "ingenic,jz4780-otg"

Rule 5

Exact value (const): "ingenic,x1000-otg"

Rule 6

Exact value (const): "ingenic,x1600-otg"

Rule 7

Exact value (const): "ingenic,x1700-otg"

Rule 8

Exact value (const): "ingenic,x1830-otg"

Rule 9

Exact value (const): "ingenic,x2000-otg"

Rule 10

Array item rules (items)

Item 1

Exact value (const): "rockchip,rk3066-usb"

Item 2

Exact value (const): "snps,dwc2"

Rule 11

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,px30-usb", "rockchip,rk3036-usb", "rockchip,rk3128-usb", "rockchip,rk3188-usb", "rockchip,rk3228-usb", "rockchip,rk3288-usb", "rockchip,rk3308-usb", "rockchip,rk3328-usb", "rockchip,rk3368-usb", "rockchip,rv1108-usb"

Item 2

Exact value (const): "rockchip,rk3066-usb"

Item 3

Exact value (const): "snps,dwc2"

Rule 12

Exact value (const): "lantiq,arx100-usb"

Rule 13

Exact value (const): "lantiq,ase-usb"

Rule 14

Exact value (const): "lantiq,danube-usb"

Rule 15

Exact value (const): "lantiq,xrx200-usb"

Rule 16

Exact value (const): "lantiq,xrx300-usb"

Rule 17

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,meson8-usb", "amlogic,meson8b-usb", "amlogic,meson-gxbb-usb", "amlogic,meson-g12a-usb", "amlogic,meson-a1-usb", "intel,socfpga-agilex-hsotg"

Item 2

Exact value (const): "snps,dwc2"

Rule 18

Exact value (const): "amcc,dwc-otg"

Rule 19

Exact value (const): "apm,apm82181-dwc-otg"

Rule 20

Exact value (const): "snps,dwc2"

Rule 21

Exact value (const): "sophgo,cv1800b-usb"

Rule 22

Exact value (const): "st,stm32f4x9-fsotg"

Rule 23

Exact value (const): "st,stm32f4x9-hsotg"

Rule 24

Exact value (const): "st,stm32f7-hsotg"

Rule 25

Exact value (const): "st,stm32mp15-fsotg"

Rule 26

Array item rules (items)

Item 1

Exact value (const): "st,stm32mp15-hsotg"

Item 2

Exact value (const): "snps,dwc2"

Rule 27

Exact value (const): "samsung,s3c6400-hsotg"

Rule 28

Exact value (const): "intel,socfpga-agilex-hsotg"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "otg"

Item 2

Exact value (const): "utmi"

Minimum number of items (minItems): 1

disable-over-current — not listed as required here #

Value type (type): "boolean"

whether to disable detection of over-current condition.

iommus — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Array item rules (items) #

Item 1

common reset

Item 2

ecc reset

Minimum number of items (minItems): 1

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dwc2"

Item 2

Exact value (const): "dwc2-ecc"

Minimum number of items (minItems): 1

phys — not listed as required here #

Maximum number of items (maxItems): 1

phy-names — not listed as required here #

Exact value (const): "usb2-phy"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

vbus-supply — not listed as required here #

reference to the VBUS regulator. Depending on the current mode this is enabled (in "host" mode") or disabled (in "peripheral" mode). The regulator is updated if the controller is configured in "otg" mode and the status changes between "host" and "peripheral".

vusb_d-supply — not listed as required here #

phandle to voltage regulator of digital section,

vusb_a-supply — not listed as required here #

phandle to voltage regulator of analog section.

usb33d-supply — not listed as required here #

reference to the VBUS and ID sensing comparators supply, in order to perform OTG operation, used on STM32MP15 SoCs.

dr_mode — not listed as required here #

true — No constraints added by this property rule.

otg-rev — not listed as required here #

true — No constraints added by this property rule.

hnp-disable — not listed as required here #

true — No constraints added by this property rule.

srp-disable — not listed as required here #

true — No constraints added by this property rule.

usb-role-switch — not listed as required here #

true — No constraints added by this property rule.

role-switch-default-mode — not listed as required here #

true — No constraints added by this property rule.

g-rx-fifo-size — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

size of rx fifo size in gadget mode.

g-np-tx-fifo-size — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

size of non-periodic tx fifo size in gadget mode.

g-tx-fifo-size — not listed as required here #

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

size of periodic tx fifo per endpoint (except ep0) in gadget mode.

snps,need-phy-for-wake — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

If present indicates that the phy needs to be left on for remote wakeup during suspend.

snps,reset-phy-on-wake — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

If present indicates that we need to reset the PHY when we detect a wakeup. This is due to a hardware errata.

port — not listed as required here #

Any connector to the data bus of this controller should be modelled using the OF graph bindings specified, if the "usb-role-switch" property is used.

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

tpl-support — not listed as required here #

true — No constraints added by this property rule.

access-controllers — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Property dependencies (dependencies) #

port — applies when this property is present #

Also requires: "usb-role-switch"

role-switch-default-mode — applies when this property is present #

Also requires: "usb-role-switch"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

usb@101c0000 {
    compatible = "rockchip,rk3066-usb", "snps,dwc2";
    reg = <0x10180000 0x40000>;
    interrupts = <18>;
    clocks = <&usb_otg_ahb_clk>;
    clock-names = "otg";
    phys = <&usbphy>;
    phy-names = "usb2-phy";
};

Source notes #

Annotations retained from the schema source

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

Edit this page