Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1983084yba; Fri, 10 May 2019 04:32:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoDSGdKlWJTlAeZjZNJWHcVxInATY/atccUWWxbpYt7OO0mYYaLG0zb/xErAT5fCBJLY1l X-Received: by 2002:a63:4147:: with SMTP id o68mr10570776pga.76.1557487935839; Fri, 10 May 2019 04:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557487935; cv=none; d=google.com; s=arc-20160816; b=LWiRQHR9fvqNPVFfPgCSVPkRZeBpAhXix2PrJH5ofTv1lA5X2RvZlx0uq4KMN77htW auJHPx1oc6FlVo84lMPEMINOlkwrc2jCOlemwl2gA/PACVSHuyW8rFIHs430/0a7lP0o 5iMuXU9qOCtZqm8E1l9PzHCeKkbGTXDa9/glD2Ao8w6BhVRxqtiR4q4NMXvEB4WMAzh4 370GumohD+J0mvNvliuMERgTDpmuHikC5HlmamAr98hb7Q9RTjohr6goJrbh90b7ejig EgqFIc/wXiaM3r6EHlTX/gNk9jU+shZx+tg/zf5Aclxjliw+T5VjEgHAzBM1GY57ez47 K5Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=vYKcDNOYSaC2OexnBDBqxk0MAwfNb45aOaOob4rH19c=; b=QZizCFvQqeM8UtRGzJZgkT/9BRNHa8ApDscRuX6pbYuzLDYzNtqh3UWcRxD2eSMmVb OJqWRocqQhhJzgQ87tHZ/QlptVMXduvC7LOJ1diLH1N3FxTw9y29Q5kdCLsnGcnWhn9F DIC6PgYRfiD7/zozh/yv5CfcDhFIPX2Jil6dcuIa3JURCesGsjj4S7Cad2WI22ZwKfHd FzoKCMd3n4K+pUGnW/FMdafiWr/2y9Pn3jb2o9Xou/8FmvvOKJvmv+LI0DKXXAbIg67g xC/GpkYiWr0vUh2K9UtjmoPwsf0EMzfkAWVKscFdOuFq9kplW4hnBbP/3wULA4IDiLhO fTEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fs7Rtp7X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si6795013pgp.478.2019.05.10.04.32.00; Fri, 10 May 2019 04:32:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fs7Rtp7X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727516AbfEJLaX (ORCPT + 99 others); Fri, 10 May 2019 07:30:23 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:41873 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727505AbfEJLaW (ORCPT ); Fri, 10 May 2019 07:30:22 -0400 Received: by mail-pf1-f193.google.com with SMTP id l132so3082812pfc.8 for ; Fri, 10 May 2019 04:30: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 :in-reply-to:references; bh=vYKcDNOYSaC2OexnBDBqxk0MAwfNb45aOaOob4rH19c=; b=fs7Rtp7XMf+d3tnALRhBbpN9j7rlJ+iUcIzlz/u6nzfO2mv8FW3FT1NoOB3KADrDey t/ilbNCMjBOFA6b4L0JgDKu1LLpWBg/WpyX/jenE9l0P5EA6rY9G3FI2yE6MFHwBsF2c ilVObwL+oWzveslyQX302NlxxN1HrR+i895B/+v9DjRck8stXO9MGdi5CCjq3ah11GRi M1iZHKG+Omz7VJicEMmUMwS22N475rMKXkjiO6JOVXE9PJsm+WQcWeShnGIH5IJrf0ut ixgCXeDzFYYzdsO19Q7Cc61yhbqde/BQg03HBT0IW+98coF3WNRBL8k0tF+RxxF7hgmA sK8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=vYKcDNOYSaC2OexnBDBqxk0MAwfNb45aOaOob4rH19c=; b=Kxbo4IsXPdScZLc1E1frxSbYKdbKV8ptybMttmvGMHCgKBknjcs/qzFUvm0dqh2AUN hTFETvqIRddLeDPfH2vtGai15JKgTW+vH2OBR5VkWIUu264g1fwwxk7+Q9GVIa6z2S5J fXg7RlfWRnBsespxWi7fKCwlhzejw75+8ERJD73B9fEXKr3Jf3dgScHXEQSKZndShNKW 1ZQVlk3BZydMg3bNZrnVSl8JLIGl4AabxgaLvo2h7QIQv2xq+d+8xj8ATWG+Cnl6r6jH 0RBsh3BGY3xCcYoIbSvNlQG1S081DDeTzYNFWYv5pTaCwqEHBZyLqcR1jyZl6o9yAZcG ZUow== X-Gm-Message-State: APjAAAVvw8JOG6XkLzVWQZUAdyhQgvYdVcCQVRQh6rDy88SEehzpHXQd Q4FkYLgLo2SJ/EKwoJR9oOj26NLjYX8= X-Received: by 2002:a63:8149:: with SMTP id t70mr12932306pgd.134.1557487821288; Fri, 10 May 2019 04:30:21 -0700 (PDT) Received: from localhost ([103.8.150.7]) by smtp.gmail.com with ESMTPSA id k63sm12757528pfb.108.2019.05.10.04.30.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 04:30:20 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, David Brown , Li Yang , Shawn Guo Cc: Marc Gonzalez , devicetree@vger.kernel.org Subject: [PATCHv1 7/8] arm64: dts: qcom: msm8998: Add PSCI cpuidle low power states Date: Fri, 10 May 2019 16:59:45 +0530 Message-Id: <0afe77d25490b10250f9eac4b4e92ccac8c42718.1557486950.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device bindings for cpuidle states for cpu devices. Cc: Marc Gonzalez Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 3fd0769fe648..208281f318e2 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -78,6 +78,7 @@ compatible = "arm,armv8"; reg = <0x0 0x0>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; efficiency = <1024>; next-level-cache = <&L2_0>; L2_0: l2-cache { @@ -97,6 +98,7 @@ compatible = "arm,armv8"; reg = <0x0 0x1>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; efficiency = <1024>; next-level-cache = <&L2_0>; L1_I_1: l1-icache { @@ -112,6 +114,7 @@ compatible = "arm,armv8"; reg = <0x0 0x2>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; efficiency = <1024>; next-level-cache = <&L2_0>; L1_I_2: l1-icache { @@ -127,6 +130,7 @@ compatible = "arm,armv8"; reg = <0x0 0x3>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; efficiency = <1024>; next-level-cache = <&L2_0>; L1_I_3: l1-icache { @@ -142,6 +146,7 @@ compatible = "arm,armv8"; reg = <0x0 0x100>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; efficiency = <1536>; next-level-cache = <&L2_1>; L2_1: l2-cache { @@ -161,6 +166,7 @@ compatible = "arm,armv8"; reg = <0x0 0x101>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; efficiency = <1536>; next-level-cache = <&L2_1>; L1_I_101: l1-icache { @@ -176,6 +182,7 @@ compatible = "arm,armv8"; reg = <0x0 0x102>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; efficiency = <1536>; next-level-cache = <&L2_1>; L1_I_102: l1-icache { @@ -191,6 +198,7 @@ compatible = "arm,armv8"; reg = <0x0 0x103>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; efficiency = <1536>; next-level-cache = <&L2_1>; L1_I_103: l1-icache { @@ -238,6 +246,30 @@ }; }; }; + + idle-states { + entry-method="psci"; + + LITTLE_CPU_PD: little-power-down { + compatible = "arm,idle-state"; + idle-state-name = "little-power-down"; + arm,psci-suspend-param = <0x00000002>; + entry-latency-us = <43>; + exit-latency-us = <43>; + min-residency-us = <200>; + local-timer-stop; + }; + + BIG_CPU_PD: big-power-down { + compatible = "arm,idle-state"; + idle-state-name = "big-power-down"; + arm,psci-suspend-param = <0x00000002>; + entry-latency-us = <41>; + exit-latency-us = <41>; + min-residency-us = <200>; + local-timer-stop; + }; + }; }; firmware { -- 2.17.1