From patchwork Wed Nov 9 13:21:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9419233 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 CD63660512 for ; Wed, 9 Nov 2016 13:25:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA23A2914A for ; Wed, 9 Nov 2016 13:25:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ADE592925A; Wed, 9 Nov 2016 13:25:03 +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 AFF8A2914A for ; Wed, 9 Nov 2016 13:24:52 +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 1c4Sqb-0008K6-NW; Wed, 09 Nov 2016 13:23:25 +0000 Received: from mail-pf0-f193.google.com ([209.85.192.193]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c4Sq9-00088Q-K9; Wed, 09 Nov 2016 13:22:58 +0000 Received: by mail-pf0-f193.google.com with SMTP id i88so280663pfk.2; Wed, 09 Nov 2016 05:22:37 -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=fYIVjJvCwYcoBBl2rZkQMl/LZ3Tvqce4GuLXosCDV0g=; b=nNR+5uGkrDp3XkPfIlEicARb+p6myOhEXVdCFxbBNmJRdVO776CF7CabOHUChcpJOR 1V0TXNk25zzGv29sHHEERTKwzuHzBtjJFAplfNU1I9Rv+322Oi4ACq8ObWQSwHgbmISF RApVUN8y+3FvYlDl2928m+HEK6XL1hrJ0aQXZsfFr/F5hjguI/gPcwbKgvXUk8Wb9rfS 4MLGz8OseCSb5cmmXF4Je8FzE6u9TuGiiO5fqMan84TDaWDCv++8DBxuKSL+mauCPszE kt5QNjkHUzNQ4JazsFfp/I1T+JPRKxqnO36FZgzex4nT9xtBGBdZgTQcM2tIY+8PhiOK er6Q== X-Gm-Message-State: ABUngvfz6Isv3GOd+4H+YqQG/UwCDrlexHD2e0CT8u7ia63gJs/kFKAm3coIa9an1FOhuw== X-Received: by 10.98.10.198 with SMTP id 67mr33947154pfk.157.1478697757200; Wed, 09 Nov 2016 05:22:37 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id p14sm56142360par.25.2016.11.09.05.22.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Nov 2016 05:22:36 -0800 (PST) From: Caesar Wang To: Heiko Stuebner Subject: [PATCH v2 2/9] arm64: dts: rockchip: add pd_sd power node for rk3399 Date: Wed, 9 Nov 2016 21:21:54 +0800 Message-Id: <1478697721-2323-3-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_052257_798977_077F0150 X-CRM114-Status: UNSURE ( 9.68 ) 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, Brian Norris , Catalin Marinas , linux-kernel@vger.kernel.org, zhangqing , Will Deacon , Douglas Anderson , Rob Herring , tfiga@chromium.org, linux-rockchip@lists.infradead.org, Yakir Yang , 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: zhangqing 1.add pd node for RK3399 Soc 2.create power domain tree 3.add qos node for domain 4.add the pd_sd consumers node Signed-off-by: Elaine Zhang Signed-off-by: Caesar Wang Tested-by: Shawn Lin --- Changes in v2: - v1 on https://patchwork.kernel.org/patch/9322553/ - Reviewed-on: https://chromium-review.googlesource.com/386483 - Verified on ChromeOS kernel4.4 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index b401176..e5b5b3d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -253,6 +253,7 @@ <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; fifo-depth = <0x100>; + power-domains = <&power RK3399_PD_SD>; status = "disabled"; }; @@ -691,6 +692,11 @@ status = "disabled"; }; + qos_sd: qos@ffa74000 { + compatible = "syscon"; + reg = <0x0 0xffa74000 0x0 0x20>; + }; + qos_emmc: qos@ffa58000 { compatible = "syscon"; reg = <0x0 0xffa58000 0x0 0x20>; @@ -839,6 +845,12 @@ clocks = <&cru ACLK_GMAC>; pm_qos = <&qos_gmac>; }; + pd_sd@RK3399_PD_SD { + reg = ; + clocks = <&cru HCLK_SDMMC>, + <&cru SCLK_SDMMC>; + pm_qos = <&qos_sd>; + }; pd_vio@RK3399_PD_VIO { reg = ; #address-cells = <1>;