Freescale SOC USB controllers
Schema identifier ($id): "http://devicetree.org/schemas/usb/fsl,usb2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
The device node for a USB controller that is part of a Freescale SOC is as described in the document "Open Firmware Recommended Practice: Universal Serial Bus" with the following modifications and additions.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl-usb2-dr-v2.2","fsl-usb2-dr-v2.5"Item 2
Exact value (
const):"fsl-usb2-dr"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
phy_type — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "ulpi", "serial", "utmi", "utmi_wide"
port0 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates port0 is connected for fsl-usb2-mph compatible controllers.
port1 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates port1 is connected for "fsl-usb2-mph" compatible controllers.
fsl,invert-drvvbus — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
for MPC5121 USB0 only. Indicates the port power polarity of internal PHY signal DRVVBUS is inverted.
fsl,invert-pwr-fault — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
for MPC5121 USB0 only. Indicates the PWR_FAULT signal polarity is inverted.
Required in this object (required): "compatible", "reg", "interrupts", "phy_type"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):usb-drd.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
usb@22000 {
compatible = "fsl-usb2-mph";
reg = <22000 1000>;
interrupts = <27 IRQ_TYPE_EDGE_RISING>;
phy_type = "ulpi";
port0;
port1;
};
#include <dt-bindings/interrupt-controller/irq.h>
usb@23000 {
compatible = "fsl-usb2-dr";
reg = <23000 1000>;
interrupts = <26 IRQ_TYPE_EDGE_RISING>;
dr_mode = "otg";
phy_type = "ulpi";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)