Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp734482ybm; Tue, 21 May 2019 02:37:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqykUAH1Pm39BaMJQE9X1ujy49aJFvtVYbM2t/+02XFBFExHivSO8qGFdWSTIVYNh8rJuT6n X-Received: by 2002:a17:902:b601:: with SMTP id b1mr33320582pls.117.1558431447613; Tue, 21 May 2019 02:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558431447; cv=none; d=google.com; s=arc-20160816; b=jOHSn8wRlkSYBfZ6RsDvVgEJcLWCQ1pqBs/026Ef5jGai6taisTDGGljRj6mkqe/YQ pHQr5iNsPD2q5oR8qGT/ybmvwamtxEO6COQnN/vZK+rEuserq1ThJ900VmHi94Yimzwg CtpmTqSsfzEwnCzbxDKJ97sMrC/XrHC9T6IfVbHSw8f+KzFixluuPL5c/KsdLza/u5UI hP8t1IeawCgOA6t6QiCkch3NM/twWkYNndl/jcJ/aEEu7cgdZszJ42wNM0CkbxaHWh3L JXyUjDcWZL3m0QQwYRIDwptNFCj0heVbUvtP1fqen1mbFtvS2rHbGJcBUhG0wZvd6eW7 /X/w== 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=5A+pTqqd2a8qNgMyuAo19hoC6uwfhm1K0BZ01QSlkgg=; b=LmzAeZLt3906sqHey7YYFxLkGAyGTBx5XS13m+krhW+ek83uNRpt1b4k+90f0wN19v mYgmoJhNPG/7BPO5g5IuiU2eaYWToBRA0tMKVurZeaAhpSWEIxgbU7xXiUEuX9ncPDrf evCJGk6Uxi1OE72BNhxF16bCgzQcbNweBppPQZ2wE8XDOQVEsuSa35ibCH2SaNiPr4zL u+WRx4jdxyDWtOJ9l1GtAIA+1GY9nf0R8U+Cfdmec24yEjNs8Rayh1EL+JRncQ5V2Uz4 lSJux/MkYvqWotJd4pJhge+On23wiS8AEIFf9HgnvUaOj0nx8iiIlKU1pedGCLKf+9Bc fUFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Li1LAeqG; 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 l190si21159031pga.255.2019.05.21.02.37.12; Tue, 21 May 2019 02:37:27 -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=Li1LAeqG; 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 S1727714AbfEUJfs (ORCPT + 99 others); Tue, 21 May 2019 05:35:48 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:34096 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727689AbfEUJfq (ORCPT ); Tue, 21 May 2019 05:35:46 -0400 Received: by mail-pl1-f194.google.com with SMTP id w7so8186323plz.1 for ; Tue, 21 May 2019 02:35:46 -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=5A+pTqqd2a8qNgMyuAo19hoC6uwfhm1K0BZ01QSlkgg=; b=Li1LAeqGN84eOvubvgAiBnWgkvR1sH2n04p1U7s+F5KAuHyopqI1mgyYP/Z1gR0utg qWnXrUWyJ6sA5LHbd3b5vK/eOix0UCh9F8M6q8TYBds3HV5fQViUNTtpsFQkuLhhBLWC yMdS0A8pWvt3+DL17SifU4lg8BnZQDh5aVmENDpGUeP3KpmEWIpGb7KMXRxozDHyVEYz H0tPFa82HnSlUxFbNvmjcrbfNkmSVnbMu/VHibJz+fiKjnAxwBfCEWvI0UCBV2B+RWYx dLT4+OTT/zAbwf9nem1zZquQhbszyJCNlsY3ycnW/U4+GIA+hGZF+fLZeGF+GWzhvFoI PUdA== 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=5A+pTqqd2a8qNgMyuAo19hoC6uwfhm1K0BZ01QSlkgg=; b=Ud7yiDupwiN2syvWrB2qjR+xJWUylgTyWiwYD8LQu0FTME17dj2bl5VFpNjUX/3+NA mLJOkSYZMT0yJZYFfYw/55dNwt4SOd7y2djhJZSjN8YMBCo5DuKGuP4pXYf3tEQq1R7l H4qIbhO94+Lhao/ZcK9w9+djmByI4JRPMLPZXTLUTFp6OLSa2SNvf4yDKqng4BKDTsBl Pz2ve6YzeFMOGL6gebtjxfF6bZDyQXre6/2k+1XuBHYVxJLKAevDoSALmeCbU8C3N0Pk w6VRAGWvSjDntaI7tXNjvm/AucjOfafEumZsHcOVQLwA+1kJnMhE9qUe1EyWcImhtJbJ kGDw== X-Gm-Message-State: APjAAAW6QVXJnvnNiahZsdt9mT3yzVSnqkP9QO02EDZr6I1H2Q0LzIg5 Z4j2tHCiUgc1LurxtE1GJbIipJc/I10bFw== X-Received: by 2002:a17:902:9689:: with SMTP id n9mr81926147plp.133.1558431345798; Tue, 21 May 2019 02:35:45 -0700 (PDT) Received: from localhost ([49.248.189.249]) by smtp.gmail.com with ESMTPSA id 63sm29430016pfu.95.2019.05.21.02.35.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 May 2019 02:35:45 -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: devicetree@vger.kernel.org Subject: [PATCH v2 6/9] arm64: dts: qcom: msm8996: Add PSCI cpuidle low power states Date: Tue, 21 May 2019 15:05:16 +0530 Message-Id: <2ffbb3f32484c03360ff7d6fa4668581ef298c9e.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 Add device bindings for cpuidle states for cpu devices. msm8996 features 4 cpus - 2 in each cluster. However, all cpus implement the same microarchitecture and the two clusters only differ in the maximum frequency attainable by the CPUs. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index c761269caf80..4f2fb7885f39 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -95,6 +95,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x0>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; L2_0: l2-cache { compatible = "cache"; @@ -107,6 +108,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x1>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; }; @@ -115,6 +117,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x100>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_1>; L2_1: l2-cache { compatible = "cache"; @@ -127,6 +130,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x101>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_1>; }; @@ -151,6 +155,19 @@ }; }; }; + + idle-states { + entry-method = "psci"; + + CPU_SLEEP_0: cpu-sleep-0 { + compatible = "arm,idle-state"; + idle-state-name = "standalone-power-collapse"; + arm,psci-suspend-param = <0x00000004>; + entry-latency-us = <40>; + exit-latency-us = <80>; + min-residency-us = <300>; + }; + }; }; thermal-zones { -- 2.17.1