From patchwork Tue Jul 29 23:24:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 4643721 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 607CFC033C for ; Tue, 29 Jul 2014 23:27:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 87ED22017D for ; Tue, 29 Jul 2014 23:27:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AADCE20145 for ; Tue, 29 Jul 2014 23:27:18 +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 1XCGll-00041R-6s; Tue, 29 Jul 2014 23:25:21 +0000 Received: from mail-pa0-f74.google.com ([209.85.220.74]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XCGlV-0002pY-2T for linux-arm-kernel@lists.infradead.org; Tue, 29 Jul 2014 23:25:06 +0000 Received: by mail-pa0-f74.google.com with SMTP id lj1so96033pab.1 for ; Tue, 29 Jul 2014 16:24:43 -0700 (PDT) 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=K/d72PSOLbegx8BNMpBM+3vTVBdmbRExeeBsVqz1dSs=; b=LHXTLHRP2OpVyvU+cLrOw1gDVJbXIpP5hy3EZa/yrKM39AqJO9fNa8ebsxNFKNbiN8 0UMuUeT+WKi28exz2S4wj1KY8Yt5aov3aAluTdu1Eg0Xbhjpif2Gcyh5MIfbRQgaq6ZT JHO4vPAUL5P9CfBSgaKiwFLkCVZ5P79H5cSn2IATejlJeWTKABVmfkiaEj33Ga0WIYdZ Whgu85UBJX0s+dj/fo87s2Ye3OchX1UJw4hd3savQogZsru8wJsGEt2zYmKICC/KwGYS E/uIewkbc17JE7m5HROVKdZCybRiVgZgUzCb36MTIXrtI7QA0pZuC+ySrj96bRC/GchD FGNg== X-Gm-Message-State: ALoCoQklrTLdXh2YEiaA+LrW9fXhl78EDMKsdpcIVGZz6wLld8ATud9LinwA/4zENRx+dNMtRAh1 X-Received: by 10.66.65.202 with SMTP id z10mr106512pas.45.1406676283298; Tue, 29 Jul 2014 16:24:43 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id v20si29174yhe.2.2014.07.29.16.24.43 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Jul 2014 16:24:43 -0700 (PDT) Received: from tictac.mtv.corp.google.com (tictac.mtv.corp.google.com [172.22.162.15]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id 0EA4B31C5A2; Tue, 29 Jul 2014 16:24:43 -0700 (PDT) Received: by tictac.mtv.corp.google.com (Postfix, from userid 121310) id A6DCC80A09; Tue, 29 Jul 2014 16:24:42 -0700 (PDT) From: Doug Anderson To: Heiko Stuebner , Kever Yang Subject: [PATCH 1/3] ARM: dts: Turn on USB host vbus on rk3288-evb Date: Tue, 29 Jul 2014 16:24:31 -0700 Message-Id: <1406676273-20701-2-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.0.0.526.g5318336 In-Reply-To: <1406676273-20701-1-git-send-email-dianders@chromium.org> References: <1406676273-20701-1-git-send-email-dianders@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140729_162505_140406_50EA96AA X-CRM114-Status: GOOD ( 10.64 ) X-Spam-Score: -2.0 (--) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux@arm.linux.org.uk, pawel.moll@arm.com, Arnd Bergmann , ijc+devicetree@hellion.org.uk, linux-usb@vger.kernel.org, Doug Anderson , linux-kernel@vger.kernel.org, robh+dt@kernel.org, galak@codeaurora.org, Sonny Rao , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 There is no phy driver that works on the Rockchip board for either USB host port yet. For now just hardcode the vbus signal to be on all the time which makes both the dwc2 host and the EHCI port work. Signed-off-by: Doug Anderson --- arch/arm/boot/dts/rk3288-evb.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi index 749e20d..efd625e 100644 --- a/arch/arm/boot/dts/rk3288-evb.dtsi +++ b/arch/arm/boot/dts/rk3288-evb.dtsi @@ -35,6 +35,18 @@ debounce-interval = <100>; }; }; + + /* This turns on vbus for both host0 (ehci) and host1 (dwc2) */ + usb_host_vbus_regulator: usb-host-vbus-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_host_vbus>; + regulator-name = "usb-host-vbus"; + regulator-always-on; + regulator-boot-on; + }; }; &i2c0 { @@ -71,4 +83,10 @@ rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>; }; }; + + usb-host { + usb_host_vbus: usb-host-vbus { + rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; };