Rockchip SuperSpeed DWC3 USB SoC controller

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

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

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

The common content of the node is defined in snps,dwc3.yaml. Phy documentation is provided in the following places. USB2.0 PHY Documentation/devicetree/bindings/phy/rockchip,inno-usb2phy.yaml Type-C PHY Documentation/devicetree/bindings/phy/rockchip,rk3399-typec-phy.yaml

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3328-dwc3", "rockchip,rk3562-dwc3", "rockchip,rk3568-dwc3", "rockchip,rk3576-dwc3", "rockchip,rk3588-dwc3"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "rockchip,rk3328-dwc3", "rockchip,rk3562-dwc3", "rockchip,rk3568-dwc3", "rockchip,rk3576-dwc3", "rockchip,rk3588-dwc3"

Item 2

Exact value (const): "snps,dwc3"

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): 3

Array item rules (items) #

Item 1

Controller reference clock, must to be 24 MHz

Item 2

Controller suspend clock, must to be 24 MHz or 32 KHz

Item 3

Master/Core clock, must to be >= 62.5 MHz for SS operation and >= 30MHz for HS operation

Item 4

Controller grf clock OR UTMI clock

Item 5

PIPE clock

clock-names — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Exact value (const): "ref_clk"

Item 2

Exact value (const): "suspend_clk"

Item 3

Exact value (const): "bus_clk"

Item 4

Allowed values (enum): "grf_clk", "utmi", "pipe"

Item 5

Exact value (const): "pipe"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Exact value (const): "usb3-otg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): snps,dwc3.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3328-dwc3"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Minimum number of items (minItems): 3

Array item rules (items)

Item 1

Exact value (const): "ref_clk"

Item 2

Exact value (const): "suspend_clk"

Item 3

Exact value (const): "bus_clk"

Item 4

Exact value (const): "grf_clk"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3562-dwc3"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ref_clk"

Item 2

Exact value (const): "suspend_clk"

Item 3

Exact value (const): "bus_clk"

Item 4

Exact value (const): "pipe"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3568-dwc3", "rockchip,rk3576-dwc3"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Maximum number of items (maxItems): 3

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3588-dwc3"

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Minimum number of items (minItems): 3

Array item rules (items)

Item 1

Exact value (const): "ref_clk"

Item 2

Exact value (const): "suspend_clk"

Item 3

Exact value (const): "bus_clk"

Item 4

Exact value (const): "utmi"

Item 5

Exact value (const): "pipe"

Examples (examples) #

#include <dt-bindings/clock/rk3328-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

bus {
  #address-cells = <2>;
  #size-cells = <2>;

  usbdrd3_0: usb@fe800000 {
    compatible = "rockchip,rk3328-dwc3", "snps,dwc3";
    reg = <0x0 0xfe800000 0x0 0x100000>;
    interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>,
             <&cru ACLK_USB3OTG>;
    clock-names = "ref_clk", "suspend_clk",
                  "bus_clk", "grf_clk";
    dr_mode = "otg";
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page