From patchwork Fri May 10 11:29:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 163861 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2234275ilr; Fri, 10 May 2019 04:30:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfZIeoHbelPVZxUxBO0/mmqYSUmRkQvSUYGPtK/oXwSWOxm2NGi1TJNso+vhDqhcurJiiy X-Received: by 2002:a17:902:3324:: with SMTP id a33mr11487801plc.1.1557487818803; Fri, 10 May 2019 04:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557487818; cv=none; d=google.com; s=arc-20160816; b=wAxkJqKFwRe7i4jXH0ZfWOEZ8ECNXXl2JWzaYDd8ePnTJq2TGzMgRJZ6D2TZlMN+ZB Lb25hpx4GfBORBpTEGFPjNTnBmd1RzuQ1T6VnP4weTV/TmkCALLtgfFtwco2Rkhx9WJU Vi84oZWQSwXNBjKgdSm53h4XKPdCqZ9jjjnux7XHEJrPRPBjShgukKqwN9XJ/jU/a/M/ CJs5k7mK1u7h7/Sf7c2gRL3ZEQ/GTQpwkcRtybOY5muxBXENYHSG/lMA8o+e8mvKUZhY Vi9G1i8kk0y4M97veu2+0Tow8WRWvhM2aLTuQlsnkBEprnvH7lyojod9Y416JLqRDk95 a55Q== 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=JVo/NvEDRX1QVQbcjE8Yetg8X4Rda/MV9JSZ7Qo1pjU=; b=HhOSI31Rw5E0FfvezVc440BZ7vzq4j2u010Gpfvvf53XeeU+wSx+qwj7QFWA2ULIes VqAXnVnC491u2lF/FtckkYQnwheita2SBssEjSVKy2LeKzxtSuiCSmG965qstOSmvwjy YExMkKhOA0BgaJ4pp0u/PsqcoMTKVXwN0/pTzkNraYvGuo+YLVm+TLd6M/zh8wDkLglw MGruJhwMXxxxd6mrSOUwkdAIsm8vZ3CwccCN7fbsagLbdT1hYQRcx1/5nDPTnMHBBSQk qbUU8FheaFfMK3ft7E5v8q4r8V25yvQIHljU/ErJ5eP10fVFz3nNcG34B+DVzwwcnQSC VCkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s7jn7hlr; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 t38si6567981pgl.497.2019.05.10.04.30.18; Fri, 10 May 2019 04:30:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=s7jn7hlr; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727483AbfEJLaS (ORCPT + 15 others); Fri, 10 May 2019 07:30:18 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:32903 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727476AbfEJLaR (ORCPT ); Fri, 10 May 2019 07:30:17 -0400 Received: by mail-pg1-f195.google.com with SMTP id h17so2909261pgv.0 for ; Fri, 10 May 2019 04:30:17 -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=JVo/NvEDRX1QVQbcjE8Yetg8X4Rda/MV9JSZ7Qo1pjU=; b=s7jn7hlrXaSulZyC00By0r91cNEiJ4SQmpC82v3lVdN6t5HlkoTF5vWlBltkS/3M5D 6lNJ1AlB23X0DJ7A92bi7ijQ7QT/pDm4SlcAv4GWOMue0yksI3pxr4Tgt+IDcVRUQ2hJ 11Rj7TX8mo66oXANkYVxmfvvYkFNOrWm010WN2S1rU5iqLLXfOzzmr3Ni7FTIRDCZ+fu RW6s7S1Oe2mHLWyuwso/IDKyeKzur/Q/EKDBUxCHMtPhOcONfeFX/s3lgWzVIK56oIyw xaSGWvjXzxOnrR7BhhZh3IgQWSNoifY0fHaZKwPGfJ33VhleHf1gPRFPNGvzuvI77hGG xETw== 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=JVo/NvEDRX1QVQbcjE8Yetg8X4Rda/MV9JSZ7Qo1pjU=; b=MUIJH8bb5rlzQ0jxIoCp1S5xoGxvqscT/xvrm8J+sJjRwiJCQGqaRAAZg3i2DBDj+v fVf7R3wmRctgrS6ioJePxVZgQ67BMKxLEcGdzIK02CXoWEZ6+ZZCxNCRXVJ3/MHQ6vHO 7Uu9+bxyNyZnNRZV/p6UuyjClbIYaVXwmMjNrkefWmDM8QiRXfTA7e1B7hoP8Tge72ny evgrOKf4PD0rH5gmMc98pGXMRei2I1/VcmLn5SzIk3jHWaiXrO8/jVYHQ47/7WUk88kd AcTi+0lt/nQF9TCNJQyH9h/MZ83+nE9LqOw8yalvGVb9gffHhdwDRdz8Ds2QRIdh04Vn O2Ww== X-Gm-Message-State: APjAAAVh6S+ARpLooruSxX0+hD8I3ucyv9LhypaqNhuf2YrAaSX8N5AX FRQMO3A01Z7eIy593rW5pB6Z4Q== X-Received: by 2002:aa7:98c6:: with SMTP id e6mr13008017pfm.191.1557487817121; Fri, 10 May 2019 04:30:17 -0700 (PDT) Received: from localhost ([103.8.150.7]) by smtp.gmail.com with ESMTPSA id g32sm5295248pgl.16.2019.05.10.04.30.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 04:30:16 -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: devicetree@vger.kernel.org Subject: [PATCHv1 6/8] arm64: dts: qcom: msm8996: Add PSCI cpuidle low power states Date: Fri, 10 May 2019 16:59:44 +0530 Message-Id: <8648ba97d49a9f731001e4b36611be9650e37f37.1557486950.git.amit.kucheria@linaro.org> 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 Add device bindings for cpuidle states for cpu devices. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index c761269caf80..b615bcb9e351 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -95,6 +95,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x0>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; next-level-cache = <&L2_0>; L2_0: l2-cache { compatible = "cache"; @@ -107,6 +108,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x1>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD>; next-level-cache = <&L2_0>; }; @@ -115,6 +117,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x100>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; next-level-cache = <&L2_1>; L2_1: l2-cache { compatible = "cache"; @@ -127,6 +130,7 @@ compatible = "qcom,kryo"; reg = <0x0 0x101>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD>; next-level-cache = <&L2_1>; }; @@ -151,6 +155,30 @@ }; }; }; + + idle-states { + entry-method="psci"; + + LITTLE_CPU_PD: little-power-down { + compatible = "arm,idle-state"; + idle-state-name = "standalone-power-collapse"; + arm,psci-suspend-param = <0x00000004>; + entry-latency-us = <40>; + exit-latency-us = <40>; + min-residency-us = <300>; + local-timer-stop; + }; + + BIG_CPU_PD: big-power-down { + compatible = "arm,idle-state"; + idle-state-name = "standalone-power-collapse"; + arm,psci-suspend-param = <0x00000004>; + entry-latency-us = <40>; + exit-latency-us = <40>; + min-residency-us = <300>; + local-timer-stop; + }; + }; }; thermal-zones {