fanghuilin / rpms / kernel

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