Skip to content

Commit

Permalink
arm64: tegra: Enable XUSB controller on Jetson TX1
Browse files Browse the repository at this point in the history
Enable the XUSB controller on Jetson TX1. One of the USB 3.0 lanes goes
to an internal ethernet interface, while a second USB 3.0 lane supports
the USB-A receptacle on the I/O board.

Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
thierryreding committed Jul 14, 2016
1 parent 5593eb7 commit d23e054
Showing 1 changed file with 162 additions and 0 deletions.
162 changes: 162 additions & 0 deletions arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,146 @@
};
};

usb@70090000 {
phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>,
<&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>,
<&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>,
<&{/padctl@7009f000/pads/usb2/lanes/usb2-3}>,
<&{/padctl@7009f000/pads/pcie/lanes/pcie-6}>,
<&{/padctl@7009f000/pads/pcie/lanes/pcie-5}>;
phy-names = "usb2-0", "usb2-1", "usb2-2", "usb2-3", "usb3-0",
"usb3-1";

dvddio-pex-supply = <&vdd_pex_1v05>;
hvddio-pex-supply = <&vdd_1v8>;
avdd-usb-supply = <&vdd_3v3_sys>;
/* XXX what are these? */
avdd-pll-utmip-supply = <&vdd_1v8>;
avdd-pll-uerefe-supply = <&vdd_pex_1v05>;
dvdd-usb-ss-pll-supply = <&vdd_pex_1v05>;
hvdd-usb-ss-pll-e-supply = <&vdd_1v8>;

status = "okay";
};

padctl@7009f000 {
status = "okay";

pads {
usb2 {
status = "okay";

lanes {
usb2-0 {
nvidia,function = "xusb";
status = "okay";
};

usb2-1 {
nvidia,function = "xusb";
status = "okay";
};

usb2-2 {
nvidia,function = "xusb";
status = "okay";
};

usb2-3 {
nvidia,function = "xusb";
status = "okay";
};
};
};

pcie {
status = "okay";

lanes {
pcie-0 {
nvidia,function = "pcie-x1";
status = "okay";
};

pcie-1 {
nvidia,function = "pcie-x4";
status = "okay";
};

pcie-2 {
nvidia,function = "pcie-x4";
status = "okay";
};

pcie-3 {
nvidia,function = "pcie-x4";
status = "okay";
};

pcie-4 {
nvidia,function = "pcie-x4";
status = "okay";
};

pcie-5 {
nvidia,function = "usb3-ss";
status = "okay";
};

pcie-6 {
nvidia,function = "usb3-ss";
status = "okay";
};
};
};

sata {
status = "okay";

lanes {
sata-0 {
nvidia,function = "sata";
status = "okay";
};
};
};
};

ports {
usb2-0 {
status = "okay";
mode = "otg";
};

usb2-1 {
status = "okay";
vbus-supply = <&vdd_5v0_rtl>;
mode = "host";
};

usb2-2 {
status = "okay";
vbus-supply = <&vdd_usb_vbus>;
mode = "host";
};

usb2-3 {
status = "okay";
mode = "host";
};

usb3-0 {
nvidia,usb2-companion = <1>;
status = "okay";
};

usb3-1 {
nvidia,usb2-companion = <2>;
status = "okay";
};
};
};

/* MMC/SD */
sdhci@700b0000 {
status = "okay";
Expand Down Expand Up @@ -1390,6 +1530,28 @@
enable-active-high;
vin-supply = <&vdd_1v8>;
};

vdd_5v0_rtl: regulator@8 {
compatible = "regulator-fixed";
reg = <8>;
regulator-name = "RTL_5V";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
enable-active-high;
vin-supply = <&vdd_5v0_sys>;
};

vdd_usb_vbus: regulator@9 {
compatible = "regulator-fixed";
reg = <9>;
regulator-name = "USB_VBUS_EN1";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_HIGH>;
enable-active-high;
vin-supply = <&vdd_5v0_sys>;
};
};

gpio-keys {
Expand Down

0 comments on commit d23e054

Please sign in to comment.