Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1982925yba; Fri, 10 May 2019 04:32:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxpbHhAzaFxk0rbU3QerqfQD24OyKqclpRMC8kVrKLPq+isRVivEkra62QDZo7XG0yplZK X-Received: by 2002:a17:902:2a26:: with SMTP id i35mr12538143plb.229.1557487924853; Fri, 10 May 2019 04:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557487924; cv=none; d=google.com; s=arc-20160816; b=U/hpCYE0XjLsJKAYqE51SeHY2sP2vmjd73JhECZT/AjMlWKe+xjOQNG/Lif4ptHSyl /k1S8dm+lLAEiw7znvb4e8yls0gGoxUPtaC7Uj4P0cdWNHu4zseEw7Hvqx4EgwzVjqZE 4n+Dx7OunYONwk+6kA8q4XNt/9YYCuL6HrclN4ntj52ay+jO0pKkBUxxaqGyUy7Alfee ZXgDtRHLyzAugSOA/0CI9n27sFPQpvUO/yMFuXAsJ/j6iGBv8oAfIStqjpr1ibZnfR8/ tesCa4IP2Yy1T+QJ7/JHVAEBBecmKCOxYho5SkTDLFojaDdbfGgC1M+UECbGY2475CIh YT8A== 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=vxbRgWsY1oo16QVLjuEv5vJpgQAg02SeRW3oIPG3HnE=; b=LYtXtpwJEzV3A0ryPHZEB0Iy+VDSiPmVkrEkumCTxn0Q9zkLEPaocIxYVi6zPTd2vE RDgAGgoJSVu3rjobStgvl13ibYPNCif0LLfKQbbiTEOT6KRBPOuCNREz7RiOQoNNIgcW kQ9OjOCBHARLWjfrq9QBwo2xV0W1FTCFxAh94ZMvod0bK8Yiz6Rtd/QsJEvEI4XMHEUh 0Xq9ciTjESYK9iw5uFbH+1rAnbwKdKhU8aY1IFXgrpC46hWL+fc/0r7UvwUQ6IjWWc48 nIylQdZwMsrXKB6Wj8BFkinbz17C9ZviKZ/feBX9ITO6V8W/xstCS43oN3Cvyo+GUZnX 9fHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=majRNknw; 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 3si6926553pll.281.2019.05.10.04.31.49; Fri, 10 May 2019 04:32:04 -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=majRNknw; 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 S1727469AbfEJLaP (ORCPT + 99 others); Fri, 10 May 2019 07:30:15 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45724 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727453AbfEJLaO (ORCPT ); Fri, 10 May 2019 07:30:14 -0400 Received: by mail-pf1-f195.google.com with SMTP id s11so3069973pfm.12 for ; Fri, 10 May 2019 04:30:13 -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=vxbRgWsY1oo16QVLjuEv5vJpgQAg02SeRW3oIPG3HnE=; b=majRNknwjCIZzqzc4d0Qf2KSDJ845oaJmYikIf4x95USXpK3heltnfr/FkhqZSbUmt ana31GB2FZ8yw+s/CDGOcaOCH5BHAFXcd8a+1Kcilsaw6//0LMdVHUFxbg46HglF+CR9 3wWEOqDB6wF8rhx3GwNkhimtooLej6PLUxYeFE3Gv86wzEFK1/6/7us5axHAJiTBIZoW kS2E5JQDU5Vsptjpgmd8jHgwsuxhWISp8jQNa2n+R4dzvnJ4SUCkPrRb4xNlGNwtX28H 7DxtEBuj+qnU4BLWf2oD/0J5HThB4cE2N+IQVOhutsNC4VKx6pDfoSd2NKp7ZnnlqdZC 6ywQ== 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=vxbRgWsY1oo16QVLjuEv5vJpgQAg02SeRW3oIPG3HnE=; b=K+TPyRcTm2NcrpnU+fcBeJUgHiZFBvUmMWljaEjoTy6Z4PF7iKnbUyahCcHinixr2H Onelcv0bqCMPlOm7LW5HelnYTXjMqVA2kxg1oaMbeFVjWOwdOo+XrCfYmSBG0Y6vpvvP w6BpkdZSoWxH71oc1Pqa3Ww2nKivPeRVOUjVQbkFsNwSoG9lxdFXLNrHKQN3WY9oh1z3 iSFedmuVlAkzFtwIEoglisNS3n5oV/Tooo86CwOuAeQCntnXZaEP6bhR0DYgMVbCUMOG L2smzkOYQrbS3OxJIjTMcKcIiE/esEyGiVTHkdzQdil6HYoERXvgsj+Yxdf2Nu0xhhOA 9zHw== X-Gm-Message-State: APjAAAXTKvtbY3alUMCfxEUtzkbVikilF0prcUKxiohiyc8t6J3a/Ir9 +BD2pQKQ3t6USidBXHhkk/s8B44Jl6A= X-Received: by 2002:a65:6496:: with SMTP id e22mr12758716pgv.249.1557487813185; Fri, 10 May 2019 04:30:13 -0700 (PDT) Received: from localhost ([103.8.150.7]) by smtp.gmail.com with ESMTPSA id q80sm10840463pfa.66.2019.05.10.04.30.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 04:30:12 -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: Niklas Cassel , devicetree@vger.kernel.org Subject: [PATCHv1 5/8] arm64: dts: qcom: qcs404: Add PSCI cpuidle low power states Date: Fri, 10 May 2019 16:59:43 +0530 Message-Id: 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: Niklas Cassel Add device bindings for cpuidle states for cpu devices. [amit: rename the idle-states to more generic names and fixups] Signed-off-by: Niklas Cassel Reviewed-by: Vinod Koul Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index e8fd26633d57..369c59c35bc7 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -30,6 +30,7 @@ compatible = "arm,cortex-a53"; reg = <0x100>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; }; @@ -38,6 +39,7 @@ compatible = "arm,cortex-a53"; reg = <0x101>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; }; @@ -46,6 +48,7 @@ compatible = "arm,cortex-a53"; reg = <0x102>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; }; @@ -54,6 +57,7 @@ compatible = "arm,cortex-a53"; reg = <0x103>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; }; @@ -61,6 +65,20 @@ compatible = "cache"; cache-level = <2>; }; + + 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 = <0x40000003>; + entry-latency-us = <125>; + exit-latency-us = <180>; + min-residency-us = <595>; + local-timer-stop; + }; + }; }; firmware { -- 2.17.1