From patchwork Mon Jun 12 09:19:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meng Dongyang X-Patchwork-Id: 774472 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com 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 3wmS8R6sZDz9s1h for ; Mon, 12 Jun 2017 19:21:59 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=126.com header.i=@126.com header.b="M+x89pxh"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id A20E9C21D39; Mon, 12 Jun 2017 09:18:16 +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=T_DKIM_INVALID 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 382CCC21D73; Mon, 12 Jun 2017 09:17:35 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C3CCBC21CD3; Mon, 12 Jun 2017 09:17:23 +0000 (UTC) Received: from m50-111.126.com (m50-111.126.com [123.125.50.111]) by lists.denx.de (Postfix) with ESMTP id 6E5B2C21D38 for ; Mon, 12 Jun 2017 09:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=Hbl1ooq8nUMQt4v3Mb +ARJpdVoKTzhjde/Nddbp1EY8=; b=M+x89pxht8dn49VhGZPqnjK07U0hehCtsa LaZ+YbAmEI6FaD+NNIDaEsfgD7Q0FYFHwFtF2En6fJHu9MpFd1RbJy7r+fYW80v9 yJRRfX5ZcFwdH0k8tuzpGtIGyZe+PYT2DNWifNpM8NJhSrlo1GG1QGj21C+9mLfA Px80mltUk= Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp5 (Coremail) with SMTP id jtKowACn1RLZWz5ZkBn_DA--.19684S8; Mon, 12 Jun 2017 17:16:18 +0800 (CST) From: Meng Dongyang To: marex@denx.de, u-boot@lists.denx.de, sjg@chromium.org Date: Mon, 12 Jun 2017 17:19:37 +0800 Message-Id: <1497259182-3568-7-git-send-email-daniel.meng@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1497259182-3568-1-git-send-email-daniel.meng@rock-chips.com> References: <1497259182-3568-1-git-send-email-daniel.meng@rock-chips.com> X-CM-TRANSID: jtKowACn1RLZWz5ZkBn_DA--.19684S8 X-Coremail-Antispam: 1Uf129KBjvJXoW7ZFykCr1DuFyruFWDKry3Jwb_yoW8Ww47pw sxuFZ7WrnYgF4xt3yY9Fyxtw1fJF1kWFnY9r1kAF1rGF4kK34UZFn29wnakF1xXr17Xw4Y gF1fAry8KF1xAw7anT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07bF4SrUUUUU= X-Originating-IP: [58.22.7.114] X-CM-SenderInfo: h0xd06xkxd01pltxt0a6rslhhfrp/1tbiaQL0j1ag3JBwIwAAs5 Cc: frank.wang@rock-chips.com, wulf@rock-chips.com, chenjh@rock-chips.com Subject: [U-Boot] [PATCH v5 06/11] rockchip: dts: rk3328: support and enable xhci 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" Add dts node of xhci and enable the controller. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- changes in v5: None Changes in v4: None Changes in v3: None arch/arm/dts/rk3328-evb.dts | 14 ++++++++++++++ arch/arm/dts/rk3328.dtsi | 11 +++++++++++ 2 files changed, 25 insertions(+) diff --git a/arch/arm/dts/rk3328-evb.dts b/arch/arm/dts/rk3328-evb.dts index 9920935..4cf6d2e 100644 --- a/arch/arm/dts/rk3328-evb.dts +++ b/arch/arm/dts/rk3328-evb.dts @@ -14,6 +14,15 @@ chosen { stdout-path = &uart2; }; + + vcc5v0_host_xhci: vcc5v0-host-xhci-drv { + compatible = "regulator-fixed"; + enable-active-high; + regulator-name = "vcc5v0_host_xhci"; + gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; }; &uart2 { @@ -51,3 +60,8 @@ &usb_host0_ohci { status = "okay"; }; + +&usb_host0_xhci { + vbus-supply = <&vcc5v0_host_xhci>; + status = "okay"; +}; diff --git a/arch/arm/dts/rk3328.dtsi b/arch/arm/dts/rk3328.dtsi index e1219c3..f18cfc2 100644 --- a/arch/arm/dts/rk3328.dtsi +++ b/arch/arm/dts/rk3328.dtsi @@ -471,6 +471,17 @@ status = "disabled"; }; + usb_host0_xhci: usb@ff600000 { + compatible = "rockchip,rk3328-xhci"; + reg = <0x0 0xff600000 0x0 0x100000>; + interrupts = ; + snps,dis-enblslpm-quirk; + snps,phyif-utmi-bits = <16>; + snps,dis-u2-freeclk-exists-quirk; + snps,dis-u2-susphy-quirk; + status = "disabled"; + }; + gic: interrupt-controller@ffb70000 { compatible = "arm,gic-400"; #interrupt-cells = <3>;