diff mbox

[v1,7/9] ARM: tegra: Enable UDC on Jetson TK1

Message ID c6b78a8d149eb9341f41a6b1181569c4b78df1af.1499273075.git.digetx@gmail.com
State Superseded
Headers show

Commit Message

Dmitry Osipenko July 5, 2017, 5:19 p.m. UTC
From: Thierry Reding <treding@nvidia.com>

Override the compatible string of the first USB controller to enable
device mode.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Tested-by: Nicolas Chauvet <kwizart@gmail.com>
---
 arch/arm/boot/dts/tegra124-jetson-tk1.dts | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

Comments

Stephen Warren July 6, 2017, 4:44 p.m. UTC | #1
On 07/05/2017 11:19 AM, Dmitry Osipenko wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> Override the compatible string of the first USB controller to enable
> device mode.

Conceptually I'm fine with this change since the port isn't enabled at 
all yet and so this doesn't change any existing behaviour.

Acked-by: Stephen Warren <swarren@nvidia.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/tegra124-jetson-tk1.dts b/arch/arm/boot/dts/tegra124-jetson-tk1.dts
index 7bacb2954f58..0577a04f6d0d 100644
--- a/arch/arm/boot/dts/tegra124-jetson-tk1.dts
+++ b/arch/arm/boot/dts/tegra124-jetson-tk1.dts
@@ -1722,7 +1722,7 @@ 
 
 				lanes {
 					usb2-0 {
-						nvidia,function = "xusb";
+						nvidia,function = "snps";
 						status = "okay";
 					};
 
@@ -1829,6 +1829,16 @@ 
 		};
 	};
 
+	usb@7d000000 {
+		compatible = "nvidia,tegra124-udc";
+		status = "okay";
+		dr_mode = "otg";
+	};
+
+	usb-phy@7d000000 {
+		status = "okay";
+	};
+
 	/* mini-PCIe USB */
 	usb@7d004000 {
 		status = "okay";