Cadence USBSS-DRD controller

Schema identifier ($id): "http://devicetree.org/schemas/usb/cdns,usb3.yaml#"

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

Maintainers (maintainers): "Pawel Laszczak <pawell@cadence.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cdns,usb3"

reg — required here #

Array item rules (items) #

Item 1

OTG controller registers

Item 2

XHCI Host controller registers

Item 3

DEVICE controller registers

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "otg"

Item 2

Exact value (const): "xhci"

Item 3

Exact value (const): "dev"

interrupts — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

XHCI host controller interrupt

Item 2

Device controller interrupt

Item 3

OTG/DRD controller interrupt

Item 4

interrupt used to wake up core, e.g when usbcmd.rs is cleared by xhci core, this interrupt is optional

interrupt-names — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

Exact value (const): "host"

Item 2

Exact value (const): "peripheral"

Item 3

Exact value (const): "otg"

Item 4

Exact value (const): "wakeup"

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 cdns3 to type C connector.

maximum-speed — not listed as required here #

Allowed values (enum): "super-speed", "high-speed", "full-speed"

phys — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

phy-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Array item rules (items) #

At least one of these rules must match (anyOf)

Rule 1

Exact value (const): "cdns3,usb2-phy"

Rule 2

Exact value (const): "cdns3,usb3-phy"

cdns,on-chip-buff-size — not listed as required here #

size of memory intended as internal memory for endpoints buffers expressed in KB

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

cdns,phyrst-a-enable — not listed as required here #

Enable resetting of PHY if Rx fail is detected

Value type (type): "boolean"

Property dependencies (dependencies) #

port — applies when this property is present #

Also requires: "usb-role-switch"

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names"

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/arm-gic.h>
bus {
    #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>,
                     <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
        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-only OR BSD-2-Clause

Edit this page