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: 10953261 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3C2291395 for ; Tue, 21 May 2019 09:36:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C3941FFF9 for ; Tue, 21 May 2019 09:36:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 208C92881A; Tue, 21 May 2019 09:36:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFAFC1FFF9 for ; Tue, 21 May 2019 09:36:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726391AbfEUJgJ (ORCPT ); Tue, 21 May 2019 05:36:09 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42728 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727648AbfEUJfm (ORCPT ); Tue, 21 May 2019 05:35:42 -0400 Received: by mail-pl1-f195.google.com with SMTP id x15so8164244pln.9 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=BeBVVfeXyAMyKyplI48Qn5HwKupzF4Y4X13eiakDqqwL6Qpma1t0N5jLYxKiU/7D0F h2ChJMaeUrb1y9P86A+s1RnOjyyG8r026pw5CZhDu4Fg1goC/yqg/DGYIO6X1rKluPig eDJXYOrZoId/IV9jRCzJiwbQHjJPq8XgaGYyyBXIRTa5toarfXp4u/dtF/j94/673GIf ZO4l/Q5SmYJ/+rx+eM4wl+6LB6dhRx9c2WQQjKWGtIDHilEYW81rxB5wl7DtXsW2+6DX vI2m1DCStRqcPB7Z6S1dP/q750gbg+jXyht7XNG1G5bRxvx6Xz99dLm8kdnrZEQ4sP9n wXfQ== X-Gm-Message-State: APjAAAX2mpMykf+88ley4l7rrWQ14k2HaxwGLLqDRnL7J/Q/+npN2q8i hnWT2HYDljOhUPulJpww/jspdw== X-Google-Smtp-Source: APXvYqyfGuR8RkQPTd4uMP6yvPr+WiF2Ong46j8jDpGyLRFcZHhGqN92KgimkksVN1yeuADm1RrWtA== 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 {