From patchwork Tue May 21 09:35:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 164701 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1375316ili; Tue, 21 May 2019 02:35:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoeTCFPDSsQcY40wqqLvzMTjnb5cCp6/xPj98wRw/Rl9G8gCPZ3QzFTfcTClUTI2IsYliY X-Received: by 2002:a17:902:e30b:: with SMTP id cg11mr80713038plb.3.1558431347322; Tue, 21 May 2019 02:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558431347; cv=none; d=google.com; s=arc-20160816; b=PpZhEUbwHo39Pj7Bcisfw5IlDrFNiHtDYCrnD+kx8Y/saJJlv09UOun0QCFr3RUaqz uykG/DJLDiZy6Vssblvplvzcm4S1j3APd01iK34ZqKGeLm1doxczxrRM8AIqzmmYjkIL LfOECexpxzI8rEj8XXNpt+8SMi1rNcGf1kyfAWYw0sQCJ2B8Qw8fUB7AeFv88kzdLbgt WA5t4965yItVw4gEf9hcdvkZmbCp+/7y+Tvu1qEBU+QWI5HJSULLoJZN4YltHx1YaQh1 a70Eh1kF3JRuMJFri2SqxJg+4qTunjxW/mMPfTNmXr8INViQMW0S+J2+9UjIMlx1FYKe B8pA== 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=YiFzZUDFNNH+WA+LKC8cHYcNE/oyfxuU+EKiZteprcA=; b=t4W1fImF/e+/KPZwqq1xaobFwTdLgDAKMN+E8dukqIDQsMYDY/UVkf0cTr9liHXV0S EZ/ibChHz0FtIDrSzp3E4gywssJ6150O66Hb3zFOwXfYxmgJwq19sBJnwxqSac1fMxgj xvR9ABS5scLxklwNZ8UzraAWqTnJNf/GRAKTirHTyp45oVe+c0h0SVbXwsf83hczrhMS NuzVxqfMdtF/iZvTT16ocipAt4DRWx/i5tCHz5Qvi0kQpZfiDWop5Id8HexxnYyKsoWc 0fEMhl0kak3RADSi9gRjiPvIEYB2j5MmcENAprcipviIQbca9/5BH0AZmf0LHOp+mAaC NgJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P0YGQzfJ; 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 q17si19220321pll.285.2019.05.21.02.35.47; Tue, 21 May 2019 02:35:47 -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=P0YGQzfJ; 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 S1727687AbfEUJfp (ORCPT + 30 others); Tue, 21 May 2019 05:35:45 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:43277 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727649AbfEUJfn (ORCPT ); Tue, 21 May 2019 05:35:43 -0400 Received: by mail-pl1-f193.google.com with SMTP id gn7so4007565plb.10 for ; Tue, 21 May 2019 02:35:42 -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=YiFzZUDFNNH+WA+LKC8cHYcNE/oyfxuU+EKiZteprcA=; b=P0YGQzfJ3l725ZLFV27Ae+RQMAMp2ZIqj4kf636aaJM8AwO+STfy77eYWy1+alfg4h NHoQ9OKoM3Bfp7G5iJsxixxXPHo8JzULo3FafOzYHEWUs9o7EzYVfwTsP3cee5LdsUtJ kKT/31OvfRmzZELmH2BMt37+JVIdNwU9xxY7u4GoGnTiJsHShkrE0XCAE15rr/bATyVb Jo7pIdmVffNGfhZdsfpFVar4tm2U4J237nZB9Y5P5oVGrcgdea0NnX5Zp1Z9iuIaT+ej ZfM/voC7Y2L3a4mgevvfUoA6Z+uj3DwY4orptefBX1PNNljja/67t4Oy38fSdW6gYi9Y 2nXQ== 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=YiFzZUDFNNH+WA+LKC8cHYcNE/oyfxuU+EKiZteprcA=; b=pDQ9ytY4RRJ/ThOLH6ZSx4G6Y+XZZm9dWBaYfEsn2urhKnSNXFTxoEH9n4L9/iktRr v+J3dIkDx2NVzYuLN2Hka6xkkgLgFx6x3bMmnaODv09qobiuxH6WAhT1FaVZog7SJBXU /cQraSI3TiY9Kig+7jkdxNKgsAJFLbMya1jqiIZUbF43JvIP3ZSWxNdsAyF0ZVnZu8bB ByzmNW/t8iti5R+HtuXeRmtt+u1o8MRCrNPx5LsIZvSso4NL19t7BbZ4FOtbGMdJnGge 0LDziHRv8uqhPuq3GAdsXjwyG9sa95IQmX8HLl0lzo06Uwgx2TcbmQhRWkfUk6oNajpl bsWw== X-Gm-Message-State: APjAAAXx8GHqsVeWIVHXk7eaJSB9ff1brqeLSQWMnnzeHsvtcRzNMQOL 14Ai1K8pRSOjIOGSBfp+H0Ta7+yZ6DGocQ== X-Received: by 2002:a17:902:3363:: with SMTP id a90mr659741plc.153.1558431342315; Tue, 21 May 2019 02:35:42 -0700 (PDT) Received: from localhost ([49.248.189.249]) by smtp.gmail.com with ESMTPSA id o6sm43731344pfa.88.2019.05.21.02.35.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 May 2019 02:35:41 -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 5/9] arm64: dts: qcom: qcs404: Add PSCI cpuidle low power states Date: Tue, 21 May 2019 15:05:15 +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. Signed-off-by: Niklas Cassel Reviewed-by: Vinod Koul [rename the idle-states to more generic names and fixups] Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index e8fd26633d57..0a9b29af64c2 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 {