Synopsys DesignWare USB3 Controller common properties
Schema identifier ($id): "http://devicetree.org/schemas/usb/snps,dwc3-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Felipe Balbi <balbi@kernel.org>"
Defines the properties of the DWC3 core as being embedded in either an vendor-specific implementation or as a standalone component.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-drd.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
dr_mode— required hereExact value (
const):"peripheral"When the condition matches (
then) #Shared schema rule (
$ref):usb.yaml#When the condition does not match (
else) #Shared schema rule (
$ref):usb-xhci.yaml#
Properties and child nodes (properties) #
extcon — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
usb-phy — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
USB2/HS PHY
Item 2
USB3/SS PHY
phys — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 19
phy-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 19
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)
Rule 2
Array item rules (
items)String pattern (
pattern):"^usb(2-([0-9]|1[0-4])|3-[0-3])$"
snps,usb2-lpm-disable — not listed as required here #
Indicate if we don't want to enable USB2 HW LPM for host mode.
Value type (type): "boolean"
snps,usb3_lpm_capable — not listed as required here #
Determines if platform is USB3 LPM capable
Value type (type): "boolean"
snps,usb2-gadget-lpm-disable — not listed as required here #
Indicate if we don't want to enable USB2 HW LPM for gadget mode.
Value type (type): "boolean"
snps,reserved-endpoints — not listed as required here #
Reserve endpoints for other needs, e.g, for tracing control and output. When set, the driver will avoid using them for the regular USB transfers.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 30
Array item rules (items) #
Minimum value (
minimum):2Maximum value (
maximum):31
snps,dis-start-transfer-quirk — not listed as required here #
When set, disable isoc START TRANSFER command failure SW work-around for DWC_usb31 version 1.70a-ea06 and prior.
Value type (type): "boolean"
snps,disable_scramble_quirk — not listed as required here #
True when SW should disable data scrambling. Only really useful for FPGA builds.
Value type (type): "boolean"
snps,has-lpm-erratum — not listed as required here #
True when DWC3 was configured with LPM Erratum enabled
Value type (type): "boolean"
snps,lpm-nyet-threshold — not listed as required here #
LPM NYET threshold
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
snps,u2exit_lfps_quirk — not listed as required here #
Set if we want to enable u2exit lfps quirk
Value type (type): "boolean"
snps,u2ss_inp3_quirk — not listed as required here #
Set if we enable P3 OK for U2/SS Inactive quirk
Value type (type): "boolean"
snps,req_p1p2p3_quirk — not listed as required here #
When set, the core will always request for P1/P2/P3 transition sequence.
Value type (type): "boolean"
snps,del_p1p2p3_quirk — not listed as required here #
When set core will delay P1/P2/P3 until a certain amount of 8B10B errors occur.
Value type (type): "boolean"
snps,del_phy_power_chg_quirk — not listed as required here #
When set core will delay PHY power change from P0 to P1/P2/P3.
Value type (type): "boolean"
snps,lfps_filter_quirk — not listed as required here #
When set core will filter LFPS reception.
Value type (type): "boolean"
snps,rx_detect_poll_quirk — not listed as required here #
when set core will disable a 400us delay to start Polling LFPS after RX.Detect.
Value type (type): "boolean"
snps,tx_de_emphasis_quirk — not listed as required here #
When set core will set Tx de-emphasis value
Value type (type): "boolean"
snps,tx_de_emphasis — not listed as required here #
The value driven to the PHY is controlled by the LTSSM during USB3 Compliance mode.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Allowed values (enum): 0, 1, 2
snps,dis_u3_susphy_quirk — not listed as required here #
When set core will disable USB3 suspend phy
Value type (type): "boolean"
snps,dis_u2_susphy_quirk — not listed as required here #
When set core will disable USB2 suspend phy
Value type (type): "boolean"
snps,dis_enblslpm_quirk — not listed as required here #
When set clears the enblslpm in GUSB2PHYCFG, disabling the suspend signal to the PHY.
Value type (type): "boolean"
snps,dis-u1-entry-quirk — not listed as required here #
Set if link entering into U1 needs to be disabled
Value type (type): "boolean"
snps,dis-u2-entry-quirk — not listed as required here #
Set if link entering into U2 needs to be disabled
Value type (type): "boolean"
snps,dis_rxdet_inp3_quirk — not listed as required here #
When set core will disable receiver detection in PHY P3 power state.
Value type (type): "boolean"
snps,dis-u2-freeclk-exists-quirk — not listed as required here #
When set, clear the u2_freeclk_exists in GUSB2PHYCFG, specify that USB2 PHY doesn't provide a free-running PHY clock.
Value type (type): "boolean"
snps,dis-del-phy-power-chg-quirk — not listed as required here #
When set core will change PHY power from P0 to P1/P2/P3 without delay.
Value type (type): "boolean"
snps,dis-tx-ipgap-linecheck-quirk — not listed as required here #
When set, disable u2mac linestate check during HS transmit
Value type (type): "boolean"
snps,parkmode-disable-ss-quirk — not listed as required here #
When set, all SuperSpeed bus instances in park mode are disabled.
Value type (type): "boolean"
snps,parkmode-disable-hs-quirk — not listed as required here #
When set, all HighSpeed bus instances in park mode are disabled.
Value type (type): "boolean"
snps,dis_metastability_quirk — not listed as required here #
When set, disable metastability workaround. CAUTION! Use only if you are absolutely sure of it.
Value type (type): "boolean"
snps,dis-split-quirk — not listed as required here #
When set, change the way URBs are handled by the driver. Needed to avoid -EPROTO errors with usbhid on some devices (Hikey 970).
Value type (type): "boolean"
snps,gfladj-refclk-lpm-sel-quirk — not listed as required here #
When set, run the SOF/ITP counter based on ref_clk.
Value type (type): "boolean"
snps,resume-hs-terminations — not listed as required here #
Fix the issue of HS terminations CRC error on resume by enabling this quirk. When set, all the termsel, xcvrsel, opmode becomes 0 during end of resume. This option is to support certain legacy ULPI PHYs.
Value type (type): "boolean"
snps,ulpi-ext-vbus-drv — not listed as required here #
Some ULPI USB PHY does not support internal VBUS supply, and driving the CPEN pin, requires the configuration of the ulpi DRVVBUSEXTERNAL bit. When set, the xhci host will configure the USB2 PHY drives VBUS with an external supply.
Value type (type): "boolean"
snps,is-utmi-l1-suspend — not listed as required here #
True when DWC3 asserts output signal utmi_l1_suspend_n, false when asserts utmi_sleep_n.
Value type (type): "boolean"
snps,hird-threshold — not listed as required here #
HIRD threshold
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
snps,hsphy_interface — not listed as required here #
High-Speed PHY interface selection between UTMI+ and ULPI when the DWC_USB3_HSPHY_INTERFACE has value 3.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "utmi", "ulpi"
snps,quirk-frame-length-adjustment — not listed as required here #
Value for GFLADJ_30MHZ field of GFLADJ register for post-silicon frame length adjustment when the fladj_30mhz_sdbnd signal is invalid or incorrect.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 63
snps,ref-clock-period-ns — not listed as required here #
Value for REFCLKPER field of GUCTL register for reference clock period in nanoseconds, when the hardware set default does not match the actual clock. This binding is deprecated. Instead, provide an appropriate reference clock.
Minimum value (minimum): 8
Maximum value (maximum): 62
Deprecated (deprecated): true
snps,rx-thr-num-pkt — not listed as required here #
USB RX packet threshold count. In host mode, this field specifies the space that must be available in the RX FIFO before the core can start the corresponding USB RX transaction (burst). In device mode, this field specifies the space that must be available in the RX FIFO before the core can send ERDY for a flow-controlled endpoint. It is only used for SuperSpeed. The valid values for this field are from 1 to 15. (DWC3 SuperSpeed USB 3.0 Controller Databook)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 15
snps,rx-max-burst — not listed as required here #
Max USB RX burst size. In host mode, this field specifies the Maximum Bulk IN burst the DWC_usb3 core can perform. When the system bus is slower than the USB, RX FIFO can overrun during a long burst. You can program a smaller value to this field to limit the RX burst size that the core can perform. It only applies to SS Bulk, Isochronous, and Interrupt IN endpoints in the host mode. In device mode, this field specifies the NUMP value that is sent in ERDY for an OUT endpoint. The valid values for this field are from 1 to 16. (DWC3 SuperSpeed USB 3.0 Controller Databook)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
snps,tx-thr-num-pkt — not listed as required here #
USB TX packet threshold count. This field specifies the number of packets that must be in the TXFIFO before the core can start transmission for the corresponding USB transaction (burst). This count is valid in both host and device modes. It is only used for SuperSpeed operation. Valid values are from 1 to 15. (DWC3 SuperSpeed USB 3.0 Controller Databook)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 15
snps,tx-max-burst — not listed as required here #
Max USB TX burst size. When the system bus is slower than the USB, TX FIFO can underrun during a long burst. Program a smaller value to this field to limit the TX burst size that the core can execute. In Host mode, it only applies to SS Bulk, Isochronous, and Interrupt OUT endpoints. This value is not used in device mode. Valid values are from 1 to 16. (DWC3 SuperSpeed USB 3.0 Controller Databook)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
snps,rx-thr-num-pkt-prd — not listed as required here #
Periodic ESS RX packet threshold count (host mode only). Set this and snps,rx-max-burst-prd to a valid, non-zero value 1-16 (DWC_usb31 programming guide section 1.2.4) to enable periodic ESS RX threshold.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
snps,rx-max-burst-prd — not listed as required here #
Max periodic ESS RX burst size (host mode only). Set this and snps,rx-thr-num-pkt-prd to a valid, non-zero value 1-16 (DWC_usb31 programming guide section 1.2.4) to enable periodic ESS RX threshold.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
snps,tx-thr-num-pkt-prd — not listed as required here #
Periodic ESS TX packet threshold count (host mode only). Set this and snps,tx-max-burst-prd to a valid, non-zero value 1-16 (DWC_usb31 programming guide section 1.2.3) to enable periodic ESS TX threshold.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
snps,tx-max-burst-prd — not listed as required here #
Max periodic ESS TX burst size (host mode only). Set this and snps,tx-thr-num-pkt-prd to a valid, non-zero value 1-16 (DWC_usb31 programming guide section 1.2.3) to enable periodic ESS TX threshold.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 16
tx-fifo-resize — not listed as required here #
Determines if the TX fifos can be dynamically resized depending on the number of IN endpoints used and if bursting is supported. This may help improve bandwidth on platforms with higher system latencies, as increased fifo space allows for the controller to prefetch data into its internal memory.
Value type (type): "boolean"
tx-fifo-max-num — not listed as required here #
Specifies the max number of packets the txfifo resizing logic can account for when higher endpoint bursting is used. (bMaxBurst > 6) The higher the number, the more fifo space the txfifo resizing logic will allocate for that endpoint.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 3
snps,incr-burst-type-adjustment — not listed as required here #
Value for INCR burst type of GSBUSCFG0 register, undefined length INCR burst type enable and INCRx type. A single value means INCRX burst mode enabled. If more than one value specified, undefined length INCR burst type will be enabled with burst lengths utilized up to the maximum of the values passed in this property.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Items must be unique (uniqueItems): true
Array item rules (items) #
num-hc-interrupters — not listed as required here #
Maximum value (maximum): 8
Default value (default): 1
connector — not listed as required here #
Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#
Connector for dual role switch
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
This port is used with the 'usb-role-switch' property to connect the dwc3 to type C connector.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Those ports should be used with any connector to the data bus of this controller using the OF graph bindings specified if the "usb-role-switch" property is used.
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
High Speed (HS) data bus.
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Super Speed (SS) data bus.
wakeup-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable USB remote wakeup.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 142: -6dB de-emphasis
Line 143: -3.5dB de-emphasis
Line 144: No de-emphasis