From patchwork Wed Nov 9 13:22:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9419257 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 8E7D160512 for ; Wed, 9 Nov 2016 13:27:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FFA52914A for ; Wed, 9 Nov 2016 13:27:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74C9B2923D; Wed, 9 Nov 2016 13:27:46 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 053EF2914A for ; Wed, 9 Nov 2016 13:27:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4StE-00040g-Nr; Wed, 09 Nov 2016 13:26:08 +0000 Received: from mail-pf0-f194.google.com ([209.85.192.194]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4SqZ-0008Ck-QL; Wed, 09 Nov 2016 13:23:26 +0000 Received: by mail-pf0-f194.google.com with SMTP id n85so282203pfi.3; Wed, 09 Nov 2016 05:23:08 -0800 (PST) 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=VrYdR4tu6qcLoPFBLc3NK0jcIgpH+01yrktdUGxINWw=; b=LV7YeIrrfkxn+/f6cucPE/74Id1fXu/6XtV8zP9FUuXsG/1u9xUzAT0BZ1NZCI8HJE xgHYKijwCyheBkGE8gEvAgBTWbE17zJSNR+U8vrLbrobXj9Ted/0LcfenXY9wZxCUDP9 ay0alZZVOMyEhzrgwVMEy30EIWdT/tVueTTttx8LQiH/5UyEKkcxUFUXZrY4ohGXwFjN ZSQ7MGsL0mV2nL9/zwItTFQ+4qoaaQlknmLquP8Mrxf0R5Iokg7Frq069PkbQVGsMg/B oPdV+2xl0FyRNqHQLpt4ZQxBF3RFSIo1D0iPH7PQENL6PfCLT7EJnbn5A/I+rnEHp9sm +7Gg== X-Gm-Message-State: ABUngvf95gHyqhGBoxz449ySypd4Y2mjDeUXqCmgd1oqDYCFm5PEAkPHHzlgHGzZjas59w== X-Received: by 10.98.3.65 with SMTP id 62mr32930870pfd.98.1478697787654; Wed, 09 Nov 2016 05:23:07 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id p14sm56142360par.25.2016.11.09.05.23.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Nov 2016 05:23:06 -0800 (PST) From: Caesar Wang To: Heiko Stuebner Subject: [PATCH v2 8/9] arm64: dts: rockchip: support dwc3 USB for rk3399 Date: Wed, 9 Nov 2016 21:22:00 +0800 Message-Id: <1478697721-2323-9-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478697721-2323-1-git-send-email-wxt@rock-chips.com> References: <1478697721-2323-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161109_052324_104419_07B961A8 X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, zhangqing , Catalin Marinas , linux-kernel@vger.kernel.org, Shawn Lin , Brian Norris , Will Deacon , Douglas Anderson , tfiga@chromium.org, linux-rockchip@lists.infradead.org, Rob Herring , eddie.cai@rock-chips.com, David Wu , Jianqun Xu , linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Brian Norris Add the dwc3 usb needed node information for rk3399. Signed-off-by: Brian Norris Signed-off-by: Caesar Wang --- Changes in v2: - the original patches from brian posting on https://chromium-review.googlesource.com/343603 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 09ebf4e..3659c56 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -353,6 +353,60 @@ status = "disabled"; }; + usbdrd3_0: usb@fe800000 { + compatible = "rockchip,rk3399-dwc3"; + 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"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "disabled"; + usbdrd_dwc3_0: dwc3@fe800000 { + compatible = "snps,dwc3"; + reg = <0x0 0xfe800000 0x0 0x100000>; + interrupts = ; + dr_mode = "otg"; + phys = <&tcphy0_usb3>; + phy-names = "usb3-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; + snps,xhci-slow-suspend-quirk; + status = "disabled"; + }; + }; + + usbdrd3_1: usb@fe900000 { + compatible = "rockchip,rk3399-dwc3"; + 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"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "disabled"; + usbdrd_dwc3_1: dwc3@fe900000 { + compatible = "snps,dwc3"; + reg = <0x0 0xfe900000 0x0 0x100000>; + interrupts = ; + dr_mode = "host"; + phys = <&tcphy1_usb3>; + phy-names = "usb3-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; + snps,xhci-slow-suspend-quirk; + status = "disabled"; + }; + }; + gic: interrupt-controller@fee00000 { compatible = "arm,gic-v3"; #interrupt-cells = <4>;