952238f2c4c06f273537f1bbfcd6751aac62f27f
[openwrt/staging/dangole.git] /
1 From 2dfd145470894296d70873942ae056340e3fd78d Mon Sep 17 00:00:00 2001
2 From: Ran Wang <ran.wang_1@nxp.com>
3 Date: Tue, 7 Jul 2020 15:40:31 +0800
4 Subject: [PATCH] arm64: dts: ls1043a: update USB nodes status to match board
5 config
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 ls1043a-rdb and ls1043a-qds board’s default HW config (such as
11 pin mux selection) would not enable some USB controllers’
12 data path, which causing over-current detected on those
13 controllers. This will hit the case of ‘xhci driver prevent bus suspend
14 if a root hub port detected over-current condition’, causing system
15 failed to be suspended. So disable them in device tree to resolve this
16 issue.
17
18 Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
19 Signed-off-by: Shawn Guo <shawnguo@kernel.org>
20 ---
21 arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 4 ++++
22 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 8 ++++++++
23 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 +++
24 3 files changed, 15 insertions(+)
25
26 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts
27 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts
28 @@ -167,6 +167,10 @@
29 };
30 };
31
32 +&usb0 {
33 + status = "okay";
34 +};
35 +
36 #include "fsl-ls1043-post.dtsi"
37
38 &fman0 {
39 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
40 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
41 @@ -212,3 +212,11 @@
42 };
43 };
44 };
45 +
46 +&usb0 {
47 + status = "okay";
48 +};
49 +
50 +&usb1 {
51 + status = "okay";
52 +};
53 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
54 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
55 @@ -706,6 +706,7 @@
56 snps,host-vbus-glitches;
57 configure-gfladj;
58 dma-coherent;
59 + status = "disabled";
60 };
61
62 usb1: usb3@3000000 {
63 @@ -721,6 +722,7 @@
64 snps,host-vbus-glitches;
65 configure-gfladj;
66 dma-coherent;
67 + status = "disabled";
68 };
69
70 usb2: usb3@3100000 {
71 @@ -736,6 +738,7 @@
72 snps,host-vbus-glitches;
73 configure-gfladj;
74 dma-coherent;
75 + status = "disabled";
76 };
77
78 sata: sata@3200000 {