050c5d5137208466e77b356fc72cc8ac18c8a302
[openwrt/staging/ynezz.git] /
1 From 411bee5b3e729e4dd691051e13f77dfb994e0da8 Mon Sep 17 00:00:00 2001
2 From: Yinbo Zhu <yinbo.zhu@nxp.com>
3 Date: Mon, 9 Sep 2019 15:57:52 +0800
4 Subject: [PATCH] usb: dwc3: enable otg mode for dwc3 usb ip on layerscape
5
6 layerscape otg function should be supported HNP SRP and ADP protocol
7 accroing to rm doc, but dwc3 code not realize it and use id pin to
8 detect who is host or device(0 is host 1 is device) this patch is to
9 enable OTG mode on ls1028ardb ls1088ardb and ls1046ardb in dts
10
11 Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
12 ---
13 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 4 ++++
14 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 4 ++++
15 arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts | 1 +
16 3 files changed, 9 insertions(+)
17
18 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
19 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
20 @@ -98,6 +98,10 @@
21 status = "okay";
22 };
23
24 +&usb1 {
25 + dr_mode = "otg";
26 +};
27 +
28 &i2c0 {
29 status = "okay";
30
31 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
32 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
33 @@ -44,6 +44,10 @@
34 sd-uhs-sdr12;
35 };
36
37 +&usb1 {
38 + dr_mode = "otg";
39 +};
40 +
41 &i2c0 {
42 status = "okay";
43
44 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts
45 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts
46 @@ -120,6 +120,7 @@
47 };
48
49 &usb1 {
50 + dr_mode = "otg";
51 status = "okay";
52 };
53