f9334f
From e5ccb943712d261b8ebb3e8ac92a82be4b244ce4 Mon Sep 17 00:00:00 2001
f9334f
From: Peter Robinson <pbrobinson@gmail.com>
f9334f
Date: Sun, 6 Oct 2019 14:44:25 +0100
f9334f
Subject: [PATCH] arm64: tegra186: enable USB on Jetson-TX2
f9334f
f9334f
Based on the following patch series:
f9334f
https://www.spinics.net/lists/linux-tegra/msg44216.html
f9334f
f9334f
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
f9334f
---
f9334f
 arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts | 4 ++--
f9334f
 arch/arm64/boot/dts/nvidia/tegra186.dtsi           | 1 +
f9334f
 2 files changed, 3 insertions(+), 2 deletions(-)
f9334f
f9334f
diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
f9334f
index bdace01561ba..2e6195764268 100644
f9334f
--- a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
f9334f
+++ b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
f9334f
@@ -115,7 +115,7 @@
f9334f
 	};
f9334f
 
f9334f
 	padctl@3520000 {
f9334f
-		status = "disabled";
f9334f
+		status = "okay";
f9334f
 
f9334f
 		avdd-pll-erefeut-supply = <&vdd_1v8_pll>;
f9334f
 		avdd-usb-supply = <&vdd_3v3_sys>;
f9334f
@@ -193,7 +193,7 @@
f9334f
 	};
f9334f
 
f9334f
 	usb@3530000 {
f9334f
-		status = "disabled";
f9334f
+		status = "okay";
f9334f
 
f9334f
 		phys = <&{/padctl@3520000/pads/usb2/lanes/usb2-0}>,
f9334f
 		       <&{/padctl@3520000/pads/usb2/lanes/usb2-1}>,
f9334f
diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi
f9334f
index 47cd831fcf44..abdc81f555b9 100644
f9334f
--- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi
f9334f
+++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi
f9334f
@@ -525,6 +525,7 @@
f9334f
 		      <0x0 0x03538000 0x0 0x1000>;
f9334f
 		reg-names = "hcd", "fpci";
f9334f
 
f9334f
+		iommus = <&smmu TEGRA186_SID_XUSB_HOST>;
f9334f
 		interrupts = <gic_spi 163="" irq_type_level_high="">,
f9334f
 			     <gic_spi 164="" irq_type_level_high="">,
f9334f
 			     <gic_spi 167="" irq_type_level_high="">;
f9334f
-- 
f9334f
2.21.0
f9334f