From patchwork Fri Feb 10 01:05:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9565735 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4E9E4601E9 for ; Fri, 10 Feb 2017 01:07:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EB4C2850F for ; Fri, 10 Feb 2017 01:07:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31DB128552; Fri, 10 Feb 2017 01:07:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CEBAC2850F for ; Fri, 10 Feb 2017 01:07:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=o69gCUsF7dNNToetV6bOMrNnHEzSSQdJC2lmkqpV+t4=; b=OG3QPvwoByMAiaOQ0/bmleK35W 9wR7iJ1LcyPDP0qGNNxTcRJtD1RBfiAFLfQt1XAAWiuISmeKfaZdcw5CD7qTt70ZIuZaphDq/PXd1 QX8G7o+rZAy1G3l9CEacmq9s4dxIDP4LdITLj4qpd8dMRqeQxBq6LQ+0ZXWqQKZUr9sanfGRMgwLC XkxDqTqdqqQmvBe+20tAnLgnsYrbdCtKCcV6MrS/VjTKXId6yn1UQJa6SXRznIFbiIFCmul2MuhBG oeou1nhzWIgKJdJN+OC/L3LRuEpemTkqdWwCuGsfume5hIczM8NHsXBPFrm/4SGrcBeiNl9rzkwf0 oxsTbYiA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cbzgO-0006z2-RN; Fri, 10 Feb 2017 01:07:28 +0000 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cbzew-0005c4-6U for linux-rockchip@lists.infradead.org; Fri, 10 Feb 2017 01:06:08 +0000 Received: by mail-pg0-x22e.google.com with SMTP id 14so5245800pgg.1 for ; Thu, 09 Feb 2017 17:05:34 -0800 (PST) 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=HnAEitNk4iCd78XsqeUTtYg/IOIJGo6OgEeWCUncg6M=; b=DRryZn3sjc5g7Vj09+XeZIS/W62xOvfmTlqoc7h7FTw4qyXAbTv2oxR9PVJbkbZyFF 2f4C2qLV5XbUeTut1f+0ILnF7qQRIIY/OmDf7nZIor2m97Q2K+7heIzWs+HTtIX9SR0s HiZxoPNXzjSZ6cn4r+fVQkw97amHKkUHEwI90= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HnAEitNk4iCd78XsqeUTtYg/IOIJGo6OgEeWCUncg6M=; b=pb/UsX8ZB8vVCg9cWnAsdmUEj2W2aezXEKvd9A+UoMzpm1LLiv3VaTVmWnR8Q4SNJo hiaisodg0hiOBFCg1dehur6FBfXvWsKJtRvZqjQasL4x6hfIb3Cm3mdUlDW32qjOOwYS /WxFY8xUTGcus/I2Gea/hMbk8XUMoIP5o8XCBHtjwIlNkg+eV5EnUeSdSATOjBaKdQxR oBajvZ1VVd+a7WK3zm9NiON/0IaTXsUoR+luv924/jH57Y2FkJCzVUkB7f0OsD/swAHn 0kFT13xlxrT5j3yXAg2TwdmHNf4TklfITqGlYqx5tpAjMiSAQSmdkslj2nzEk4NRARv/ pqRw== X-Gm-Message-State: AMke39ls+UCZ6AIt4S1FEp4CafgkRFU9oAqBRrzRICkaSKHVIzuaNIYGZGDpUb+NDtxo8K7H X-Received: by 10.98.141.194 with SMTP id p63mr6919284pfk.185.1486688734416; Thu, 09 Feb 2017 17:05:34 -0800 (PST) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id 89sm74741pfo.40.2017.02.09.17.05.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Feb 2017 17:05:33 -0800 (PST) From: Brian Norris To: Heiko Stuebner Subject: [PATCH v2 2/6] arm64: dts: rockchip: support dwc3 USB for rk3399 Date: Thu, 9 Feb 2017 17:05:17 -0800 Message-Id: <20170210010521.78872-3-briannorris@chromium.org> X-Mailer: git-send-email 2.11.0.483.g087da7b7c-goog In-Reply-To: <20170210010521.78872-1-briannorris@chromium.org> References: <20170210010521.78872-1-briannorris@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170209_170558_480864_1BF35C7F X-CRM114-Status: UNSURE ( 7.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Brian Norris , Doug Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Chris Zhong , Stephen Barber , linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the dwc3 usb needed node information for rk3399. Signed-off-by: Brian Norris --- Somewhat rewritten from Caesar's reposting (v2) of my patch. Changes (?? -> v1): * Include USB2 PHY (which is now in -next) * Don't include USB3 PHY, as extcon support is not ready yet * Drop non-upstream properties * Fixup whitespace a bit v1 -> v2: * add phy_type = "utmi_wide" * sort by unit address * match upstream clock names and delete unnecessary ones --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 8e6d1bdeb9c3..a9702c29d71a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -371,6 +371,60 @@ status = "disabled"; }; + usbdrd3_0: usb@fe800000 { + compatible = "rockchip,rk3399-dwc3"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>, + <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_GRF>; + clock-names = "ref_clk", "suspend_clk", + "bus_clk", "grf_clk"; + status = "disabled"; + + usbdrd_dwc3_0: dwc3 { + compatible = "snps,dwc3"; + reg = <0x0 0xfe800000 0x0 0x100000>; + interrupts = ; + dr_mode = "otg"; + phys = <&u2phy0_otg>; + phy-names = "usb2-phy"; + phy_type = "utmi_wide"; + snps,dis_enblslpm_quirk; + snps,dis-u2-freeclk-exists-quirk; + snps,dis_u2_susphy_quirk; + snps,dis-del-phy-power-chg-quirk; + status = "disabled"; + }; + }; + + usbdrd3_1: usb@fe900000 { + compatible = "rockchip,rk3399-dwc3"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>, + <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_GRF>; + clock-names = "ref_clk", "suspend_clk", + "bus_clk", "grf_clk"; + status = "disabled"; + + usbdrd_dwc3_1: dwc3 { + compatible = "snps,dwc3"; + reg = <0x0 0xfe900000 0x0 0x100000>; + interrupts = ; + dr_mode = "otg"; + phys = <&u2phy1_otg>; + phy-names = "usb2-phy"; + phy_type = "utmi_wide"; + snps,dis_enblslpm_quirk; + snps,dis-u2-freeclk-exists-quirk; + snps,dis_u2_susphy_quirk; + snps,dis-del-phy-power-chg-quirk; + status = "disabled"; + }; + }; + gic: interrupt-controller@fee00000 { compatible = "arm,gic-v3"; #interrupt-cells = <4>;