USB2 ChipIdea USB controller Common Properties
Schema identifier ($id): "http://devicetree.org/schemas/usb/chipidea,usb2-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Xu Yang <xu.yang_2@nxp.com>"
Properties and child nodes (properties) #
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
dr_mode — not listed as required here #
true — No constraints added by this property rule.
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 #
Maximum number of items (maxItems): 1
#reset-cells — not listed as required here #
Exact value (const): 1
phy_type — not listed as required here #
true — No constraints added by this property rule.
iommus — not listed as required here #
Maximum number of items (maxItems): 1
itc-setting — not listed as required here #
interrupt threshold control register control, the setting should be aligned with ITC bits at register USBCMD.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
ahb-burst-config — not listed as required here #
it is vendor dependent, the required value should be aligned with AHBBRST at SBUSCFG, the range is from 0x0 to 0x7. This property is used to change AHB burst configuration, check the chipidea spec for meaning of each value. If this property is not existed, it will use the reset value.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
tx-burst-size-dword — not listed as required here #
it is vendor dependent, the tx burst size in dword (4 bytes), This register represents the maximum length of a the burst in 32-bit words while moving data from system memory to the USB bus, the value of this property will only take effect if property "ahb-burst-config" is set to 0, if this property is missing the reset default of the hardware implementation will be used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 32
rx-burst-size-dword — not listed as required here #
it is vendor dependent, the rx burst size in dword (4 bytes), This register represents the maximum length of a the burst in 32-bit words while moving data from the USB bus to system memory, the value of this property will only take effect if property "ahb-burst-config" is set to 0, if this property is missing the reset default of the hardware implementation will be used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 32
extcon — not listed as required here #
Phandles to external connector devices. First phandle should point to external connector, which provide "USB" cable events, the second should point to external connector device, which provide "USB-HOST" cable events. If one of the external connector devices is not required, empty <0> phandle should be specified.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
vbus extcon
Item 2
id extcon
phy-clkgate-delay-us — not listed as required here #
The delay time (us) between putting the PHY into low power mode and gating the PHY clock.
non-zero-ttctrl-ttha — not listed as required here #
After setting this property, the value of register ttctrl.ttha will be 0x7f; if not, the value will be 0x0, this is the default value. It needs to be very carefully for setting this property, it is recommended that consult with your IC engineer before setting this value. On the most of chipidea platforms, the "usage_tt" flag at RTL is 0, so this property only affects siTD. If this property is not set, the max packet size is 1023 bytes, and if the total of packet size for previous transactions are more than 256 bytes, it can't accept any transactions within this frame. The use case is single transaction, but higher frame rate. If this property is set, the max packet size is 188 bytes, it can handle more transactions than above case, it can accept transactions until it considers the left room size within frame is less than 188 bytes, software needs to make sure it does not send more than 90% maximum_periodic_data_per_frame. The use case is multiple transactions, but less frame rate.
Value type (type): "boolean"
mux-controls — not listed as required here #
The mux control for toggling host/device output of this controller. It's expected that a mux state of 0 indicates device mode and a mux state of 1 indicates host mode.
Maximum number of items (maxItems): 1
mux-control-names — not listed as required here #
Exact value (const): "usb_switch"
pinctrl-names — not listed as required here #
Names for optional pin modes in "default", "host", "device". In case of HSIC-mode, "idle" and "active" pin modes are mandatory. In this case, the "idle" state needs to pull down the data and strobe pin and the "active" state needs to pull up the strobe pin.
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"idle"Item 2
Exact value (
const):"active"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"default"Item 2
Exact value (
const):"host"Item 3
Exact value (
const):"device"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"default"Item 2
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"default"
pinctrl-0 — not listed as required here #
Maximum number of items (maxItems): 1
pinctrl-1 — not listed as required here #
Maximum number of items (maxItems): 1
phys — not listed as required here #
Maximum number of items (maxItems): 1
phy-names — not listed as required here #
Exact value (const): "usb-phy"
vbus-supply — not listed as required here #
reference to the VBUS regulator.
usb-phy — not listed as required here #
phandle for the PHY device. Use "phys" instead.
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
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
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Property dependencies (dependencies) #
port — applies when this property is present #
Also requires: "usb-role-switch"
mux-controls — applies when this property is present #
Also requires: "mux-control-names"
Required in this object (required): "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-hcd.yaml#
Rule 2 #
Shared schema rule (
$ref):usb-drd.yaml#
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-only OR BSD-2-Clause)