From patchwork Thu Jul 31 21:26:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 4659091 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 BFD61C033A for ; Thu, 31 Jul 2014 21:29:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 173612017A for ; Thu, 31 Jul 2014 21:29:50 +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 4B7422012E for ; Thu, 31 Jul 2014 21:29:49 +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 1XCxsh-00072e-6d; Thu, 31 Jul 2014 21:27:23 +0000 Received: from mail-pa0-x243.google.com ([2607:f8b0:400e:c03::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XCxsS-0006xv-86 for linux-arm-kernel@lists.infradead.org; Thu, 31 Jul 2014 21:27:08 +0000 Received: by mail-pa0-f67.google.com with SMTP id et14so2426451pad.6 for ; Thu, 31 Jul 2014 14:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=TqSYTZjfxvIzotMHdlBA5+a/d+FdrhYB+9dbHBLYUbQ=; b=YCOmtP8o49exfi0Dd9mDbyHXoQkA9Kxd12E+paCPXsB0luaJw+3C29RrDvsxNs4VAA 2rpKiXd8c4JF7pGf/V+fNlXbDATak21czV+/LeK+q4ahMMKh3tDeVU5Y/Wptr14TggFb XmMJ9lthPCJOuZOW43p0wgJmRaGgVqvLd5xxBmfIh7ostfnUAWWytFIlVsuZl25rFd8r iJ7AMJF4PZLgwWCATz7iW/9LE30nWO9DUbaWCzoE4+OFkNpfeUg2g05ckX8e8nN7Sh3X Ee478fquVBopUsHSivzDeAmP86lWiKGeEkUBrJtgw8/5BQPlW87zSo0Pt3I9ehVWACeR 5QDA== X-Received: by 10.66.163.65 with SMTP id yg1mr944407pab.33.1406842006954; Thu, 31 Jul 2014 14:26:46 -0700 (PDT) Received: from lab2000-1.corp.google.com (dhcp-172-22-52-196.mtv.corp.google.com [172.22.52.196]) by mx.google.com with ESMTPSA id ri2sm9829277pdb.25.2014.07.31.14.26.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 31 Jul 2014 14:26:46 -0700 (PDT) From: Kever Yang To: Paul Zimmerman , heiko@sntech.de Subject: [REPOST PATCH v3 3/5] ARM: dts: add rk3288 dwc2 controller support Date: Thu, 31 Jul 2014 14:26:23 -0700 Message-Id: <1406841985-15790-4-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1406841985-15790-1-git-send-email-kever.yang@rock-chips.com> References: <1406841985-15790-1-git-send-email-kever.yang@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140731_142708_348883_A1CD3F37 X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.0 (+) Cc: huangtao@rock-chips.com, Mark Rutland , addy.ke@rock-chips.com, Russell King , Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, dianders@chromium.org, Rob Herring , Kever Yang , cf@rock-chips.com, devicetree@vger.kernel.org, xjq@rock-chips.com, lyz@rock-chips.com, Kumar Gala , olof@lixom.net, wulf@rock-chips.com, hj@rock-chips.com, sonnyrao@chromium.org, 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=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY, URIBL_BLACK autolearn=no 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 rk3288 has two kind of usb controller, this add the dwc2 controller for otg and host1. Controller can works with usb PHY default setting and Vbus on. Signed-off-by: Kever Yang --- Changes in v3: - Moved out of pin control and sort by base address Changes in v2: - change the node name from 'dwc2' to 'usb' arch/arm/boot/dts/rk3288.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index ab8a611..a5607a1 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -205,6 +205,26 @@ status = "disabled"; }; + usb_host1: usb@ff540000 { + compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb", + "snps,dwc2"; + reg = <0xff540000 0x40000>; + interrupts = ; + clocks = <&cru HCLK_USBHOST1>; + clock-names = "otg"; + status = "disabled"; + }; + + usb_otg: usb@ff580000 { + compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb", + "snps,dwc2"; + reg = <0xff580000 0x40000>; + interrupts = ; + clocks = <&cru HCLK_OTG0>; + clock-names = "otg"; + status = "disabled"; + }; + uart2: serial@ff690000 { compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart"; reg = <0xff690000 0x100>;