NVIDIA Tegra XUSB device mode controller (XUDC)

Schema identifier ($id): "http://devicetree.org/schemas/usb/nvidia,tegra-xudc.yaml#"

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

The Tegra XUDC controller supports both USB 2.0 HighSpeed/FullSpeed and USB 3.0 SuperSpeed protocols.

Maintainers (maintainers): "Nagarjuna Kristam <nkristam@nvidia.com>", "JC Kuo <jckuo@nvidia.com>", "Thierry Reding <treding@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "nvidia,tegra210-xudc", "nvidia,tegra186-xudc", "nvidia,tegra194-xudc", "nvidia,tegra234-xudc"

reg — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

XUSB device controller registers

Item 2

XUSB device PCI Config registers

Item 3

XUSB device registers.

reg-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "base"

Item 2

Exact value (const): "fpci"

Item 3

Exact value (const): "ipfs"

interrupts — required here #

Maximum number of items (maxItems): 1

Must contain the XUSB device interrupt.

clocks — required here #

Minimum number of items (minItems): 4

Array item rules (items) #

Item 1

Clock to enable core XUSB dev clock.

Item 2

Clock to enable XUSB super speed clock.

Item 3

Clock to enable XUSB super speed dev clock.

Item 4

Clock to enable XUSB high speed dev clock.

Item 5

Clock to enable XUSB full speed dev clock.

clock-names — required here #

Minimum number of items (minItems): 4

Array item rules (items) #

Item 1

Exact value (const): "dev"

Item 2

Exact value (const): "ss"

Item 3

Exact value (const): "ss_src"

Item 4

Exact value (const): "fs_src"

Item 5

Exact value (const): "hs_src"

interconnects — not listed as required here #

Array item rules (items) #

Item 1

memory read client

Item 2

memory write client

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "write"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Array item rules (items) #

Item 1

XUSBB(device) power-domain

Item 2

XUSBA(superspeed) power-domain

power-domain-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "dev"

Item 2

Exact value (const): "ss"

nvidia,xusb-padctl — required here #

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

phandle to the XUSB pad controller that is used to configure the USB pads used by the XUDC controller.

phys — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Must contain an entry for each entry in phy-names. See ../phy/phy-bindings.txt for details.

phy-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "usb2-0"

Item 2

Exact value (const): "usb3-0"

avddio-usb-supply — not listed as required here #

PCIe/USB3 analog logic power supply. Must supply 1.05 V.

hvdd-usb-supply — not listed as required here #

USB controller power supply. Must supply 3.3 V.

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names", "power-domains", "power-domain-names", "nvidia,xusb-padctl", "phys", "phy-names"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra210-xudc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 3

reg-names — not listed as required here

Minimum number of items (minItems): 3

clocks — not listed as required here

Minimum number of items (minItems): 5

clock-names — not listed as required here

Minimum number of items (minItems): 5

Required in this object (required): "avddio-usb-supply", "hvdd-usb-supply"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra186-xudc", "nvidia,tegra194-xudc", "nvidia,tegra234-xudc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 2

reg-names — not listed as required here

Maximum number of items (maxItems): 2

clocks — not listed as required here

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Maximum number of items (maxItems): 4

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra194-xudc", "nvidia,tegra234-xudc"

When the condition matches (then) #

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra210-car.h>
#include <dt-bindings/gpio/tegra-gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

usb@700d0000 {
    compatible = "nvidia,tegra210-xudc";
    reg = <0x700d0000 0x8000>,
          <0x700d8000 0x1000>,
          <0x700d9000 0x1000>;
    reg-names = "base", "fpci", "ipfs";

    interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;

    clocks = <&tegra_car TEGRA210_CLK_XUSB_DEV>,
             <&tegra_car TEGRA210_CLK_XUSB_SS>,
             <&tegra_car TEGRA210_CLK_XUSB_SSP_SRC>,
             <&tegra_car TEGRA210_CLK_XUSB_FS_SRC>,
             <&tegra_car TEGRA210_CLK_XUSB_HS_SRC>;
    clock-names = "dev", "ss", "ss_src", "fs_src", "hs_src";

    power-domains = <&pd_xusbdev>, <&pd_xusbss>;
    power-domain-names = "dev", "ss";

    nvidia,xusb-padctl = <&padctl>;

    phys = <&micro_b>;
    phy-names = "usb2-0";

    avddio-usb-supply = <&vdd_pex_1v05>;
    hvdd-usb-supply = <&vdd_3v3_sys>;
};

Source notes #

Annotations retained from the schema source

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

Line 22: For Tegra210

Line 23: For Tegra186

Line 24: For Tegra194

Line 25: For Tegra234

Line 70: read

Edit this page