Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp734590ybm; Tue, 21 May 2019 02:37:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEf7tnPMnwyfCsmpoFd6vNc0jAINfBGZP9MdYkSwZu+VzIIjc+H4taErVTXBACKlckUE4T X-Received: by 2002:a62:5a47:: with SMTP id o68mr60813028pfb.149.1558431457513; Tue, 21 May 2019 02:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558431457; cv=none; d=google.com; s=arc-20160816; b=qrD+F3e08mhgENXZLVXLWE0yAFtx0ReQsP0Ww+6hLj1duZ21Njnda2hWsMChKs3T5d 0AnbwQLRbVXtUxdfpdXa4O+655KgtuVXxW/QcyVe6gAABqfi28IctINCO8ZvFlofKtS8 bF6tmnT/vlZEehxDSOv0xr7a0xGreIQcCHS+QMuTx16j2jlINzYCGuVLpV7Cvv7eivpU UHpsWhjD5NmKsj8mAobFqHJ/Xpjy3MT8uYHfDS1rMWRMq2ARCwbEsay6d3fM2owd5dbs G1WIZt7Iod2kLFHQBSr3b1NZqFCfIcWWbSz/Kg9xtIr1IBWTUoQnKjv4peQACNslFF5X LzHA== 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=OuNFZ+SA9/lFwmBNRAIREtDsjJ8h7DxrY2zk1C9lBgk=; b=cRvExW1dTJSuBKNW8UT1mUN31+iOvexxQpsMZOxE6BF/2Gvzm8SvkWN98WKD7Dozud k5zplzSyWf6/41WxXW1vuBe49u6ooERFgbqFzHBwwv/LV9X923VwcpFTWYEk+iirW1Tq FIq6GB5fxE7lpXwH+qToMV9DkinuFnVK7voZEsfWG7Y3x1dWP90MQtGX3ic6mAaiQu+m gXWtRjrIo9p7pQSlSPHm7tUYe2+XH+37tr+H+HbIgjCJHuw0BFyTw4nXsnABH1iGXGrN nSIafB0ZCz30RpHHMpSOgh3ZgXQod220sTVCB4EWMfJwhRuTMDFoGH8XiYVg5F8XXMP9 HwMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dT03vwkK; 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 s6si19448595plr.112.2019.05.21.02.37.22; Tue, 21 May 2019 02:37:37 -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=dT03vwkK; 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 S1727765AbfEUJf4 (ORCPT + 99 others); Tue, 21 May 2019 05:35:56 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46692 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726907AbfEUJfy (ORCPT ); Tue, 21 May 2019 05:35:54 -0400 Received: by mail-pl1-f196.google.com with SMTP id r18so8152228pls.13 for ; Tue, 21 May 2019 02:35:53 -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=OuNFZ+SA9/lFwmBNRAIREtDsjJ8h7DxrY2zk1C9lBgk=; b=dT03vwkKl0VvPQzyLmlH7/Me42fNULDZR/1F3dZ50wPF5Gv9UgPhYu0y5zQaURZVc5 DmPIY+QoeT4Hj2bL+iptaMWD1Q36GjNHZVzwiTMxO/hdJQiwiJLPzZzelsMy0nDP7XDl SXv0xco2jE2phUS2oFSBwQuAAUtWrPIG0HdsHTCfFwCA+8u2lAz/OaVn+ZbB1TE+RG8B OGgFYuFUrsdk/JSE1S29UtpNuRxDuLWUPRdZ6pYNkGtUcq6xiAumR/xOSMa4s+UQ1Hzg 8YDphoW6QPNvms46GQ3Wde5n/n+LoluYdBTTbMGiJFZKvCGkyv5bhZY+RfWYC2DFIvpq FDcQ== 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=OuNFZ+SA9/lFwmBNRAIREtDsjJ8h7DxrY2zk1C9lBgk=; b=FWEbb5TGc2vPMAWaqnLW+JUh0l+zn3weLSu0NgKZfjFWTh83xfVuFYJQfsCOoSgEn8 X7INFbACLqRNJN8X5GboK3NxoqIg75L2KDJYqSXQbhrKTekRyPUrynSB9frsh457eOy4 VM8ETMnk5iBplG4QZ1z3ddG5NFTCuC2FyOy5PuSK47k2aE5GHkZPDS5MCLtQoC/5s2TS VwlhIWUFudcgEhIT4zhCF1jINbIAv0REnHi5Y7u1KRTYDCnhiesuDfVPiiiKcn3K8gx5 NKbl6xogl4OrkRN2pP9RdH3cSAnSrdzxbvS0LO4Nn7x/H41NqMEwmGr6WbzlWN23ubAf 5Zhg== X-Gm-Message-State: APjAAAVq0IvM7H5apoOS3gHfhfDO95XdIUtHc0/pv+mtbtWYANx/djxZ ZsY9kiDFTkqN1s8QeGwF10zx/1vhe++UQA== X-Received: by 2002:a17:902:46a:: with SMTP id 97mr53341531ple.66.1558431352778; Tue, 21 May 2019 02:35:52 -0700 (PDT) Received: from localhost ([49.248.189.249]) by smtp.gmail.com with ESMTPSA id y10sm17013586pfm.68.2019.05.21.02.35.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 May 2019 02:35:52 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, agross@kernel.org, niklas.cassel@linaro.org, marc.w.gonzalez@free.fr, sibis@codeaurora.org, daniel.lezcano@linaro.org, Andy Gross , David Brown , Li Yang , Shawn Guo Cc: "Raju P.L.S.S.S.N" , mkshah@codeaurora.org, devicetree@vger.kernel.org Subject: [PATCH v2 8/9] arm64: dts: qcom: sdm845: Add PSCI cpuidle low power states Date: Tue, 21 May 2019 15:05:18 +0530 Message-Id: <67d61032221b069082222347fb56effe17d4a7c3.1558430617.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 From: "Raju P.L.S.S.S.N" Add device bindings for cpuidle states for cpu devices. Cc: Signed-off-by: Raju P.L.S.S.S.N Reviewed-by: Evan Green [amit: rename the idle-states to more generic names and fixups] Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 69 ++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 5308f1671824..a0ae6bf033ee 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -119,6 +119,7 @@ compatible = "qcom,kryo385"; reg = <0x0 0x0>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 &CLUSTER_SLEEP_0>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_0>; @@ -136,6 +137,8 @@ compatible = "qcom,kryo385"; reg = <0x0 0x100>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 + &CLUSTER_SLEEP_0>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_100>; @@ -150,6 +153,8 @@ compatible = "qcom,kryo385"; reg = <0x0 0x200>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 + &CLUSTER_SLEEP_0>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_200>; @@ -164,6 +169,8 @@ compatible = "qcom,kryo385"; reg = <0x0 0x300>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1 + &CLUSTER_SLEEP_0>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_300>; @@ -178,6 +185,8 @@ compatible = "qcom,kryo385"; reg = <0x0 0x400>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1 + &CLUSTER_SLEEP_0>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_400>; @@ -192,6 +201,8 @@ compatible = "qcom,kryo385"; reg = <0x0 0x500>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1 + &CLUSTER_SLEEP_0>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_500>; @@ -206,6 +217,8 @@ compatible = "qcom,kryo385"; reg = <0x0 0x600>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1 + &CLUSTER_SLEEP_0>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_600>; @@ -220,6 +233,8 @@ compatible = "qcom,kryo385"; reg = <0x0 0x700>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1 + &CLUSTER_SLEEP_0>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_700>; @@ -228,6 +243,60 @@ next-level-cache = <&L3_0>; }; }; + + idle-states { + entry-method = "psci"; + + LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { + compatible = "arm,idle-state"; + idle-state-name = "little-power-down"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <350>; + exit-latency-us = <461>; + min-residency-us = <1890>; + local-timer-stop; + }; + + LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { + compatible = "arm,idle-state"; + idle-state-name = "little-rail-power-down"; + arm,psci-suspend-param = <0x40000004>; + entry-latency-us = <360>; + exit-latency-us = <531>; + min-residency-us = <3934>; + local-timer-stop; + }; + + BIG_CPU_SLEEP_0: cpu-sleep-1-0 { + compatible = "arm,idle-state"; + idle-state-name = "big-power-down"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <264>; + exit-latency-us = <621>; + min-residency-us = <952>; + local-timer-stop; + }; + + BIG_CPU_SLEEP_1: cpu-sleep-1-1 { + compatible = "arm,idle-state"; + idle-state-name = "big-rail-power-down"; + arm,psci-suspend-param = <0x40000004>; + entry-latency-us = <702>; + exit-latency-us = <1061>; + min-residency-us = <4488>; + local-timer-stop; + }; + + CLUSTER_SLEEP_0: cluster-sleep-0 { + compatible = "arm,idle-state"; + idle-state-name = "cluster-power-down"; + arm,psci-suspend-param = <0x400000F4>; + entry-latency-us = <3263>; + exit-latency-us = <6562>; + min-residency-us = <9987>; + local-timer-stop; + }; + }; }; pmu { -- 2.17.1