From patchwork Thu Jul 7 04:46:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9217789 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 59A5E6048B for ; Thu, 7 Jul 2016 04:48:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 457DE286CB for ; Thu, 7 Jul 2016 04:48:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 398E6286D0; Thu, 7 Jul 2016 04:48:51 +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=ham 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 BD7BE286CB for ; Thu, 7 Jul 2016 04:48:50 +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 1bL1DT-0003l5-BA; Thu, 07 Jul 2016 04:47:11 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bL1DR-0003k5-13; Thu, 07 Jul 2016 04:47:09 +0000 Received: by mail-pf0-f195.google.com with SMTP id t190so724708pfb.2; Wed, 06 Jul 2016 21:46:48 -0700 (PDT) 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; bh=uYVvvajlpFac+smCzlHZMDMgE8kxrYEc/Hjrjsm4lp8=; b=GXhdE1VW+7zCCEJpSLB/3dxgb6Xeo33FPzynDl3fnmPi2D2eqKGhtOnvYxpqsIq81y StJceSZZlkcCBTRMONS1LO4zZ80adybdA1xoyd8dFl3eQaQt9+TAycnhslErObV1DtpZ mOmZT6xXKXA3tStbbzswSMN1PfYqbbHl74hqvzWeJCSKbRZHYEB0BJ/v6cLoq5DxoGWB E/Z6+DIWqgDmrx/D1SjysoXuS8kQLA1k8LgPjJW4aTX5fBqwny4J+1LHMm5v5DROH8nT aeAUWpNX5w7Marf3O9zbzvcsCS29RABvSqUzraMnWCxBMjp+bWBU8y1dA2mtb6ivUTab pkSA== X-Gm-Message-State: ALyK8tKlNMeGkxnGb7cENl+HMcJPNIOP7/OGkl94V5OwAxoZoH/4WABubZn/Toxhlrukpw== X-Received: by 10.98.84.197 with SMTP id i188mr1783882pfb.43.1467866808068; Wed, 06 Jul 2016 21:46:48 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id h66sm476376pfe.6.2016.07.06.21.46.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jul 2016 21:46:46 -0700 (PDT) From: Caesar Wang To: heiko@sntech.de Subject: [PATCH] arm64: dts: rockchip: support the usb2phy for rk3399 evb Date: Thu, 7 Jul 2016 12:46:40 +0800 Message-Id: <1467866800-24794-1-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160706_214709_103604_F099B98B X-CRM114-Status: UNSURE ( 8.42 ) 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: huangtao@rock-chips.com, devicetree@vger.kernel.org, Frank Wang , dianders@chromium.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, eddie.cai@rock-chips.com, william.wu@rock-chips.com, 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: Frank Wang This patch adds the usb2phy needed dts node information for rk3399. USB2.0 PHY is comprised of one Host port and one OTG port. Host Port is for USB2.0 host controller; OTG port is for USB2.0 part of USB3.0 OTG controller, and as a part to construct a fully feature TypeC subsystem. The USB2.0 vbus gpio is board specific, it's no same with all rk3399 boards, so move it into evb voard. Signed-off-by: Frank Wang Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 4 ++++ arch/arm64/boot/dts/rockchip/rk3399.dtsi | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts index d33aa06..9be3715 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts @@ -105,6 +105,10 @@ status = "okay"; }; +&usb2phy { + vbus_drv-gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; +}; + &usb_host0_ehci { status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 4c84229..21d147f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -242,6 +242,25 @@ status = "disabled"; }; + usb2phy: usb2phy { + compatible = "rockchip,rk3399-usb-phy"; + rockchip,grf = <&grf>; + #address-cells = <1>; + #size-cells = <0>; + + usb2phy0: usb2-phy0 { + #phy-cells = <0>; + #clock-cells = <0>; + reg = <0xe458>; + }; + + usb2phy1: usb2-phy1 { + #phy-cells = <0>; + #clock-cells = <0>; + reg = <0xe468>; + }; + }; + usb_host0_ehci: usb@fe380000 { compatible = "generic-ehci"; reg = <0x0 0xfe380000 0x0 0x20000>;