From patchwork Fri May 10 11:29:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 163863 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2234463ilr; Fri, 10 May 2019 04:30:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAJINdbBTpEi+n0G+DUAmGip8kH3ASDCpR/BwE/0XntPDKc+cc4+AlIEgwDLmgKqE9Nm8L X-Received: by 2002:a63:a08:: with SMTP id 8mr12699241pgk.46.1557487829322; Fri, 10 May 2019 04:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557487829; cv=none; d=google.com; s=arc-20160816; b=cmBiGz5tvBLI1LTufZpsP3MjSWQ8N5ZDQn95iT314PGvEkWW52h45ic/DhBmdAWafC 4wgQ3VIyDlNO1NQBY3YW/HAR+L8GszRB5bZZqy9YO/wxVSYIueLwHJyOp6uQYF5I2+xE dzLaR21D1zTjGD6/yVWaguYbL3712MyysOZ3wO3cFZDvNQ1o+LNybqtpXu3Yo62x/WYO YgwwxQLzXiRm2cfmwCQpytTFJO4olf/KSN7eUNxki91/6M8KToF/HK7LUWqXJ6VvyYV4 gQbjbGArzrQozxmHxvwfE1mcf7Fi6B3mKV0WGIdMQXJoBCi2pVkqj+onsV7b4DEngh7o pvtQ== 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=QcC1kcPYlPfO0O+8tY4nav6bCdNp5fwmjBI0DJl29qg=; b=k9VHzYndT4zscvvX94vUqn64wKUzlxp+hLT7TBt6nacktTOOFe8+URG/tsRqu5XB6G aiV3zrS4aAFA4q12sO1AN1u7/m+BV1Rl72o24ZqgTaJy9HAMG7A/izjZuNZUr4jPui0Y iNg+2D+JL/i0ArzqF9l5mmn/4lvpdcuzGKL2aNe/v+fn+gdUcyNwqcm/UjMWOMNtinH4 vobTwldEimk2upuCjBPEO4X9xVyjamV2IsFldzNf0JNCfsVMZ4toRDMSSk+6i4CsA5WS 5wIdM3fW8oOIxGWmXNL3MYQw5LHANZ7E2OSqFiEq/nPezH+3yaOHBOsM2xmAtliqQqSl IF0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=io1my0Ec; 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 n81si5767830pfb.258.2019.05.10.04.30.29; Fri, 10 May 2019 04:30:29 -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=io1my0Ec; 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 S1727541AbfEJLa2 (ORCPT + 30 others); Fri, 10 May 2019 07:30:28 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44382 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727524AbfEJLa0 (ORCPT ); Fri, 10 May 2019 07:30:26 -0400 Received: by mail-pf1-f193.google.com with SMTP id g9so3075116pfo.11 for ; Fri, 10 May 2019 04:30:26 -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=QcC1kcPYlPfO0O+8tY4nav6bCdNp5fwmjBI0DJl29qg=; b=io1my0Ecix2JJ3oJcqZjL6zpswZC8ld3VfErZ6eDNNxCA01YaHqdUdn/oWDMxEX49y Mzz8f+TACjsxP7NDAjihlYBO5ZDxcc+Pze5vkvIRLQ1JAHpzcefCYFvWF+RrLCP7A+xV L0+Lcik0PbyhVg4LQML5NeoVM9v/BCBq11lgm+COePLxVdRqh3kHG/GrzA2YGpxBfKOV /sCsbkV6UjRzhO9FkkldIPhsvZaJdh7v58HP/nyDWIsYiQmB05OtFLDvlRqSBuIXfUKu Yb/YRz27i7bykpJAj24CJJRtU1c7575KRyf4lfznr2Zn+WAzuRb/8JGeXSKK1qNwDSwB 5A2Q== 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=QcC1kcPYlPfO0O+8tY4nav6bCdNp5fwmjBI0DJl29qg=; b=CDTeesVJVbgRkxLqxZtb5KJ/f5q9N62dOGiqWHqVPSBSQHlywa+OEbrMB6m5zBuRy4 FutUd4FHigMBhznaMjza3cSI1xaYTAhMesTCC0nSvlrzuubJvnkleKW4TmdsnuAc8r+L Bk3dg0VE5Rf7dzE4APzysifR/E8CLsohsOgMMNAP08idJqq5v/VGZrFD1OZhbtUlRnmK ZN9wRcs2Wo2UV/e3IAohNEEnvnN/1jRddx0bYe8QGcoSb1KPARFXj5ugyAc8yZJG5muL BfFcHInXaqjRL1sYO8nxkYxKuTSrku8KHj9WGcsMVNb7C93iWy3nIGTzFG/N0iJs/KYw rQeg== X-Gm-Message-State: APjAAAWjSyzh8QCP66VRt1wSZxPRoj2IntwZ9GuEg0FLWTRFK/IUUlPS 1KwrdK5sXzse2xyuIfDJyklP3lIrd8I= X-Received: by 2002:a63:fa4a:: with SMTP id g10mr12780794pgk.147.1557487825600; Fri, 10 May 2019 04:30:25 -0700 (PDT) Received: from localhost ([103.8.150.7]) by smtp.gmail.com with ESMTPSA id u6sm6546596pfm.10.2019.05.10.04.30.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 04:30:24 -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: "Raju P.L.S.S.S.N" , devicetree@vger.kernel.org, mkshah@codeaurora.org Subject: [PATCHv1 8/8] arm64: dts: qcom: sdm845: Add PSCI cpuidle low power states Date: Fri, 10 May 2019 16:59:46 +0530 Message-Id: <044cd74e461a1dd7934f44531802f4b557264365.1557486950.git.amit.kucheria@linaro.org> 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: "Raju P.L.S.S.S.N" Add device bindings for cpuidle states for cpu devices. [amit: rename the idle-states to more generic names and fixups] Cc: Cc: Signed-off-by: Raju P.L.S.S.S.N Reviewed-by: Evan Green Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 62 ++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 5308f1671824..2c8c54e4bd77 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -119,6 +119,7 @@ compatible = "qcom,kryo385"; reg = <0x0 0x0>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD &LITTLE_CPU_RPD &CLUSTER_PD>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_0>; @@ -136,6 +137,7 @@ compatible = "qcom,kryo385"; reg = <0x0 0x100>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD &LITTLE_CPU_RPD &CLUSTER_PD>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_100>; @@ -150,6 +152,7 @@ compatible = "qcom,kryo385"; reg = <0x0 0x200>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD &LITTLE_CPU_RPD &CLUSTER_PD>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_200>; @@ -164,6 +167,7 @@ compatible = "qcom,kryo385"; reg = <0x0 0x300>; enable-method = "psci"; + cpu-idle-states = <&LITTLE_CPU_PD &LITTLE_CPU_RPD &CLUSTER_PD>; qcom,freq-domain = <&cpufreq_hw 0>; #cooling-cells = <2>; next-level-cache = <&L2_300>; @@ -178,6 +182,7 @@ compatible = "qcom,kryo385"; reg = <0x0 0x400>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD &BIG_CPU_RPD &CLUSTER_PD>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_400>; @@ -192,6 +197,7 @@ compatible = "qcom,kryo385"; reg = <0x0 0x500>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD &BIG_CPU_RPD &CLUSTER_PD>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_500>; @@ -206,6 +212,7 @@ compatible = "qcom,kryo385"; reg = <0x0 0x600>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD &BIG_CPU_RPD &CLUSTER_PD>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_600>; @@ -220,6 +227,7 @@ compatible = "qcom,kryo385"; reg = <0x0 0x700>; enable-method = "psci"; + cpu-idle-states = <&BIG_CPU_PD &BIG_CPU_RPD &CLUSTER_PD>; qcom,freq-domain = <&cpufreq_hw 1>; #cooling-cells = <2>; next-level-cache = <&L2_700>; @@ -228,6 +236,60 @@ next-level-cache = <&L3_0>; }; }; + + idle-states { + entry-method = "psci"; + + LITTLE_CPU_PD: little-power-down { + compatible = "arm,idle-state"; + idle-state-name = "little-power-down"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <350>; + exit-latency-us = <461>; + min-residency-us = <1890>; + local-timer-stop; + }; + + LITTLE_CPU_RPD: little-rail-power-down { + compatible = "arm,idle-state"; + idle-state-name = "little-rail-power-down"; + arm,psci-suspend-param = <0x40000004>; + entry-latency-us = <360>; + exit-latency-us = <531>; + min-residency-us = <3934>; + local-timer-stop; + }; + + BIG_CPU_PD: big-power-down { + compatible = "arm,idle-state"; + idle-state-name = "big-power-down"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <264>; + exit-latency-us = <621>; + min-residency-us = <952>; + local-timer-stop; + }; + + BIG_CPU_RPD: big-rail-power-down { + compatible = "arm,idle-state"; + idle-state-name = "big-rail-power-down"; + arm,psci-suspend-param = <0x40000004>; + entry-latency-us = <702>; + exit-latency-us = <1061>; + min-residency-us = <4488>; + local-timer-stop; + }; + + CLUSTER_PD: cluster-power-down { + compatible = "arm,idle-state"; + idle-state-name = "cluster-power-down"; + arm,psci-suspend-param = <0x400000F4>; + entry-latency-us = <3263>; + exit-latency-us = <6562>; + min-residency-us = <9987>; + local-timer-stop; + }; + }; }; pmu {