Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp735404ybm; Tue, 21 May 2019 02:38:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlElkhv5z8H5Cz00fxFFy1J483SfY7Z+liE5Ycud/qLE9OjWsPxv8Cnl2hAw/sWUWkUMue X-Received: by 2002:a17:902:3fa5:: with SMTP id a34mr53640672pld.297.1558431524416; Tue, 21 May 2019 02:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558431524; cv=none; d=google.com; s=arc-20160816; b=FXiGK7u0SSLFvGJhijqPfhPV28u5mPKLPd0LwlOeMcUtaPBJoGKU70nvrD4ks3QXLL qyN2sHAypxj8dJFq4kWtACUOmgU4nOlLOqWW9SNWwsl642Om2NkRiGkUUhfAPLiSAwpn hULJC+knqcv19160Y1VMOZw9ylxow7V/jkHU+bdxK7XbDSWNVCuERiraoUaDWF3CmG41 5ei9bTuXJw41/Blo1M37HB/NuoIFBZbRze0a8JAgqVgx+Q2RwvMMdi4jwZ9nyMJ+wQ/Y d2z/0x2kFERx/OrOC1jyOR4Li7N0Y0wWvr1w2phRSlnYuzHaNpsVj9CpJka+ct5BlMRg az1Q== 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=hZWhk/gl4Z1xokw4cH1p9gk38btAaqLGCZ6mHMUmOeE=; b=M69TvgCMTpRTQBCLiwZ4tWIJ2n0gVTXsIpdQiV4S5N3i/PLgJodKH8k1pWF4oldQJF HvPN6UQHm/heRfrao3VR2CI7MBftzU9RESts9quykgB7ZcatlkqK9b19fMT7nIcoOaeE V9EM8oSXdxwkeKzzbL1YcbkssVQjAx7EYv3JqGaxNG+utrWDhq98w56fx9XBA8Y3JkAy +YMp2Stq8EkK4/RLBcYK7pNTBvgSdjmf+pflTG5vyIStstzIrxOMZj5QHe9ZBiQXfbVV aF6XLBggklsoaflLke9gHlVg5u5j+ZuaYJhFrQ+IsSh9TdWMKferwgfuMN69i5+oPNvN 6mzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SPA5OfjV; 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 t24si5860198pgn.470.2019.05.21.02.38.28; Tue, 21 May 2019 02:38:44 -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=SPA5OfjV; 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 S1727734AbfEUJfw (ORCPT + 99 others); Tue, 21 May 2019 05:35:52 -0400 Received: from mail-pf1-f182.google.com ([209.85.210.182]:44378 "EHLO mail-pf1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727723AbfEUJfu (ORCPT ); Tue, 21 May 2019 05:35:50 -0400 Received: by mail-pf1-f182.google.com with SMTP id g9so8757370pfo.11 for ; Tue, 21 May 2019 02:35:49 -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=hZWhk/gl4Z1xokw4cH1p9gk38btAaqLGCZ6mHMUmOeE=; b=SPA5OfjVrYpfVS1IJi1xsatjBTD09NwSLSRhDSmmGdnQg+rsuD2X/EE08O6ebZZ8lG aTs+XhB0rBnOwGPSdC8sGipdGYJ4i87mQ2aLfmZGKAx1FxAIXCCDx1UQLUOgQaEW3MH3 QKq/qfRlwaPIYyAEOvxnyeSQO/dsKbz/EEyGqBiO3xuP+QF5lHVotRK2RNmz6UyM1y9k 0Sntkoawv1bOeSwkTRQnLpmEU4XZw4fFgYxvxeDWmKp/wxUqF7UJUxhVpYdiFe3YQo7I QneV163SoataU4a3jv/CA836uFA08skF1hnTnzbeTdw7o0sci8jp7pyMWxOGmyrnIK+M SX+A== 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=hZWhk/gl4Z1xokw4cH1p9gk38btAaqLGCZ6mHMUmOeE=; b=dRvhUBXQTEdn/VGtZz6JnSk0v9/JEyxbotsujzyd1G2lPHfT1W/X+unmHDrfAxIPkI h/uatLsviBoU7k7eiEgdz4Nt9MCbt+n756PhecSvLCbMznV8E505MEYPIgYUND2wpjEt MR0vhxqnbMRm55XdDtNzVsiv7nVFLz7ISjZ0KACwqAIoBK7YE10/yPPShXBqdzmLFtzF R9L2Q9222bs9DHsyAA0ZPh9vqiaR/h8raxSEL2rN9IppShGwQVLrHN3ZHeJyPHawC7vH MJF1mrhLvPkWh1SyncQULwUvA/VASz6p5HwcyCME80PgPq5GmZibOQcYce5SxZ5FvR5Q xpxw== X-Gm-Message-State: APjAAAXhsRPmr18iXY6Kpv3/9xY3FvnDMIrmN6UlCRGl0J3kwLzTtbgo XA8hhUDjctdqUHHZGfz0fRw+oNhgAqoWdg== X-Received: by 2002:a63:1c10:: with SMTP id c16mr54781596pgc.442.1558431349298; Tue, 21 May 2019 02:35:49 -0700 (PDT) Received: from localhost ([49.248.189.249]) by smtp.gmail.com with ESMTPSA id i22sm23139715pfa.127.2019.05.21.02.35.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 May 2019 02:35:48 -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 7/9] arm64: dts: qcom: msm8998: Add PSCI cpuidle low power states Date: Tue, 21 May 2019 15:05:17 +0530 Message-Id: <49cf5d94beb9af9ef4e78d4c52f3b0ad20b7c63f.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. Cc: Marc Gonzalez Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 50 +++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 3fd0769fe648..54810980fcf9 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_SLEEP_0 &LITTLE_CPU_SLEEP_1>; 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_SLEEP_0 &LITTLE_CPU_SLEEP_1>; 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_SLEEP_0 &LITTLE_CPU_SLEEP_1>; 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_SLEEP_0 &LITTLE_CPU_SLEEP_1>; 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_SLEEP_0 &BIG_CPU_SLEEP_1>; 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_SLEEP_0 &BIG_CPU_SLEEP_1>; 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_SLEEP_0 &BIG_CPU_SLEEP_1>; 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_SLEEP_0 &BIG_CPU_SLEEP_1>; efficiency = <1536>; next-level-cache = <&L2_1>; L1_I_103: l1-icache { @@ -238,6 +246,48 @@ }; }; }; + + idle-states { + entry-method = "psci"; + + LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { + compatible = "arm,idle-state"; + idle-state-name = "little-retention"; + arm,psci-suspend-param = <0x00000002>; + entry-latency-us = <43>; + exit-latency-us = <86>; + min-residency-us = <200>; + }; + + LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { + compatible = "arm,idle-state"; + idle-state-name = "little-power-collapse"; + arm,psci-suspend-param = <0x00000003>; + entry-latency-us = <100>; + exit-latency-us = <612>; + min-residency-us = <1000>; + local-timer-stop; + }; + + BIG_CPU_SLEEP_0: cpu-sleep-1-0 { + compatible = "arm,idle-state"; + idle-state-name = "big-retention"; + arm,psci-suspend-param = <0x00000002>; + entry-latency-us = <41>; + exit-latency-us = <82>; + min-residency-us = <200>; + }; + + BIG_CPU_SLEEP_1: cpu-sleep-1-1 { + compatible = "arm,idle-state"; + idle-state-name = "big-power-collapse"; + arm,psci-suspend-param = <0x00000003>; + entry-latency-us = <100>; + exit-latency-us = <525>; + min-residency-us = <1000>; + local-timer-stop; + }; + }; }; firmware { -- 2.17.1