NXP iMX8MP Soc USB Controller

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

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

Maintainers (maintainers): "Li Jun <jun.li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "fsl,imx95-dwc3"

Item 2

Exact value (const): "fsl,imx8mp-dwc3"

Rule 2

Exact value (const): "fsl,imx8mp-dwc3"

reg — required here #

Array item rules (items) #

Item 1

Address and length of the register set for HSIO Block Control

Item 2

Address and length of the register set for the wrapper of dwc3 core on the SOC.

#address-cells — required here #

Allowed values (enum): 1, 2

#size-cells — required here #

Allowed values (enum): 1, 2

dma-ranges — not listed as required here #

See section 2.3.9 of the DeviceTree Specification.

ranges — required here #

true — No constraints added by this property rule.

interrupts — required here #

Maximum number of items (maxItems): 1

The interrupt that is asserted when a wakeup event is received.

clocks — required here #

A list of phandle and clock-specifier pairs for the clocks listed in clock-names.

Array item rules (items) #

Item 1

system hsio root clock.

Item 2

suspend clock, used for usb wakeup logic.

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "hsio"

Item 2

Exact value (const): "suspend"

fsl,permanently-attached — not listed as required here #

Value type (type): "boolean"

Indicates if the device attached to a downstream port is permanently attached.

fsl,disable-port-power-control — not listed as required here #

Value type (type): "boolean"

Indicates whether the host controller implementation includes port power control. Defines Bit 3 in capability register (HCCPARAMS).

fsl,over-current-active-low — not listed as required here #

Value type (type): "boolean"

Over current signal polarity is active low.

fsl,power-active-low — not listed as required here #

Value type (type): "boolean"

Power pad (PWR) polarity is active low.

power-domains — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^usb@[0-9a-f]+$ — name matches this regular expression #

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

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "ranges", "clocks", "clock-names", "interrupts", "power-domains"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "fsl,imx8mp-dwc3"

When the condition matches (then) #

Required in this object (required): "dma-ranges"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx8mp-clock.h>
#include <dt-bindings/power/imx8mp-power.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
usb3_0: usb@32f10100 {
  compatible = "fsl,imx8mp-dwc3";
  reg = <0x32f10100 0x8>,
        <0x381f0000 0x20>;
  clocks = <&clk IMX8MP_CLK_HSIO_ROOT>,
           <&clk IMX8MP_CLK_USB_ROOT>;
  clock-names = "hsio", "suspend";
  interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
  power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_USB>;
  #address-cells = <1>;
  #size-cells = <1>;
  dma-ranges = <0x40000000 0x40000000 0xc0000000>;
  ranges;

  usb@38100000 {
    compatible = "snps,dwc3";
    reg = <0x38100000 0x10000>;
    clocks = <&clk IMX8MP_CLK_HSIO_AXI>,
             <&clk IMX8MP_CLK_USB_CORE_REF>,
             <&clk IMX8MP_CLK_USB_ROOT>;
    clock-names = "bus_early", "ref", "suspend";
    assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>;
    assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>;
    assigned-clock-rates = <500000000>;
    interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
    phys = <&usb3_phy0>, <&usb3_phy0>;
    phy-names = "usb2-phy", "usb3-phy";
    snps,dis-u2-freeclk-exists-quirk;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (c) 2020 NXP

Line 81: Required child node:

Edit this page