From patchwork Thu Aug 25 20:03:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 9299815 X-Patchwork-Delegate: agross@codeaurora.org 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 6014F608A7 for ; Thu, 25 Aug 2016 20:05:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52A202936B for ; Thu, 25 Aug 2016 20:05:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46089293C2; Thu, 25 Aug 2016 20:05:02 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 258BB2936B for ; Thu, 25 Aug 2016 20:05:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757928AbcHYUEu (ORCPT ); Thu, 25 Aug 2016 16:04:50 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:36478 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757663AbcHYUEY (ORCPT ); Thu, 25 Aug 2016 16:04:24 -0400 Received: by mail-pf0-f172.google.com with SMTP id h186so20681481pfg.3 for ; Thu, 25 Aug 2016 13:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lpMs39CtT25H1gcGD5utthj+PXNYWremNVyH0Nxp0ew=; b=R8NvdfiEPv/hkVsXTfECJ9D9XX58yO6AtE6Pmyaxg09kpCEJwm6RPqkG0UjdYyJtAc XwZLqU9YkFB01Nyr1H5X5I77hToEifM19rfbV6pL++5ks1EaxRiq954Av3uqNwGiSfrP lYZYFaWSaahgONRr5IFsvONo1FFxTojoubzkY= 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=lpMs39CtT25H1gcGD5utthj+PXNYWremNVyH0Nxp0ew=; b=iBmFcm31mi1IjcrZrGSJHVWvl8iSVD3g0GknXlCWG2whpHDQqz4RAESmDbPpLqqWvd 7HcAxfo2+TAnqGV0eby6Ex2ZxvXWJpCV3xbhJXtGeAzszaDv0/39v5PqI3oVVgi/qTvG pEswzbagu9VesurthbhyvrYCTwcP83kuJFD34LLXiEsEfJo3Ti9GCRn47D+N5T3ps+SP fuA4k/DDvyf2G24b7kmuZMVQ62lK8WaBuRTvU4q+yqbRpo7Bcxlvg3kH9JI4/otB4wE/ e02q8Wsqjbrx2R5ow3rRJiXwPZcnc/t8xp+T8ftutmMmAZHJlNE/5oWrbYgKouPVD4UG ZO5w== X-Gm-Message-State: AE9vXwMmGfF3ZYNhR13gsf9EbcOSIu6Xs15aYyAiQNCrUcaimeNled0w9LLB7BWsfSY/qhle X-Received: by 10.98.19.214 with SMTP id 83mr19833634pft.117.1472155461212; Thu, 25 Aug 2016 13:04:21 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id u1sm22841644pfu.12.2016.08.25.13.04.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 13:04:20 -0700 (PDT) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@kernel.org, rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: andy.gross@linaro.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, brendan.jackman@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, Juri.Lelli@arm.com, Lina Iyer , devicetree@vger.kernel.org Subject: [PATCH v4 16/16] ARM64: dts: Define CPU power domain for MSM8916 Date: Thu, 25 Aug 2016 14:03:25 -0600 Message-Id: <1472155405-41841-17-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472155405-41841-1-git-send-email-lina.iyer@linaro.org> References: <1472155405-41841-1-git-send-email-lina.iyer@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define power domain and the power states for the domain as defined by the PSCI firmware. The 8916 firmware supports OS initiated method of powering off the CPU clusters. Cc: Signed-off-by: Lina Iyer --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 3029773..506c712 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -64,6 +64,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU1: cpu@1 { @@ -73,6 +74,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU2: cpu@2 { @@ -82,6 +84,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; CPU3: cpu@3 { @@ -91,6 +94,7 @@ next-level-cache = <&L2_0>; enable-method = "psci"; cpu-idle-states = <&CPU_SPC>; + power-domains = <&CPU_PD>; }; L2_0: l2-cache { @@ -107,12 +111,33 @@ min-residency-us = <2000>; local-timer-stop; }; + + CLUSTER_RET: cluster_retention { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x1000010>; + entry-latency-us = <500>; + exit-latency-us = <500>; + min-residency-us = <2000>; + }; + + CLUSTER_PWR_DWN: cluster_gdhs { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x1000030>; + entry-latency-us = <2000>; + exit-latency-us = <2000>; + min-residency-us = <6000>; + }; }; }; psci { compatible = "arm,psci-1.0"; method = "smc"; + + CPU_PD: cpu-pd@0 { + #power-domain-cells = <0>; + domain-idle-states = <&CLUSTER_RET>, <&CLUSTER_PWR_DWN>; + }; }; timer {