NVIDIA Tegra USB PHY

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

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

Maintainers (maintainers): "Dmitry Osipenko <digetx@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.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

Allowed values (enum): "nvidia,tegra124-usb-phy", "nvidia,tegra114-usb-phy"

Item 2

Allowed values (enum): "nvidia,tegra30-usb-phy"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra30-usb-phy", "nvidia,tegra20-usb-phy"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

PHY0 and PHY2 share power and ground, PHY0 contains shared registers. PHY0 and PHY2 must specify two register sets, where the first set is PHY own registers and the second set is the PHY0 registers.

clocks — required here #

At least one of these rules must match (anyOf) #

Rule 1

Array item rules (items)

Item 1

Registers clock

Item 2

Main PHY clock

Rule 2

Array item rules (items)

Item 1

Registers clock

Item 2

Main PHY clock

Item 3

ULPI PHY clock

Rule 3

Array item rules (items)

Item 1

Registers clock

Item 2

Main PHY clock

Item 3

UTMI pads control registers clock

Rule 4

Array item rules (items)

Item 1

Registers clock

Item 2

Main PHY clock

Item 3

UTMI timeout clock

Item 4

UTMI pads control registers clock

clock-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "reg"

Item 2

Exact value (const): "pll_u"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "reg"

Item 2

Exact value (const): "pll_u"

Item 3

Exact value (const): "ulpi-link"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "reg"

Item 2

Exact value (const): "pll_u"

Item 3

Exact value (const): "utmi-pads"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "reg"

Item 2

Exact value (const): "pll_u"

Item 3

Exact value (const): "timer"

Item 4

Exact value (const): "utmi-pads"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

resets — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Maximum number of items (maxItems): 1

PHY reset

Rule 2

Array item rules (items)

Item 1

PHY reset

Item 2

UTMI pads reset

reset-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "usb"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "usb"

Item 2

Exact value (const): "utmi-pads"

#phy-cells — required here #

Exact value (const): 0

phy_type — required here #

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

Allowed values (enum): "utmi", "ulpi", "hsic"

dr_mode — not listed as required here #

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

Allowed values (enum): "host", "peripheral", "otg"

Default value (default): "host"

vbus-supply — not listed as required here #

Regulator controlling USB VBUS.

nvidia,has-legacy-mode — not listed as required here #

Indicates whether this controller can operate in legacy mode (as APX 2500 / 2600). In legacy mode some registers are accessed through the APB_MISC base address instead of the USB controller.

Value type (type): "boolean"

nvidia,is-wired — not listed as required here #

Indicates whether we can do certain kind of power optimizations for the devices that are always connected. e.g. modem.

Value type (type): "boolean"

nvidia,has-utmi-pad-registers — not listed as required here #

Indicates whether this controller contains the UTMI pad control registers common to all USB controllers.

Value type (type): "boolean"

nvidia,hssync-start-delay — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 31

Number of 480 MHz clock cycles to wait before start of sync launches RxActive.

nvidia,elastic-limit — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 31

Variable FIFO Depth of elastic input store.

nvidia,idle-wait-delay — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 31

Number of 480 MHz clock cycles of idle to wait before declare IDLE.

nvidia,term-range-adj — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Range adjustment on terminations.

nvidia,xcvr-setup — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 127

Input of XCVR cell, HS driver output control.

nvidia,xcvr-setup-use-fuses — not listed as required here #

Indicates that the value is read from the on-chip fuses.

Value type (type): "boolean"

nvidia,xcvr-lsfslew — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 3

LS falling slew rate control.

nvidia,xcvr-lsrslew — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 3

LS rising slew rate control.

nvidia,xcvr-hsslew — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 511

HS slew rate control.

nvidia,hssquelch-level — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 3

HS squelch detector level.

nvidia,hsdiscon-level — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 7

HS disconnect detector level.

nvidia,phy-reset-gpio — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to reset the PHY.

nvidia,pmc — not listed as required here #

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

Phandle to Power Management controller.

Item 2

USB controller ID.

Phandle to Power Management controller.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "#phy-cells", "phy_type"

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

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

phy_type — not listed as required here

Exact value (const): "utmi"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

resets — not listed as required here

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Maximum number of items (maxItems): 2

Required in this object (required): "nvidia,hssync-start-delay", "nvidia,elastic-limit", "nvidia,idle-wait-delay", "nvidia,term-range-adj", "nvidia,xcvr-lsfslew", "nvidia,xcvr-lsrslew"

At least one of these rules must match (anyOf)

Rule 1

Required in this object (required): "nvidia,xcvr-setup"

Rule 2

Required in this object (required): "nvidia,xcvr-setup-use-fuses"

Condition (if)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra30-usb-phy"

When the condition matches (then)

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "reg"

Item 2

Exact value (const): "pll_u"

Item 3

Exact value (const): "utmi-pads"

Required in this object (required): "nvidia,xcvr-hsslew", "nvidia,hssquelch-level", "nvidia,hsdiscon-level"

When the condition does not match (else)

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "reg"

Item 2

Exact value (const): "pll_u"

Item 3

Exact value (const): "timer"

Item 4

Exact value (const): "utmi-pads"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

phy_type — not listed as required here

Exact value (const): "ulpi"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 1

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Exact value (const): "reg"

Item 2

Exact value (const): "pll_u"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "reg"

Item 2

Exact value (const): "pll_u"

Item 3

Exact value (const): "ulpi-link"

resets — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Examples (examples) #

#include <dt-bindings/clock/tegra124-car.h>

usb-phy@7d008000 {
    compatible = "nvidia,tegra124-usb-phy", "nvidia,tegra30-usb-phy";
    reg = <0x7d008000 0x4000>,
          <0x7d000000 0x4000>;
    interrupts = <0 97 4>;
    phy_type = "utmi";
    clocks = <&tegra_car TEGRA124_CLK_USB3>,
             <&tegra_car TEGRA124_CLK_PLL_U>,
             <&tegra_car TEGRA124_CLK_USBD>;
    clock-names = "reg", "pll_u", "utmi-pads";
    resets = <&tegra_car 59>, <&tegra_car 22>;
    reset-names = "usb", "utmi-pads";
    #phy-cells = <0>;
    nvidia,hssync-start-delay = <0>;
    nvidia,idle-wait-delay = <17>;
    nvidia,elastic-limit = <16>;
    nvidia,term-range-adj = <6>;
    nvidia,xcvr-setup = <9>;
    nvidia,xcvr-lsfslew = <0>;
    nvidia,xcvr-lsrslew = <3>;
    nvidia,hssquelch-level = <2>;
    nvidia,hsdiscon-level = <5>;
    nvidia,xcvr-hsslew = <12>;
    nvidia,pmc = <&tegra_pmc 2>;
};
#include <dt-bindings/clock/tegra20-car.h>

usb-phy@c5004000 {
    compatible = "nvidia,tegra20-usb-phy";
    reg = <0xc5004000 0x4000>;
    interrupts = <0 21 4>;
    phy_type = "ulpi";
    clocks = <&tegra_car TEGRA20_CLK_USB2>,
             <&tegra_car TEGRA20_CLK_PLL_U>,
             <&tegra_car TEGRA20_CLK_CDEV2>;
    clock-names = "reg", "pll_u", "ulpi-link";
    resets = <&tegra_car 58>, <&tegra_car 22>;
    reset-names = "usb", "utmi-pads";
    #phy-cells = <0>;
    nvidia,pmc = <&tegra_pmc 1>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page