From patchwork Wed Nov 9 13:22:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9419259 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 CACAC60512 for ; Wed, 9 Nov 2016 13:28:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BACF52914A for ; Wed, 9 Nov 2016 13:28:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ADC4D2923D; Wed, 9 Nov 2016 13:28:32 +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 41C302914A for ; Wed, 9 Nov 2016 13:28:32 +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 1c4Stk-0004YJ-IP; Wed, 09 Nov 2016 13:26:40 +0000 Received: from mail-pf0-f196.google.com ([209.85.192.196]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4Sqi-0008EM-S2; Wed, 09 Nov 2016 13:23:36 +0000 Received: by mail-pf0-f196.google.com with SMTP id i88so282652pfk.2; Wed, 09 Nov 2016 05:23:13 -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=IyuvCdY2mj1tbVNPODSumAE47WNIPrK7cHSdsvzINCw=; b=cqnOjpcGaGY6k5J0JKrk5K31bXuKfo5SWpMMV1J70Cw67lYTFEBdH3PaMg5LvMep0c oe0FMk0eQA1osudVEB9JDLPEPXpdsoUH72KMRjHjgEI/2CTMNOsEbb0+bYPs6QYUy7oe +aIAtfIqX3UlVCfxinUdTVTUHQDyMm4kmgoWDZbM4/kPtFqJnV2sv/xIYcraoW9P7Wz7 J1AUfevHyvX4GGL7kg9v9dsuBjM2g4xEuvaqcTfoFYBUF0MopEVEewdMZ2+D8ZQ1HYKw TOfUnAmquBPerIEo9QCTbDZj1WbvF3/Pi6SeYcx3D8nEhbGVYIMiOYZl/ZT+FD7tuwn9 Oatw== X-Gm-Message-State: ABUngveit54hHf+vlHAaQdk1r3oqpHsctm+/vWuwx15vv++yWWksKKpycTxHhjztYT4ezw== X-Received: by 10.98.8.137 with SMTP id 9mr32500227pfi.4.1478697792617; Wed, 09 Nov 2016 05:23:12 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id p14sm56142360par.25.2016.11.09.05.23.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Nov 2016 05:23:11 -0800 (PST) From: Caesar Wang To: Heiko Stuebner Subject: [PATCH v2 9/9] arm64: dts: rockchip: add the usb3 pd for rk3399 Date: Wed, 9 Nov 2016 21:22:01 +0800 Message-Id: <1478697721-2323-10-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_052333_466464_45533587 X-CRM114-Status: UNSURE ( 9.34 ) 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 , Ziyuan Xu , linux-kernel@vger.kernel.org, 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 1. add pd node for RK3399 Soc 2. create power domain tree 3. add qos node for domain 4. add the pd support for usb3 Signed-off-by: Caesar Wang --- Changes in v2: - Reviewed-on: https://chromium-review.googlesource.com/384280 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 3659c56..7480fa7 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -376,6 +376,7 @@ snps,dis_u2_susphy_quirk; snps,dis-del-phy-power-chg-quirk; snps,xhci-slow-suspend-quirk; + power-domains = <&power RK3399_PD_USB3>; status = "disabled"; }; }; @@ -403,6 +404,7 @@ snps,dis_u2_susphy_quirk; snps,dis-del-phy-power-chg-quirk; snps,xhci-slow-suspend-quirk; + power-domains = <&power RK3399_PD_USB3>; status = "disabled"; }; }; @@ -746,6 +748,16 @@ status = "disabled"; }; + qos_usb_otg0: qos@ffa70000 { + compatible = "syscon"; + reg = <0x0 0xffa70000 0x0 0x20>; + }; + + qos_usb_otg1: qos@ffa70080 { + compatible = "syscon"; + reg = <0x0 0xffa70080 0x0 0x20>; + }; + qos_sd: qos@ffa74000 { compatible = "syscon"; reg = <0x0 0xffa74000 0x0 0x20>; @@ -909,6 +921,12 @@ <&cru SCLK_SDMMC>; pm_qos = <&qos_sd>; }; + pd_usb3@RK3399_PD_USB3 { + reg = ; + clocks = <&cru ACLK_USB3>; + pm_qos = <&qos_usb_otg0>, + <&qos_usb_otg1>; + }; pd_vio@RK3399_PD_VIO { reg = ; #address-cells = <1>;