]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: enable otg mode for dwc3 usb ip on layerscape
authorYinbo Zhu <yinbo.zhu@nxp.com>
Tue, 8 Oct 2019 02:56:42 +0000 (10:56 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 14 Oct 2019 13:18:01 +0000 (21:18 +0800)
layerscape otg function should be supported HNP SRP and ADP protocol
accroing to rm doc, but dwc3 code not realize it and use id pin to
detect who is host or device(0 is host 1 is device) this patch is to
enable OTG mode on ls1028ardb ls1088ardb and ls1046ardb in dts

Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts

index 1a69221d9a1b0d95dc36ce98ed4566220d6e67f3..9720a190049f124dc73af910fc75a1c12e626237 100644 (file)
@@ -184,3 +184,7 @@ &sai4 {
 &sata {
        status = "okay";
 };
+
+&usb1 {
+       dr_mode = "otg";
+};
index 6a6514d0e5a983412e4c63a202e866fda2176271..0c742befb7612fc293f16a93a920d0eafe210ead 100644 (file)
@@ -122,6 +122,10 @@ qflash1: flash@1 {
        };
 };
 
+&usb1 {
+       dr_mode = "otg";
+};
+
 #include "fsl-ls1046-post.dtsi"
 
 &fman0 {
index 8e925df6c01c048b92add464297de5b1529a3482..90b19893925169006fe4460b0ede59d879df45f4 100644 (file)
@@ -95,5 +95,6 @@ &usb0 {
 };
 
 &usb1 {
+       dr_mode = "otg";
        status = "okay";
 };