Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp734387ybm; Tue, 21 May 2019 02:37:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAIsRutCeiCykzNv9wxOJtOjG9VCK3n4pX5rdtKDh2DMYWRxmhxoErl8pOWahpp4MYnZKZ X-Received: by 2002:a17:902:8210:: with SMTP id x16mr7030285pln.306.1558431441718; Tue, 21 May 2019 02:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558431441; cv=none; d=google.com; s=arc-20160816; b=QKWJOpfr5gbU+v+ywTsu5x4QvzKmcr52tV8x5tft1m7WDvxb/KNUOfGcWaKptR45DZ 7cosWr5/MoBviy047ltajETC425m7LF9odP6Yhr17cG6JTb3D08t/HLh/XwGvTdFTiiI jUh9/iVUSumBBZU3k1rqrtSvrN55KZqbEtZIH3biYfmeIqozMibdkMmhcg3KthePNkVq ppFAfe0TTsDNd+TgDH0Ol9F/R3bjK7b6CP+jw2FFCl+NSPWjtvcQGiPTdqyOll5X082Q MjKovXpFERtqCrdo+xW4i7Ne/HV4UqDfgruJbE/yjybSqcSmC2SHzPAfosX+PJHQKl+X ukeg== 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 q20si23642142pfn.139.2019.05.21.02.37.07; Tue, 21 May 2019 02:37:21 -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 S1727680AbfEUJfp (ORCPT + 99 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(+) 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 { -- 2.17.1