From patchwork Wed Nov 9 13:21:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9419231 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 63F0660512 for ; Wed, 9 Nov 2016 13:24:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 531A32914A for ; Wed, 9 Nov 2016 13:24:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4797E2923D; Wed, 9 Nov 2016 13:24:57 +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=-1.9 required=2.0 tests=BAYES_00 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 6A0112914E for ; Wed, 9 Nov 2016 13:24:45 +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 1c4SqN-0008Db-FW; Wed, 09 Nov 2016 13:23:11 +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 1c4Sq5-00087c-6a; Wed, 09 Nov 2016 13:22:54 +0000 Received: by mail-pf0-f196.google.com with SMTP id 144so286419pfv.0; Wed, 09 Nov 2016 05:22:32 -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=+2BIIgQ3ELVh2zw+lvypuDX2gzZJC+NQIBM3k7zVeA4=; b=Jz/cOxRwIL/50wKVEXjGIgBI9DdUb/0TYY4QUynZmvnJpt3jzSQPq0N6D4CTi1dpwG YteryEUIi3zofAm6gCjfr6wQ7VSI6cRuDWMJX+ufd8Z60nPDeSDoRQ6FLaTc/4Yif3bC s6kTk6EoYYJLSymPclniMiuCRbGDf0LEuHz9UtZC3geHp6MjNOfTPMGeEp+6Nar7LAfB uBluS0dDTPyMMvzVVPUSmhlpGjrZpPl3qtfA+UnaGlVQvEt2wwG9SJR/uVAOWoOvr7A1 WdLpNOHDMNa0FL0tjQo1xknY1kPXWjWL3vEHNHWTC5Q18Y7nBIb/s+oemqyIpMBHa7i8 WBuA== X-Gm-Message-State: ABUngve6U9eWbZ0m3JA5EUJk5Hgv0f7Jgf6r1Ad/2lCnERHL9qqKQxwlcBhZ3wsLWrCVnw== X-Received: by 10.98.8.137 with SMTP id 9mr32494751pfi.4.1478697752233; Wed, 09 Nov 2016 05:22:32 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id p14sm56142360par.25.2016.11.09.05.22.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Nov 2016 05:22:31 -0800 (PST) From: Caesar Wang To: Heiko Stuebner Subject: [PATCH v2 1/9] arm64: dts: rockchip: add eMMC's power domain support for rk3399 Date: Wed, 9 Nov 2016 21:21:53 +0800 Message-Id: <1478697721-2323-2-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_052253_376286_D3A57C47 X-CRM114-Status: GOOD ( 10.32 ) 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, Elaine Zhang , Catalin Marinas , Brian Norris , Ziyuan Xu , Will Deacon , Douglas Anderson , Rob Herring , tfiga@chromium.org, linux-rockchip@lists.infradead.org, Yakir Yang , eddie.cai@rock-chips.com, linux-arm-kernel@lists.infradead.org, David Wu , Jianqun Xu , linux-kernel@vger.kernel.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: Ziyuan Xu Control power domain for eMMC via genpd to reduce power consumption. Signed-off-by: Elaine Zhang Signed-off-by: Ziyuan Xu Signed-off-by: Caesar Wang Tested-by: Shawn Lin --- Changes in v2: - Reviewed-on: https://chromium-review.googlesource.com/376558 - Verified on ChromeOS kernel4.4 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index cbb7f8b..b401176 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -269,6 +269,7 @@ #clock-cells = <0>; phys = <&emmc_phy>; phy-names = "phy_arasan"; + power-domains = <&power RK3399_PD_EMMC>; status = "disabled"; }; @@ -690,6 +691,11 @@ status = "disabled"; }; + qos_emmc: qos@ffa58000 { + compatible = "syscon"; + reg = <0x0 0xffa58000 0x0 0x20>; + }; + qos_gmac: qos@ffa5c000 { compatible = "syscon"; reg = <0x0 0xffa5c000 0x0 0x20>; @@ -823,6 +829,11 @@ }; /* These power domains are grouped by VD_LOGIC */ + pd_emmc@RK3399_PD_EMMC { + reg = ; + clocks = <&cru ACLK_EMMC>; + pm_qos = <&qos_emmc>; + }; pd_gmac@RK3399_PD_GMAC { reg = ; clocks = <&cru ACLK_GMAC>;