NVIDIA Tegra186 XUSB pad controller
Schema identifier ($id): "http://devicetree.org/schemas/phy/nvidia,tegra186-xusb-padctl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
The Tegra XUSB pad controller manages a set of I/O lanes (with differential signals) which connect directly to pins/pads on the SoC package. Each lane is controlled by a HW block referred to as a "pad" in the Tegra hardware documentation. Each such "pad" may control either one or multiple lanes, and thus contains any logic common to all its lanes. Each lane can be separately configured and powered up.
Some of the lanes are high-speed lanes, which can be used for PCIe, SATA or super-speed USB. Other lanes are for various types of low-speed, full-speed or high-speed USB (such as UTMI, ULPI and HSIC). The XUSB pad controller contains a software-configurable mux that sits between the I/O controller ports (e.g. PCIe) and the lanes.
In addition to per-lane configuration, USB 3.0 ports may require additional settings on a per-board basis.
Pads will be represented as children of the top-level XUSB pad controller device tree node. Each lane exposed by the pad will be represented by its own subnode and can be referenced by users of the lane using the standard PHY bindings, as described by the phy-bindings.txt file in this directory.
The Tegra hardware documentation refers to the connection between the XUSB pad controller and the XUSB controller as "ports". This is confusing since "port" is typically used to denote the physical USB receptacle. The device tree binding in this document uses the term "port" to refer to the logical abstraction of the signals that are routed to a USB receptacle (i.e. a PHY for the USB signal, the VBUS power supply, the USB 2.0 companion port for USB 3.0 receptacles, ...).
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nvidia,tegra186-xusb-padctl"
reg — required here #
Array item rules (items) #
Item 1
pad controller registers
Item 2
AO registers
interrupts — not listed as required here #
Array item rules (items) #
Item 1
XUSB pad controller interrupt
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"padctl"
Item 2
Exact value (
const):"ao"
resets — required here #
Array item rules (items) #
Item 1
pad controller reset
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"padctl"
avdd-pll-erefeut-supply — required here #
UPHY brick and reference clock as well as UTMI PHY power supply. Must supply 1.8 V.
avdd-usb-supply — required here #
USB I/Os, VBUS, ID, REXT, D+/D- power supply. Must supply 3.3 V.
vclamp-usb-supply — required here #
Bias rail for USB pad. Must supply 1.8 V.
vddio-hsic-supply — required here #
HSIC PHY power supply. Must supply 1.2 V.
pads — not listed as required here #
A required child node named "pads" contains a list of subnodes, one for each of the pads exposed by the XUSB pad controller. Each pad may need additional resources that can be referenced in its pad node. The "status" property is used to enable or disable the use of a pad. If set to "disabled", the pad will not be used on the given board. In order to use the pad and any of its lanes, this property must be set to "okay" or be absent.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
usb2 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
clocks — not listed as required here
Array item rules (items)
Item 1
USB2 tracking clock
clock-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"trk"
lanes — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
usb2-0 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
#phy-cells — not listed as required here
Exact value (const): 0
nvidia,function — not listed as required here
Function selection for this lane.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
usb2-1 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
#phy-cells — not listed as required here
Exact value (const): 0
nvidia,function — not listed as required here
Function selection for this lane.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
usb2-2 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
#phy-cells — not listed as required here
Exact value (const): 0
nvidia,function — not listed as required here
Function selection for this lane.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
hsic — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
clocks — not listed as required here
Array item rules (items)
Item 1
HSIC tracking clock
clock-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"trk"
lanes — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
hsic-0 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
#phy-cells — not listed as required here
Exact value (const): 0
nvidia,function — not listed as required here
Function selection for this lane.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
usb3 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
lanes — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
usb3-0 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
#phy-cells — not listed as required here
Exact value (const): 0
nvidia,function — not listed as required here
Function selection for this lane.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
usb3-1 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
#phy-cells — not listed as required here
Exact value (const): 0
nvidia,function — not listed as required here
Function selection for this lane.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
usb3-2 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
#phy-cells — not listed as required here
Exact value (const): 0
nvidia,function — not listed as required here
Function selection for this lane.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
ports — not listed as required here #
A required child node named "ports" contains a list of subnodes, one for each of the ports exposed by the XUSB pad controller. Each port may need additional resources that can be referenced in its port node. The "status" property is used to enable or disable the use of a port. If set to "disabled", the port will not be used on the given board. In order to use the port, this property must be set to "okay".
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
usb2-0 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
connector — not listed as required here
Value type (type): "object"
mode — not listed as required here
A string that determines the mode in which to run the port.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "host", "peripheral", "otg"
nvidia,internal — not listed as required here
A boolean property whose presence determines that a port is internal. In the absence of this property the port is considered to be external.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
usb-role-switch — not listed as required here
A boolean property whole presence indicates that the port supports OTG or peripheral mode. If present, the port supports switching between USB host and peripheral roles. A connector must be added as a subnode in that case.
See ../connector/usb-connector.yaml.
vbus-supply — not listed as required here
A phandle to the regulator supplying the VBUS voltage.
Property dependencies (dependencies)
usb-role-switch — applies when this property is present
Also requires: "connector"
usb2-1 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
connector — not listed as required here
Value type (type): "object"
mode — not listed as required here
A string that determines the mode in which to run the port.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "host", "peripheral", "otg"
nvidia,internal — not listed as required here
A boolean property whose presence determines that a port is internal. In the absence of this property the port is considered to be external.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
usb-role-switch — not listed as required here
A boolean property whole presence indicates that the port supports OTG or peripheral mode. If present, the port supports switching between USB host and peripheral roles. A connector must be added as a subnode in that case.
See ../connector/usb-connector.yaml.
vbus-supply — not listed as required here
A phandle to the regulator supplying the VBUS voltage.
Property dependencies (dependencies)
usb-role-switch — applies when this property is present
Also requires: "connector"
usb2-2 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
connector — not listed as required here
Value type (type): "object"
mode — not listed as required here
A string that determines the mode in which to run the port.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "host", "peripheral", "otg"
nvidia,internal — not listed as required here
A boolean property whose presence determines that a port is internal. In the absence of this property the port is considered to be external.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
usb-role-switch — not listed as required here
A boolean property whole presence indicates that the port supports OTG or peripheral mode. If present, the port supports switching between USB host and peripheral roles. A connector must be added as a subnode in that case.
See ../connector/usb-connector.yaml.
vbus-supply — not listed as required here
A phandle to the regulator supplying the VBUS voltage.
Property dependencies (dependencies)
usb-role-switch — applies when this property is present
Also requires: "connector"
hsic-0 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
usb3-0 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
nvidia,internal — not listed as required here
A boolean property whose presence determines that a port is internal. In the absence of this property the port is considered to be external.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
nvidia,usb2-companion — not listed as required here
A single cell that specifies the physical port number to map this super-speed USB port to. The range of valid port numbers varies with the SoC generation.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
vbus-supply — not listed as required here
A phandle to the regulator supplying the VBUS voltage.
usb3-1 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
nvidia,internal — not listed as required here
A boolean property whose presence determines that a port is internal. In the absence of this property the port is considered to be external.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
nvidia,usb2-companion — not listed as required here
A single cell that specifies the physical port number to map this super-speed USB port to. The range of valid port numbers varies with the SoC generation.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
vbus-supply — not listed as required here
A phandle to the regulator supplying the VBUS voltage.
usb3-2 — not listed as required here
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
nvidia,internal — not listed as required here
A boolean property whose presence determines that a port is internal. In the absence of this property the port is considered to be external.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
nvidia,usb2-companion — not listed as required here
A single cell that specifies the physical port number to map this super-speed USB port to. The range of valid port numbers varies with the SoC generation.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
vbus-supply — not listed as required here
A phandle to the regulator supplying the VBUS voltage.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "resets", "reset-names", "avdd-pll-erefeut-supply", "avdd-usb-supply", "vclamp-usb-supply", "vddio-hsic-supply"
Examples (examples) #
#include <dt-bindings/clock/tegra186-clock.h>
#include <dt-bindings/gpio/tegra186-gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/tegra186-reset.h>
padctl@3520000 {
compatible = "nvidia,tegra186-xusb-padctl";
reg = <0x03520000 0x1000>,
<0x03540000 0x1000>;
reg-names = "padctl", "ao";
interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
resets = <&bpmp TEGRA186_RESET_XUSB_PADCTL>;
reset-names = "padctl";
avdd-pll-erefeut-supply = <&vdd_1v8_pll>;
avdd-usb-supply = <&vdd_3v3_sys>;
vclamp-usb-supply = <&vdd_1v8>;
vddio-hsic-supply = <&gnd>;
pads {
usb2 {
clocks = <&bpmp TEGRA186_CLK_USB2_TRK>;
clock-names = "trk";
lanes {
usb2-0 {
nvidia,function = "xusb";
#phy-cells = <0>;
};
usb2-1 {
nvidia,function = "xusb";
#phy-cells = <0>;
};
usb2-2 {
nvidia,function = "xusb";
#phy-cells = <0>;
};
};
};
hsic {
clocks = <&bpmp TEGRA186_CLK_HSIC_TRK>;
clock-names = "trk";
status = "disabled";
lanes {
hsic-0 {
status = "disabled";
#phy-cells = <0>;
};
};
};
usb3 {
lanes {
usb3-0 {
nvidia,function = "xusb";
#phy-cells = <0>;
};
usb3-1 {
nvidia,function = "xusb";
#phy-cells = <0>;
};
usb3-2 {
nvidia,function = "xusb";
#phy-cells = <0>;
};
};
};
};
ports {
usb2-0 {
mode = "otg";
vbus-supply = <&vdd_usb0>;
usb-role-switch;
connector {
compatible = "gpio-usb-b-connector",
"usb-b-connector";
label = "micro-USB";
type = "micro";
vbus-gpios = <&gpio TEGRA186_MAIN_GPIO(X, 7) GPIO_ACTIVE_LOW>;
id-gpios = <&pmic 0 GPIO_ACTIVE_HIGH>;
};
};
usb2-1 {
vbus-supply = <&vdd_usb1>;
mode = "host";
};
usb2-2 {
status = "disabled";
};
hsic-0 {
status = "disabled";
};
usb3-0 {
nvidia,usb2-companion = <1>;
};
usb3-1 {
status = "disabled";
};
usb3-2 {
status = "disabled";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 236: no need to further describe this because the connector will
Line 237: match on gpio-usb-b-connector or usb-b-connector and cause
Line 238: that binding to be selected for the subnode
Line 274: no need to further describe this because the connector will
Line 275: match on gpio-usb-b-connector or usb-b-connector and cause
Line 276: that binding to be selected for the subnode
Line 312: no need to further describe this because the connector will
Line 313: match on gpio-usb-b-connector or usb-b-connector and cause
Line 314: that binding to be selected for the subnode