From patchwork Fri Oct 23 18:28:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 7475731 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 98485BEEA4 for ; Fri, 23 Oct 2015 18:29:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2EDDC209B7 for ; Fri, 23 Oct 2015 18:29:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55CF7208EF for ; Fri, 23 Oct 2015 18:29:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zph5R-0003Yg-Sn; Fri, 23 Oct 2015 18:29:09 +0000 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zph5C-0003Mt-DE for linux-rockchip@lists.infradead.org; Fri, 23 Oct 2015 18:28:55 +0000 Received: by pacfv9 with SMTP id fv9so130474945pac.3 for ; Fri, 23 Oct 2015 11:28:37 -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; bh=/UMfqQnS4LF3xXrwmIe8LwZW8VExwlxFfnPNEbIYKzI=; b=BH6AuNbw6bFRsMVxU/pHJqLpR7QXAt7EE4QkIEyfYQvJn30ecueLIMQMHZv5/GXulO A8JRCUkVhYUkO3uqt/lTFy9bbNWc9qWo+BzIwi8R0mOyjhnz3hPpHW1h5QH5QwMcCDSn +NI/c7CBb5Uo+orha28gTXVTLhqSVyKMmJJqY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/UMfqQnS4LF3xXrwmIe8LwZW8VExwlxFfnPNEbIYKzI=; b=gDTkl6O7jeoIxROkiyV2f4C1GVGEcj/YIXupGdefhFHN+y6D/cxlUnVdzgDr7u1fhW 63T6iPJgtM3Ka28mEYYgSZME63AfTdIqZ1pLklr6rvjYHKGnyZZkU7d74YLv6zm4vWIK sp/5NCO7rAXL9GdvJNhWHEn2Paxyze/q9ZU/svKy6nk4wxuk71EZ2k41cbKw7WsVvQTu cnfUrDaGMK74qhwSj745kDTrdug/Gxu0z7s9kRnlhgHcSYYQ4tIDpwkJse6QFPdM2mh/ 6LYhn4o4zilH0LRhXhlSUilIOV5+sHuUl4HXuMjq1uU1f5XWVcVqhN4JvBd4CnGRCLpG IXCw== X-Gm-Message-State: ALoCoQmvPuItxWa/sKH2t3W1aRi+LBsCgZ5flbApidz1ymEQFgFrSpW1CtkAEmGTWAoD3Y2fTpi/ X-Received: by 10.68.228.200 with SMTP id sk8mr6636163pbc.115.1445624917047; Fri, 23 Oct 2015 11:28:37 -0700 (PDT) Received: from tictac.mtv.corp.google.com ([172.22.65.76]) by smtp.gmail.com with ESMTPSA id qv5sm20175531pbc.71.2015.10.23.11.28.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Oct 2015 11:28:36 -0700 (PDT) From: Douglas Anderson To: heiko@sntech.de, kishon@ti.com, johnyoun@synopsys.com, balbi@ti.com Subject: [PATCH 4/4] ARM: dts: rockchip: Point rk3288 dwc2 usb at phy port reset Date: Fri, 23 Oct 2015 11:28:11 -0700 Message-Id: <1445624891-31680-5-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1445624891-31680-1-git-send-email-dianders@chromium.org> References: <1445624891-31680-1-git-send-email-dianders@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151023_112854_674796_18174A25 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux@arm.linux.org.uk, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, gregkh@linuxfoundation.org, Douglas Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, lyz@rock-chips.com, galak@codeaurora.org, wulf@rock-chips.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The "host1" port (AKA the dwc2 port that isn't the OTG port) on rk3288 has a hardware errata that causes everything to get confused when we get a remote wakeup. It appears that the "port reset" bit that's in the USB phy (located in the rk3288 GRF) fixes things up and appears safe to do. We recently added code to the PHY to expose this reset and code to dwc2 to use it, so now let's hook things up. Note that we add the PHY port reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. Signed-off-by: Douglas Anderson --- arch/arm/boot/dts/rk3288.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 4f76805..03de41d 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -496,6 +496,9 @@ dr_mode = "host"; phys = <&usbphy2>; phy-names = "usb2-phy"; + resets = <&usbphy2>; + reset-names = "phy-port-reset"; + snps,need-phy-port-reset-on-wake; status = "disabled"; }; @@ -513,6 +516,8 @@ g-use-dma; phys = <&usbphy0>; phy-names = "usb2-phy"; + resets = <&usbphy0>; + reset-names = "phy-port-reset"; status = "disabled"; };