Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4680998yba; Wed, 17 Apr 2019 17:16:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIXAKH2I3faofCpeVjRChyNv0UMJCNcdb5d1gPbNzqd8su+AbjJg8fnXHs7qYxrIuJYMQ5 X-Received: by 2002:a17:902:e90b:: with SMTP id cs11mr85733034plb.243.1555546581606; Wed, 17 Apr 2019 17:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555546581; cv=none; d=google.com; s=arc-20160816; b=t9wCd5wSr+F8FuYbJ3ATglFevLv3q3jHIYsYIsC51uWtYQvpIjCTlTGdN3T4n437H8 oM1P8H0TKHP4jWNje45pvK1MCNWK8elnsmd/Uvr9r4c4ahbV6d8RhyC8x8hSm52zx1uC qipbKtq/ggeOeX1OGumA0MilFxjFzF/TFs7uwFGqdyiizDgeYG4azrsIJhEStReO1pz8 PMWqtPW9lnL3rdK/x0hK7M2G1ktEghxaIldV88etpnrnFYGt1wQ5rMoem9W88PEFCXFT AD66+KZi+0pq4RpQZTvNKgbM2EqO0AF6nmB5l3WduCC8qYS3eZchjHpE//0lX0AfgoMt iKtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9dHCbPnlI9BSQxis0+totmB/WamSdFGOvfhVYVfhROQ=; b=kq6UZSjlxA8eX0WXkY0Kf+gmeVTqn8GwnnkQep0VPjm/E/UbQZBCw1/CNOruOvuRCk COqlhhTMml6VbCNjjGL/Vy5/TExOkhujwFLFSNrSsjTHi8PkxIjF2UJVBK/PCOfH4fSb JVWMLoCs+mJjM6UyIYPcH9jFZqmJAh0QJgccwt3Ih1VW7igtHtcWrN1qWmq8awdAUqQf +fE+WhsmoHwFPWM4Nf1EK4Tj4aqax1OrhgguTdY2p7OOMkyI0n+OWchwbbSQTVbTGRVo FjZwkkFSEL6Cx5WwvJriPgjp0a4Uv+E5wyR389HvnJck6U0buNKx87iV6ciM/zXUyNmu 7YmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=g+JqrgM6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si341718pgl.36.2019.04.17.17.16.07; Wed, 17 Apr 2019 17:16:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=g+JqrgM6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387846AbfDRAPI (ORCPT + 99 others); Wed, 17 Apr 2019 20:15:08 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:43604 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387815AbfDRAPD (ORCPT ); Wed, 17 Apr 2019 20:15:03 -0400 Received: by mail-pl1-f196.google.com with SMTP id n8so257008plp.10 for ; Wed, 17 Apr 2019 17:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9dHCbPnlI9BSQxis0+totmB/WamSdFGOvfhVYVfhROQ=; b=g+JqrgM6CtbjdujZ4bhx4uBddKF+4SRVyOciP5srObjxxh8KDMl19YmZbkZRq9D6ro /oQuSYOpqFTsQE5PzmeCMGPnnB5FLYBf00CWcGLWBi2Ml0xUlmRHTB/JAtskaKWlNo5g dQmAwOypdXgrccYfyYUTb/Z2JAOT2ZOBU3IHI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9dHCbPnlI9BSQxis0+totmB/WamSdFGOvfhVYVfhROQ=; b=Ru6Y39GXJb2m1SS1QSjMIAcZRhi7uRmHOOA9xOEKSTWP5+shpQZg9Y6++nkdeCR1wb MbNx27TBelBE3RGA+lFeuV/osztPtuypCefJA9/IHnT2o7QLmY6ju1Jdg87WIPkdMmHW LywAnM7QV30mxM4i4twnjG5O3+3p4GttzZW+di6O+5Y8vwms2zobWV7B9cKTlNK0xTT5 oSKL/j9THt0BpYBD9om3efNDTbDnx4f9U1tAC3ULa2yRkIhqFBLG971QHl7p3d4SF+On SkRMD7tukm0z0mb6RnnIcqRljxHur9zxHnw0FXrkUFfi97gPANC1LYcj07M3DyT8xwkJ fCLw== X-Gm-Message-State: APjAAAXecuhyEHMNwRDSX1HDPZh+su1542p64FlNSrHRgnZeKRIO1DwY 3kebEhfjQUscHPpWh1/ootzTXg== X-Received: by 2002:a17:902:2aeb:: with SMTP id j98mr25482240plb.38.1555546503259; Wed, 17 Apr 2019 17:15:03 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id q5sm447668pff.97.2019.04.17.17.15.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 17:15:02 -0700 (PDT) From: Douglas Anderson To: Minas Harutyunyan , Felipe Balbi , heiko@sntech.de Cc: Alan Stern , Artur Petrosyan , amstan@chromium.org, linux-rockchip@lists.infradead.org, William Wu , linux-usb@vger.kernel.org, Stefan Wahren , Randy Li , zyw@rock-chips.com, mka@chromium.org, ryandcase@chromium.org, Amelie Delaunay , jwerner@chromium.org, dinguyen@opensource.altera.com, Elaine Zhang , Douglas Anderson , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 5/5] ARM: dts: rockchip: Allow wakeup from rk3288-veyron's dwc2 USB ports Date: Wed, 17 Apr 2019 17:13:56 -0700 Message-Id: <20190418001356.124334-6-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog In-Reply-To: <20190418001356.124334-1-dianders@chromium.org> References: <20190418001356.124334-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Changes in v2: - rk3288-veyron dts patch new for v2. arch/arm/boot/dts/rk3288-veyron.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-veyron.dtsi b/arch/arm/boot/dts/rk3288-veyron.dtsi index 1252522392c7..1d8bfed7830c 100644 --- a/arch/arm/boot/dts/rk3288-veyron.dtsi +++ b/arch/arm/boot/dts/rk3288-veyron.dtsi @@ -424,6 +424,7 @@ &usb_host1 { status = "okay"; + snps,need-phy-for-wake; }; &usb_otg { @@ -432,6 +433,7 @@ assigned-clocks = <&cru SCLK_USBPHY480M_SRC>; assigned-clock-parents = <&usbphy0>; dr_mode = "host"; + snps,need-phy-for-wake; }; &vopb { -- 2.21.0.593.g511ec345e18-goog