From patchwork Wed Sep 7 18:50:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 9319781 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 76C5A6077F for ; Wed, 7 Sep 2016 18:51:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53FC929413 for ; Wed, 7 Sep 2016 18:51:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4867F29415; Wed, 7 Sep 2016 18:51:25 +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 2F73F29413 for ; Wed, 7 Sep 2016 18:51:24 +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 1bhhwQ-0008Q0-6g; Wed, 07 Sep 2016 18:51:22 +0000 Received: from mail-pa0-f65.google.com ([209.85.220.65]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhhwN-0008Of-Sj; Wed, 07 Sep 2016 18:51:20 +0000 Received: by mail-pa0-f65.google.com with SMTP id ez1so1262199pab.3; Wed, 07 Sep 2016 11:50:59 -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:in-reply-to :references; bh=JVdhmOH2E8j1VFQrIZFePACboiEBFTscKPcwP+wvEC4=; b=elDm5YwBqbAfX0kUXcR3SBmL4Vqh57geRofMor/6R8b/hh/XC3WSEOJi8vmOWKvSj+ +rdVa7hh0x3Sb8fuoHL/2j4UJ21prlz32ayDDjDtFwjjTLDBAiiL4t0hflwfD849OARO tKcpu904I2zUtp/PQ5HwG/HI1ijM4f88aZoXaTlQUTkqrHm2j+og/J4xmvEfrLgP5a6D uCim9ThgyE32fUsfCZTzKa4/NxL94hlWIAiUCOYC2U4rDmPONUK6hn35yinBqCYoEwOB 64gPc9wAOlXPwgqMo4kneWDFk9B7by6sfg8PuDddMuzskxjasxykzT7m6uyxQFbwuaI+ lKbQ== X-Gm-Message-State: AE9vXwM9EBmkee4OsZDmEDX2tUrLtv0t+4UnJk4ioA0PLjrxwHgGLQDpDPBwVohKLGfq7Q== X-Received: by 10.66.0.202 with SMTP id 10mr85982504pag.129.1473274258662; Wed, 07 Sep 2016 11:50:58 -0700 (PDT) Received: from user5-HP-Z620-Workstation.corp.google.com ([172.22.52.170]) by smtp.gmail.com with ESMTPSA id 12sm17802608pfu.28.2016.09.07.11.50.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 11:50:57 -0700 (PDT) From: Chris Zhong To: kishon@ti.com, groeck@chromium.org, wulf@rock-chips.com, briannorris@chromium.org, heiko@sntech.de, dianders@chromium.org, kever.yang@rock-chips.com Subject: [PATCH] arm64: dts: rk3399: add powerdomain for typec Date: Wed, 7 Sep 2016 11:50:54 -0700 Message-Id: <1473274254-24950-1-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473272245-28841-1-git-send-email-zyw@rock-chips.com> References: <1473272245-28841-1-git-send-email-zyw@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160907_115120_007328_2D37E0BB X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Zhong , linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 The tcpc power domain will try to power up/down the power of Type-C PHY. Hence, we need control it in Type-C PHY driver with the pm_runtime helper. Change-Id: I727ed3f7c6e7075f41f0940470796ba0cd3232df Signed-off-by: Chris Zhong --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 8c51095..3eb52b3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1262,6 +1262,7 @@ clock-names = "tcpdcore", "tcpdphy-ref"; assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>; assigned-clock-rates = <50000000>; + power-domains = <&power RK3399_PD_TCPD0>; resets = <&cru SRST_UPHY0>, <&cru SRST_UPHY0_PIPE_L00>, <&cru SRST_P_UPHY0_TCPHY>; @@ -1290,6 +1291,7 @@ clock-names = "tcpdcore", "tcpdphy-ref"; assigned-clocks = <&cru SCLK_UPHY1_TCPDCORE>; assigned-clock-rates = <50000000>; + power-domains = <&power RK3399_PD_TCPD1>; resets = <&cru SRST_UPHY1>, <&cru SRST_UPHY1_PIPE_L00>, <&cru SRST_P_UPHY1_TCPHY>;