]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: dts: rockchip: Allow wakeup from rk3288-veyron's dwc2 USB ports
authorDouglas Anderson <dianders@chromium.org>
Mon, 20 May 2019 17:56:05 +0000 (10:56 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 18 Jun 2019 08:58:28 +0000 (11:58 +0300)
We want to be able to wake from USB if a device is plugged in that
wants remote wakeup.  Enable it on both dwc2 controllers.

NOTE: this is added specifically to veyron and not to rk3288 in
general since it's not known whether all rk3288 boards are designed to
support USB wakeup.  It is plausible that some boards could shut down
important rails in S3.

Also note that currently wakeup doesn't seem to happen unless you use
the "deep" suspend mode (where SDRAM is turned off).  Presumably the
shallow suspend mode is gating some sort of clock that's important but
I couldn't easily figure out how to get it working.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
arch/arm/boot/dts/rk3288-veyron.dtsi

index 1252522392c73f475150061672cff5251773a4e5..1d8bfed7830cabd9a58dfdbe16c92d96713edb45 100644 (file)
 
 &usb_host1 {
        status = "okay";
+       snps,need-phy-for-wake;
 };
 
 &usb_otg {
        assigned-clocks = <&cru SCLK_USBPHY480M_SRC>;
        assigned-clock-parents = <&usbphy0>;
        dr_mode = "host";
+       snps,need-phy-for-wake;
 };
 
 &vopb {