summaryrefslogtreecommitdiff
path: root/target/linux/mediatek/patches-4.14/0189-dt-bindings-usb-mtu3-update-USB-wakeup-properties.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2018-05-07 12:07:32 +0200
committerJohn Crispin <john@phrozen.org>2018-05-24 22:11:55 +0200
commit050da2107a7eb2a571a8a3d0cee21cc6a44b72b8 (patch)
tree147c3b85ccae12e4b1659acd86ac93b13ecfa15d /target/linux/mediatek/patches-4.14/0189-dt-bindings-usb-mtu3-update-USB-wakeup-properties.patch
parent4f67c1522d92bc4512c3ecf58c38ff9886530b48 (diff)
downloadmtk-20170518-050da2107a7eb2a571a8a3d0cee21cc6a44b72b8.zip
mtk-20170518-050da2107a7eb2a571a8a3d0cee21cc6a44b72b8.tar.gz
mtk-20170518-050da2107a7eb2a571a8a3d0cee21cc6a44b72b8.tar.bz2
mediatek: backport upstream mediatek patches
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/patches-4.14/0189-dt-bindings-usb-mtu3-update-USB-wakeup-properties.patch')
-rw-r--r--target/linux/mediatek/patches-4.14/0189-dt-bindings-usb-mtu3-update-USB-wakeup-properties.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-4.14/0189-dt-bindings-usb-mtu3-update-USB-wakeup-properties.patch b/target/linux/mediatek/patches-4.14/0189-dt-bindings-usb-mtu3-update-USB-wakeup-properties.patch
new file mode 100644
index 0000000..30de3dd
--- /dev/null
+++ b/target/linux/mediatek/patches-4.14/0189-dt-bindings-usb-mtu3-update-USB-wakeup-properties.patch
@@ -0,0 +1,52 @@
+From 067ad5fd18e2e7e38b77ca94eebaaf8d9a35d842 Mon Sep 17 00:00:00 2001
+From: Chunfeng Yun <chunfeng.yun@mediatek.com>
+Date: Wed, 3 Jan 2018 16:53:19 +0800
+Subject: [PATCH 189/224] dt-bindings: usb: mtu3: update USB wakeup properties
+
+Add two arguments in "mediatek,syscon-wakeup" to support multi
+wakeup glue layer between SSUSB and SPM, and use standard property
+"wakeup-source" to replace the private "mediatek,enable-wakeup"
+
+Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
+Reviewed-by: Rob Herring <robh@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ Documentation/devicetree/bindings/usb/mediatek,mtu3.txt | 15 ++++++++++-----
+ 1 file changed, 10 insertions(+), 5 deletions(-)
+
+diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt b/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt
+index b2271d8e6b50..d589a1ef96a1 100644
+--- a/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt
++++ b/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt
+@@ -42,9 +42,14 @@ Optional properties:
+ - enable-manual-drd : supports manual dual-role switch via debugfs; usually
+ used when receptacle is TYPE-A and also wants to support dual-role
+ mode.
+- - mediatek,enable-wakeup : supports ip sleep wakeup used by host mode
+- - mediatek,syscon-wakeup : phandle to syscon used to access USB wakeup
+- control register, it depends on "mediatek,enable-wakeup".
++ - wakeup-source: enable USB remote wakeup of host mode.
++ - mediatek,syscon-wakeup : phandle to syscon used to access the register
++ of the USB wakeup glue layer between SSUSB and SPM; it depends on
++ "wakeup-source", and has two arguments:
++ - the first one : register base address of the glue layer in syscon;
++ - the second one : hardware version of the glue layer
++ - 1 : used by mt8173 etc
++ - 2 : used by mt2712 etc
+ - mediatek,u3p-dis-msk : mask to disable u3ports, bit0 for u3port0,
+ bit1 for u3port1, ... etc;
+
+@@ -71,8 +76,8 @@ ssusb: usb@11271000 {
+ vbus-supply = <&usb_p0_vbus>;
+ extcon = <&extcon_usb>;
+ dr_mode = "otg";
+- mediatek,enable-wakeup;
+- mediatek,syscon-wakeup = <&pericfg>;
++ wakeup-source;
++ mediatek,syscon-wakeup = <&pericfg 0x400 1>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+--
+2.11.0
+