OSDN Git Service

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 1a69221..9720a19 100644 (file)
 &sata {
        status = "okay";
 };
+
+&usb1 {
+       dr_mode = "otg";
+};
index 6a6514d..0c742be 100644 (file)
        };
 };
 
+&usb1 {
+       dr_mode = "otg";
+};
+
 #include "fsl-ls1046-post.dtsi"
 
 &fman0 {
index 8e925df..90b1989 100644 (file)
@@ -95,5 +95,6 @@
 };
 
 &usb1 {
+       dr_mode = "otg";
        status = "okay";
 };