250d647a98d37133842e0ffe3ce19bf096c7a74f
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.14 / 0192-dt-bindings-usb-mtk-xhci-update-USB-wakeup-propertie.patch
1 From bbbbdd36c7311a786d7392f2394b355b1f78cf8b Mon Sep 17 00:00:00 2001
2 From: Chunfeng Yun <chunfeng.yun@mediatek.com>
3 Date: Wed, 3 Jan 2018 16:53:21 +0800
4 Subject: [PATCH 192/224] dt-bindings: usb: mtk-xhci: update USB wakeup
5 properties
6
7 Add two arguments in "mediatek,syscon-wakeup" to support multi
8 wakeup glue layer between SSUSB and SPM, and use standard property
9 "wakeup-source" to replace the private "mediatek,wakeup-src"
10
11 Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
12 Reviewed-by: Rob Herring <robh@kernel.org>
13 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14 ---
15 .../devicetree/bindings/usb/mediatek,mtk-xhci.txt | 16 ++++++++++------
16 1 file changed, 10 insertions(+), 6 deletions(-)
17
18 diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt
19 index 9ff560298498..88d9f4a4b280 100644
20 --- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt
21 +++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt
22 @@ -35,10 +35,14 @@ Required properties:
23 - phys : a list of phandle + phy specifier pairs
24
25 Optional properties:
26 - - mediatek,wakeup-src : 1: ip sleep wakeup mode; 2: line state wakeup
27 - mode;
28 - - mediatek,syscon-wakeup : phandle to syscon used to access USB wakeup
29 - control register, it depends on "mediatek,wakeup-src".
30 + - wakeup-source : enable USB remote wakeup;
31 + - mediatek,syscon-wakeup : phandle to syscon used to access the register
32 + of the USB wakeup glue layer between xHCI and SPM; it depends on
33 + "wakeup-source", and has two arguments:
34 + - the first one : register base address of the glue layer in syscon;
35 + - the second one : hardware version of the glue layer
36 + - 1 : used by mt8173 etc
37 + - 2 : used by mt2712 etc
38 - mediatek,u3p-dis-msk : mask to disable u3ports, bit0 for u3port0,
39 bit1 for u3port1, ... etc;
40 - vbus-supply : reference to the VBUS regulator;
41 @@ -65,8 +69,8 @@ usb30: usb@11270000 {
42 vusb33-supply = <&mt6397_vusb_reg>;
43 vbus-supply = <&usb_p1_vbus>;
44 usb3-lpm-capable;
45 - mediatek,syscon-wakeup = <&pericfg>;
46 - mediatek,wakeup-src = <1>;
47 + mediatek,syscon-wakeup = <&pericfg 0x400 1>;
48 + wakeup-source;
49 imod-interval-ns = <10000>;
50 };
51
52 --
53 2.11.0
54