From patchwork Wed May 31 16:17:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Tomsich X-Patchwork-Id: 769256 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wdG8C1hJ8z9s2Q for ; Thu, 1 Jun 2017 02:26:51 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B98D2C21C63; Wed, 31 May 2017 16:22:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 1D88AC21CD5; Wed, 31 May 2017 16:19:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A81ECC21C85; Wed, 31 May 2017 16:18:14 +0000 (UTC) Received: from mail.theobroma-systems.com (vegas.theobroma-systems.com [144.76.126.164]) by lists.denx.de (Postfix) with ESMTPS id 49DC1C21C99 for ; Wed, 31 May 2017 16:18:09 +0000 (UTC) Received: from [86.59.122.178] (port=40357 helo=android.lan) by mail.theobroma-systems.com with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1dG6Jx-00051p-QF; Wed, 31 May 2017 18:18:05 +0200 From: Philipp Tomsich To: u-boot@lists.denx.de Date: Wed, 31 May 2017 18:17:58 +0200 Message-Id: <1496247480-945-3-git-send-email-philipp.tomsich@theobroma-systems.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1496247480-945-1-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1496247480-945-1-git-send-email-philipp.tomsich@theobroma-systems.com> Cc: Philipp Tomsich , Klaus Goger , Lin huang Subject: [U-Boot] [PATCH 2/4] rockchip: dts: rk3399-puma: release reset of on-module USB3 hub via vbus-gpio X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" On the RK3399-Q7, the on-module USB3 hub is held in reset at boot-up to save power and needs to be woken up using GPIO4A3. Note that this is not a negated reset-signal (due to a level shifter being needed for this signal anyway), but a negated enable-signal: to enable, we need to output LOW (i.e. 0)... so we mark this as an ACTIVE_LOW signal. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Reviewed-by: Simon Glass --- arch/arm/dts/rk3399-puma.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/rk3399-puma.dts b/arch/arm/dts/rk3399-puma.dts index 5d9dfb5..7009fde 100644 --- a/arch/arm/dts/rk3399-puma.dts +++ b/arch/arm/dts/rk3399-puma.dts @@ -124,7 +124,7 @@ }; &dwc3_typec0 { - status = "okay"; + status = "disabled"; }; &usb_host1_ehci { @@ -136,6 +136,7 @@ }; &dwc3_typec1 { + rockchip,vbus-gpio = <&gpio4 3 GPIO_ACTIVE_LOW>; status = "okay"; }; @@ -182,7 +183,7 @@ compatible = "spi-flash"; reg = <0>; - spi-max-frequency = <5000000>; + spi-max-frequency = <49500000>; spi-cpol; spi-cpha; };