TI wrapper module for the Cadence USBSS-DRD controller

Schema identifier ($id): "http://devicetree.org/schemas/usb/ti,j721e-usb.yaml#"

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

Maintainers (maintainers): "Roger Quadros <rogerq@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "ti,j721e-usb"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ti,am64-usb"

Item 2

Exact value (const): "ti,j721e-usb"

reg — required here #

Maximum number of items (maxItems): 1

ranges — not listed as required here #

true — No constraints added by this property rule.

power-domains — required here #

PM domain provider node and an args specifier containing the USB device id value. See, Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml

Maximum number of items (maxItems): 1

clocks — required here #

Clock phandles to usb2_refclk and lpm_clk

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ref"

Item 2

Exact value (const): "lpm"

ti,usb2-only — not listed as required here #

If present, it restricts the controller to USB2.0 mode of operation. Must be present if USB3 PHY is not available for USB.

Value type (type): "boolean"

ti,vbus-divider — not listed as required here #

Should be present if USB VBUS line is connected to the VBUS pin of the SoC via a 1/3 voltage divider.

Value type (type): "boolean"

#address-cells — not listed as required here #

Exact value (const): 2

#size-cells — not listed as required here #

Exact value (const): 2

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^usb@ — name matches this regular expression #

Value type (type): "object"

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/ti,sci_pm_domain.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

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

    cdns_usb@4104000 {
        compatible = "ti,j721e-usb";
        reg = <0x00 0x4104000 0x00 0x100>;
        power-domains = <&k3_pds 288 TI_SCI_PD_EXCLUSIVE>;
        clocks = <&k3_clks 288 15>, <&k3_clks 288 3>;
        clock-names = "ref", "lpm";
        assigned-clocks = <&k3_clks 288 15>;	/* USB2_REFCLK */
        assigned-clock-parents = <&k3_clks 288 16>; /* HFOSC0 */
        #address-cells = <2>;
        #size-cells = <2>;

        usb@6000000 {
              compatible = "cdns,usb3";
              reg = <0x00 0x6000000 0x00 0x10000>,
                    <0x00 0x6010000 0x00 0x10000>,
                    <0x00 0x6020000 0x00 0x10000>;
              reg-names = "otg", "xhci", "dev";
              interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,	/* irq.0 */
                           <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,	/* irq.6 */
                           <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;	/* otgirq.0 */
              interrupt-names = "host",
                                "peripheral",
                                "otg";
              maximum-speed = "super-speed";
              dr_mode = "otg";
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page