a51004b9868620d95cb8f0798de6692832d1af8d
[openwrt/staging/ynezz.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 diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts
27 index 219a98780..fe4c4e1fa 100644
28 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts
29 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts
30 @@ -167,6 +167,10 @@
31 };
32 };
33
34 +&usb0 {
35 + status = "okay";
36 +};
37 +
38 #include "fsl-ls1043-post.dtsi"
39
40 &fman0 {
41 diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
42 index ace1d6061..aa2f88f8e 100644
43 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
44 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
45 @@ -213,3 +213,11 @@
46 };
47 };
48 };
49 +
50 +&usb0 {
51 + status = "okay";
52 +};
53 +
54 +&usb1 {
55 + status = "okay";
56 +};
57 diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
58 index e19e05dda..f879ac8f0 100644
59 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
60 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
61 @@ -706,6 +706,7 @@
62 snps,host-vbus-glitches;
63 configure-gfladj;
64 dma-coherent;
65 + status = "disabled";
66 };
67
68 usb1: usb3@3000000 {
69 @@ -721,6 +722,7 @@
70 snps,host-vbus-glitches;
71 configure-gfladj;
72 dma-coherent;
73 + status = "disabled";
74 };
75
76 usb2: usb3@3100000 {
77 @@ -736,6 +738,7 @@
78 snps,host-vbus-glitches;
79 configure-gfladj;
80 dma-coherent;
81 + status = "disabled";
82 };
83
84 sata: sata@3200000 {
85 --
86 2.17.1
87