Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: usb: mtk-xhci: 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,wakeup-src"

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>

authored by

Chunfeng Yun and committed by
Greg Kroah-Hartman
ff17d328 a2ecc4df

+10 -6
+10 -6
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt
··· 35 35 - phys : a list of phandle + phy specifier pairs 36 36 37 37 Optional properties: 38 - - mediatek,wakeup-src : 1: ip sleep wakeup mode; 2: line state wakeup 39 - mode; 40 - - mediatek,syscon-wakeup : phandle to syscon used to access USB wakeup 41 - control register, it depends on "mediatek,wakeup-src". 38 + - wakeup-source : enable USB remote wakeup; 39 + - mediatek,syscon-wakeup : phandle to syscon used to access the register 40 + of the USB wakeup glue layer between xHCI and SPM; it depends on 41 + "wakeup-source", and has two arguments: 42 + - the first one : register base address of the glue layer in syscon; 43 + - the second one : hardware version of the glue layer 44 + - 1 : used by mt8173 etc 45 + - 2 : used by mt2712 etc 42 46 - mediatek,u3p-dis-msk : mask to disable u3ports, bit0 for u3port0, 43 47 bit1 for u3port1, ... etc; 44 48 - vbus-supply : reference to the VBUS regulator; ··· 69 65 vusb33-supply = <&mt6397_vusb_reg>; 70 66 vbus-supply = <&usb_p1_vbus>; 71 67 usb3-lpm-capable; 72 - mediatek,syscon-wakeup = <&pericfg>; 73 - mediatek,wakeup-src = <1>; 68 + mediatek,syscon-wakeup = <&pericfg 0x400 1>; 69 + wakeup-source; 74 70 imod-interval-ns = <10000>; 75 71 }; 76 72