1 Device tree binding for NVIDIA Tegra XUSB pad controller
2 ========================================================
4 The Tegra XUSB pad controller manages a set of I/O lanes (with differential
5 signals) which connect directly to pins/pads on the SoC package. Each lane
6 is controlled by a HW block referred to as a "pad" in the Tegra hardware
7 documentation. Each such "pad" may control either one or multiple lanes,
8 and thus contains any logic common to all its lanes. Each lane can be
9 separately configured and powered up.
11 Some of the lanes are high-speed lanes, which can be used for PCIe, SATA or
12 super-speed USB. Other lanes are for various types of low-speed, full-speed
13 or high-speed USB (such as UTMI, ULPI and HSIC). The XUSB pad controller
14 contains a software-configurable mux that sits between the I/O controller
15 ports (e.g. PCIe) and the lanes.
17 In addition to per-lane configuration, USB 3.0 ports may require additional
18 settings on a per-board basis.
20 Pads will be represented as children of the top-level XUSB pad controller
21 device tree node. Each lane exposed by the pad will be represented by its
22 own subnode and can be referenced by users of the lane using the standard
23 PHY bindings, as described by the phy-bindings.txt file in this directory.
25 The Tegra hardware documentation refers to the connection between the XUSB
26 pad controller and the XUSB controller as "ports". This is confusing since
27 "port" is typically used to denote the physical USB receptacle. The device
28 tree binding in this document uses the term "port" to refer to the logical
29 abstraction of the signals that are routed to a USB receptacle (i.e. a PHY
30 for the USB signal, the VBUS power supply, the USB 2.0 companion port for
31 USB 3.0 receptacles, ...).
35 - compatible: Must be:
36 - Tegra124: "nvidia,tegra124-xusb-padctl"
37 - Tegra132: "nvidia,tegra132-xusb-padctl", "nvidia,tegra124-xusb-padctl"
38 - Tegra210: "nvidia,tegra210-xusb-padctl"
39 - Tegra186: "nvidia,tegra186-xusb-padctl"
40 - Tegra194: "nvidia,tegra194-xusb-padctl"
41 - reg: Physical base address and length of the controller's registers.
42 - resets: Must contain an entry for each entry in reset-names.
43 - reset-names: Must include the following entries:
47 - avdd-pll-utmip-supply: UTMI PLL power supply. Must supply 1.8 V.
48 - avdd-pll-erefe-supply: PLLE reference PLL power supply. Must supply 1.05 V.
49 - avdd-pex-pll-supply: PCIe/USB3 PLL power supply. Must supply 1.05 V.
50 - hvdd-pex-pll-e-supply: High-voltage PLLE power supply. Must supply 3.3 V.
53 - avdd-pll-utmip-supply: UTMI PLL power supply. Must supply 1.8 V.
54 - avdd-pll-uerefe-supply: PLLE reference PLL power supply. Must supply 1.05 V.
55 - dvdd-pex-pll-supply: PCIe/USB3 PLL power supply. Must supply 1.05 V.
56 - hvdd-pex-pll-e-supply: High-voltage PLLE power supply. Must supply 1.8 V.
59 - avdd-pll-erefeut-supply: UPHY brick and reference clock as well as UTMI PHY
60 power supply. Must supply 1.8 V.
61 - avdd-usb-supply: USB I/Os, VBUS, ID, REXT, D+/D- power supply. Must supply
63 - vclamp-usb-supply: Bias rail for USB pad. Must supply 1.8 V.
64 - vddio-hsic-supply: HSIC PHY power supply. Must supply 1.2 V.
67 - avdd-usb-supply: USB I/Os, VBUS, ID, REXT, D+/D- power supply. Must supply
69 - vclamp-usb-supply: Bias rail for USB pad. Must supply 1.8 V.
74 A required child node named "pads" contains a list of subnodes, one for each
75 of the pads exposed by the XUSB pad controller. Each pad may need additional
76 resources that can be referenced in its pad node.
78 The "status" property is used to enable or disable the use of a pad. If set
79 to "disabled", the pad will not be used on the given board. In order to use
80 the pad and any of its lanes, this property must be set to "okay".
82 For Tegra124 and Tegra132, the following pads exist: usb2, ulpi, hsic, pcie
83 and sata. No extra resources are required for operation of these pads.
85 For Tegra210, the following pads exist: usb2, hsic, pcie and sata. Below is
86 a description of the properties of each pad.
92 - clocks: Must contain an entry for each entry in clock-names.
93 - clock-names: Must contain the following entries:
94 - "trk": phandle and specifier referring to the USB2 tracking clock
100 - clocks: Must contain an entry for each entry in clock-names.
101 - clock-names: Must contain the following entries:
102 - "trk": phandle and specifier referring to the HSIC tracking clock
108 - clocks: Must contain an entry for each entry in clock-names.
109 - clock-names: Must contain the following entries:
110 - "pll": phandle and specifier referring to the PLLE
111 - resets: Must contain an entry for each entry in reset-names.
112 - reset-names: Must contain the following entries:
113 - "phy": reset for the PCIe UPHY block
119 - resets: Must contain an entry for each entry in reset-names.
120 - reset-names: Must contain the following entries:
121 - "phy": reset for the SATA UPHY block
127 Each pad node has a child named "lanes" that contains one or more children of
128 its own, each representing one of the lanes controlled by the pad.
132 - status: Defines the operation status of the PHY. Valid values are:
133 - "disabled": the PHY is disabled
134 - "okay": the PHY is enabled
135 - #phy-cells: Should be 0. Since each lane represents a single PHY, there is
136 no need for an additional specifier.
137 - nvidia,function: The output function of the PHY. See below for a list of
138 valid functions per SoC generation.
140 For Tegra124 and Tegra132, the list of valid PHY nodes is given below:
141 - usb2: usb2-0, usb2-1, usb2-2
142 - functions: "snps", "xusb", "uart"
144 - functions: "snps", "xusb"
145 - hsic: hsic-0, hsic-1
146 - functions: "snps", "xusb"
147 - pcie: pcie-0, pcie-1, pcie-2, pcie-3, pcie-4
148 - functions: "pcie", "usb3-ss"
150 - functions: "usb3-ss", "sata"
152 For Tegra210, the list of valid PHY nodes is given below:
153 - usb2: usb2-0, usb2-1, usb2-2, usb2-3
154 - functions: "snps", "xusb", "uart"
155 - hsic: hsic-0, hsic-1
156 - functions: "snps", "xusb"
157 - pcie: pcie-0, pcie-1, pcie-2, pcie-3, pcie-4, pcie-5, pcie-6
158 - functions: "pcie-x1", "usb3-ss", "pcie-x4"
160 - functions: "usb3-ss", "sata"
162 For Tegra194, the list of valid PHY nodes is given below:
163 - usb2: usb2-0, usb2-1, usb2-2, usb2-3
165 - usb3: usb3-0, usb3-1, usb3-2, usb3-3
171 A required child node named "ports" contains a list of all the ports exposed
172 by the XUSB pad controller. Per-port configuration is only required for USB.
178 - status: Defines the operation status of the port. Valid values are:
179 - "disabled": the port is disabled
180 - "okay": the port is enabled
181 - mode: A string that determines the mode in which to run the port. Valid
183 - "host": for USB host mode
184 - "device": for USB device mode
185 - "otg": for USB OTG mode
187 Required properties for OTG/Peripheral capable USB2 ports:
188 - usb-role-switch: Boolean property to indicate that the port support OTG or
189 peripheral mode. If present, the port supports switching between USB host
190 and peripheral roles. Connector should be added as subnode.
191 See usb/usb-conn-gpio.txt.
194 - nvidia,internal: A boolean property whose presence determines that a port
195 is internal. In the absence of this property the port is considered to be
197 - vbus-supply: phandle to a regulator supplying the VBUS voltage.
203 - status: Defines the operation status of the port. Valid values are:
204 - "disabled": the port is disabled
205 - "okay": the port is enabled
206 - nvidia,internal: A boolean property whose presence determines that a port
207 is internal. In the absence of this property the port is considered to be
209 - vbus-supply: phandle to a regulator supplying the VBUS voltage.
215 - status: Defines the operation status of the port. Valid values are:
216 - "disabled": the port is disabled
217 - "okay": the port is enabled
220 - vbus-supply: phandle to a regulator supplying the VBUS voltage.
222 Super-speed USB ports:
223 ----------------------
226 - status: Defines the operation status of the port. Valid values are:
227 - "disabled": the port is disabled
228 - "okay": the port is enabled
229 - nvidia,usb2-companion: A single cell that specifies the physical port number
230 to map this super-speed USB port to. The range of valid port numbers varies
231 with the SoC generation:
232 - 0-2: for Tegra124 and Tegra132
236 - nvidia,internal: A boolean property whose presence determines that a port
237 is internal. In the absence of this property the port is considered to be
240 - maximum-speed: Only for Tegra194. A string property that specifies maximum
241 supported speed of a usb3 port. Valid values are:
242 - "super-speed-plus": default, the usb3 port supports USB 3.1 Gen 2 speed.
243 - "super-speed": the usb3 port supports USB 3.1 Gen 1 speed only.
245 For Tegra124 and Tegra132, the XUSB pad controller exposes the following
247 - 3x USB2: usb2-0, usb2-1, usb2-2
249 - 2x HSIC: hsic-0, hsic-1
250 - 2x super-speed USB: usb3-0, usb3-1
252 For Tegra210, the XUSB pad controller exposes the following ports:
253 - 4x USB2: usb2-0, usb2-1, usb2-2, usb2-3
254 - 2x HSIC: hsic-0, hsic-1
255 - 4x super-speed USB: usb3-0, usb3-1, usb3-2, usb3-3
257 For Tegra194, the XUSB pad controller exposes the following ports:
258 - 4x USB2: usb2-0, usb2-1, usb2-2, usb2-3
259 - 4x super-speed USB: usb3-0, usb3-1, usb3-2, usb3-3
264 Tegra124 and Tegra132:
265 ----------------------
271 compatible = "nvidia,tegra124-xusb-padctl";
273 compatible = "nvidia,tegra132-xusb-padctl",
274 "nvidia,tegra124-xusb-padctl";
275 reg = <0x0 0x7009f000 0x0 0x1000>;
276 resets = <&tegra_car 142>;
277 reset-names = "padctl";
417 nvidia,function = "xusb";
422 nvidia,function = "xusb";
427 nvidia,function = "xusb";
438 nvidia,function = "usb3-ss";
443 nvidia,function = "pcie";
448 nvidia,function = "pcie";
459 nvidia,function = "sata";
484 vbus-supply = <&vdd_usb3_vbus>;
500 compatible = "nvidia,tegra210-xusb-padctl";
501 reg = <0x0 0x7009f000 0x0 0x1000>;
502 resets = <&tegra_car 142>;
503 reset-names = "padctl";
509 clocks = <&tegra_car TEGRA210_CLK_USB2_TRK>;
537 clocks = <&tegra_car TEGRA210_CLK_HSIC_TRK>;
555 clocks = <&tegra_car TEGRA210_CLK_PLL_E>;
557 resets = <&tegra_car 205>;
600 clocks = <&tegra_car TEGRA210_CLK_PLL_E>;
602 resets = <&tegra_car 204>;
669 nvidia,function = "xusb";
674 nvidia,function = "xusb";
679 nvidia,function = "xusb";
684 nvidia,function = "xusb";
695 nvidia,function = "pcie-x1";
700 nvidia,function = "pcie-x4";
705 nvidia,function = "pcie-x4";
710 nvidia,function = "pcie-x4";
715 nvidia,function = "pcie-x4";
720 nvidia,function = "usb3-ss";
725 nvidia,function = "usb3-ss";
736 nvidia,function = "sata";
751 vbus-supply = <&vdd_5v0_rtl>;
757 vbus-supply = <&vdd_usb_vbus>;
768 nvidia,lanes = "pcie-6";
774 nvidia,lanes = "pcie-5";