From patchwork Fri May 10 11:29:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 163858 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2234085ilr; Fri, 10 May 2019 04:30:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCS2cOG57pQhiWCc1iH5nqT+k9TgzVpr+aO4joDFM6Vy+CkMK8hy8F1ppoerPbDQBamiJ9 X-Received: by 2002:a63:1460:: with SMTP id 32mr12779176pgu.319.1557487808097; Fri, 10 May 2019 04:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557487808; cv=none; d=google.com; s=arc-20160816; b=WY+5d0lb99cfcjZR7TOifgTov94v2UKJvtbwglV2k2J9ovxfM0Wf3lSAHTjU6MRqI/ M3OCEF1iO2RLOSOmrWTX4PaWDK4X5Y2RuMhDMljsM/iLCuKhkXllP7fa9kqdwzGIotT0 9f8cHKi4l3054EXAebY4g+CoxtzfquABrnsbQCU4SfaF1xrpftmSmfU+HNfKzG9L6xEg o66gTNy4qYr2cSNWK9Xgc1zo4DzN36p44qkYgf08dQQ5s/ehnRHU/hbEMOkzw93Jyr7C HbODHL8hJDYvguWAlXir65VhA7FUxRRcjJvopZcmX69zkq2fKTnNEmUsrgvlXRt2qyaI Dv7g== 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=XEEIgwOV9z+zGwCO+bIPdlvdaxukbTtCAZSyRHFIYp8=; b=i4dwTr3lUfwIobceJheiY5wtBu2QevbPY3AHFx5iiNjEZ4ik4fdxyPlcyHjFzcO1RO y1dSnzBRSLPz7yJkFLn99QpX5ocDlo9Fd0rwEOAc1cKamsSdodp128IKren2ah/vN8/6 U09PagLbt92AtfCrxDlOodYiBG8120DICLRKcrksNsJFK05PpQ+WXf3UcbzUTaEyR1DX QWWf5yclM0Qel6IqGBIGiFT2Wc8Bqks6oG4TO9uiz/Za9DKqBkqxqqqNdE1SD0cDOW52 dOZjK8XbQlpZi/l/ZzY0SPMMaNech/z2JVa7UABo1JZcBZPnOR1eRpY/edJpqR5VjQcD 6etw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PgkRML8B; 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 k184si6454952pge.82.2019.05.10.04.30.07; Fri, 10 May 2019 04:30:08 -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=PgkRML8B; 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 S1727413AbfEJLaH (ORCPT + 30 others); Fri, 10 May 2019 07:30:07 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44342 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727390AbfEJLaF (ORCPT ); Fri, 10 May 2019 07:30:05 -0400 Received: by mail-pf1-f194.google.com with SMTP id g9so3074532pfo.11 for ; Fri, 10 May 2019 04:30:05 -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=XEEIgwOV9z+zGwCO+bIPdlvdaxukbTtCAZSyRHFIYp8=; b=PgkRML8BUjp4OaooFW5wqoDKpWiVOpDtLOaT9rXtfDX8p1w9hjpPGCkM+9pXTvVIgp o7f7YVDLeyz64hfKY/psaexOP59hI0BiFvFMOIw2+FXP+oYknF8Q8Q/rvZW/TiXeUp5e I8HnJmMf5tOdX7q/eOgpuvSv8SZLC/0B0Y5D9zdw02m4a/5oDIXEdNgwx43oVrNGLvBN KLGd7V9L3HpJhooCyV/2SFrPe8x99d4O7EYiZQ9kgatEFMUMy5KdkdZ3tGv5TrU6YmWd J0OYDSp7nTw8JLKG7URMq7FSOiAKpsrXRR4LWET0rqQ9d041XFAydmqetRD+/HA/etH2 aD3Q== 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=XEEIgwOV9z+zGwCO+bIPdlvdaxukbTtCAZSyRHFIYp8=; b=oDesMG90dY5rkV62URHlEz0gBDnE3g2xCoT9zXU4nXOKZeWTKBksc2hYmASX7RudHM qeG75qeq0q/dEzzBRNllQWszbdKM3MwOENPFhbLdCx8pFf5iBL9Hu7M9QtS9MZkLXbji jathnVaHhp0Pcfb4faokU37gntdF1rMRslYrx1dL2Gf9q1uivCBNEpYtx7GRjMVzCUWY HdDA1QdzdpFijf8b2T3sLqwsSp9MWqA5arbDzRXOLyk3yuUgefg+vYpiRnRgZlbEp8Rj RuqEGZef5iTI7GcReMkAPi9e7+DnmCCc99iX6Z6xsseAAPx/PiQlf/JW9twkuup6zXNt Lmhg== X-Gm-Message-State: APjAAAU/c64/gVNVxGGw6hAnucFN+7B7Klc8paMZEkCW2kgHSLyIbpu9 5G4ZwfkV8L7rSxrAm4LN3+lbqTeWTOM= X-Received: by 2002:aa7:8212:: with SMTP id k18mr13005473pfi.50.1557487804833; Fri, 10 May 2019 04:30:04 -0700 (PDT) Received: from localhost ([103.8.150.7]) by smtp.gmail.com with ESMTPSA id p67sm10677543pfi.123.2019.05.10.04.30.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 04:30:04 -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 3/8] arm64: dts: qcom: msm8916: Add entry-method property for the idle-states node Date: Fri, 10 May 2019 16:59:41 +0530 Message-Id: <030b5d9c6dc2e872466b7132e4fd65c473f9883f.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 The idle-states binding documentation[1] mentions that the 'entry-method' property is required on 64-bit platforms and must be set to "psci". Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 Reviewed-by: Niklas Cassel diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 0803ca8c02da..ded1052e5693 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -158,6 +158,8 @@ }; idle-states { + entry-method="psci"; + CPU_SPC: spc { compatible = "arm,idle-state"; arm,psci-suspend-param = <0x40000002>; From patchwork Fri May 10 11:29:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 163859 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2234144ilr; Fri, 10 May 2019 04:30:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/CIea1eax0zmbfei428tgDnqDawVH7X+ME/h8gwjUMf5iDRF0i7ppx/A/mUWwW6usAIAt X-Received: by 2002:aa7:8296:: with SMTP id s22mr13397649pfm.52.1557487812083; Fri, 10 May 2019 04:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557487812; cv=none; d=google.com; s=arc-20160816; b=xFHvnfBH0NhJgTw3Bf100S4BJaYTuChO86WEOkrFiPasD1esLg17McPnjny9MDeUK6 NRh5hKlQ+TWqdMzE7Oner6ifGFMNUW//ZZ8pF4MJ9IdlURtH1zXSatsmK1qOqsswIUO+ 2RbjwZYgCgLo7fpaNRxQFweRJnhUED4v0yah5S10txTLbZ31fOBiv0+nESBTunFRx5sn 3ClzPpdhJsf4D4nbGZvuiRhzJN6XLhK2+wninZgBf7lNjdvusHGXw8g4ni1Tw/zCZ7lf MA7mzhcvjG/xtlJ0FnNxN8tZ0zzOe4roUw+znQrvAUkzimvMTEvJ+hwoPR2GTXNtFI+H nTTA== 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=QX6d+2j5rTo6SXyWxTv7coh+9aY0FrKtm56hn7CHowI=; b=MP+GNlkVcJKj24AaTGEM6knJT98cw7jYRgvaTVIqG0ITBCLhFtvN5tEIfNOHnx/7sP fYUW0gruH1ZeG+S/v5lHQQGjF64ebpo1i2KOUm1mEywlZgx8P+IUMpqNHQJs4CpMoJaj yLQVgf1f37/M4yxGW2lCOaQVnO18IdTGJcCT1VR85mRuHwWn06j96odbqzmZtGSZGnOO v5u2HOahuWy3yFmA25/6VWCm/rw2Dnx7RI3/L8vlP1utmDu9R0v6FYZjVI9wzZDZFdDx jCzCiveSoOQbkwDPQKmw9TwTeTd/KByDaDF3fsuH5Y4PBXq64ezFNdmQmUAdA0IxmurX DqIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ymL3BlSn; 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 r12si6612970pfn.135.2019.05.10.04.30.11; Fri, 10 May 2019 04:30:12 -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=ymL3BlSn; 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 S1727452AbfEJLaK (ORCPT + 30 others); Fri, 10 May 2019 07:30:10 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41757 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727416AbfEJLaJ (ORCPT ); Fri, 10 May 2019 07:30:09 -0400 Received: by mail-pl1-f193.google.com with SMTP id f12so693932plt.8 for ; Fri, 10 May 2019 04:30:09 -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=QX6d+2j5rTo6SXyWxTv7coh+9aY0FrKtm56hn7CHowI=; b=ymL3BlSnyQUw4ZwTZIV68bfcJZez4YPfZ7fbb46ka4OALV9P1C8awhm1QWKQcNNAkI /FKXdVCZROLk4hqWuF2XbVHBttz41l1Sh6/JUhLqbICU4tSpxLpxgLIfNdF7qzlpUtf0 pu3W+QLbwSiUE8BjQzWRuMCP4teo0eVkBtA2k7MH++Jh6s3yIEJTSBOecJb/Ee4Lzmbz X6AgGCHdu3ptcKnxhYuc4syExlnS8PZpT6vLVJWpfCaUMIZaI23zH1rKjeZzFCkljiLi KUKaSeg/6sKY99p+h/Lz/WC4CtmsAqs2/ATPyfWkIUjyw3p6HfQD2y0tiZYbakHagI0y SvEA== 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=QX6d+2j5rTo6SXyWxTv7coh+9aY0FrKtm56hn7CHowI=; b=ss6oUm39O2+URgZNFm7JC7JtEK9NAyGO9/SCoDRV3ZAurF3PeYwOnzBpM0M/h3L+7u 05cWmdm5SmlX0cLLMe+H1tYRTtSMjzgPgL8vznBMTdol1NHquYNkI6Hpet/3MWFxDGLY FMv+Ti1UELWD/KyybWxr9T8fyZTtgUIa8/NS4T8etN6LIQKP611qGWwKndgWNXVo9mqA tTZJJVJDnQyjRhAy6iLaBm9C7SaTjhnIxKsDpqRXjcn1dtUm2p/mhK0Ramyju/Ou0YrW NNleYPMuYbdjhfFS14SQRBF0NUW1JB0jfuNH/8uxOqj0b+4HiMYbbditEejUXJigTRkB rzOA== X-Gm-Message-State: APjAAAWcQNMN49LbxoeGh65bakpOu/EzI4bc00sr8FtZDTZn04bNrCrO 1KjdGH6wrQ35v0o5h+jt/DyyJBcpsAk= X-Received: by 2002:a17:902:7682:: with SMTP id m2mr11970974pll.68.1557487808815; Fri, 10 May 2019 04:30:08 -0700 (PDT) Received: from localhost ([103.8.150.7]) by smtp.gmail.com with ESMTPSA id g72sm13935671pfg.63.2019.05.10.04.30.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 04:30:08 -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 4/8] arm64: dts: qcom: msm8916: Use more generic idle state names Date: Fri, 10 May 2019 16:59:42 +0530 Message-Id: <2a0626da4d8d5a1018c351b24b63e5e0d7a45a10.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 Instead of using Qualcomm-specific terminology, use generic node names for the idle states that are easier to understand. Move the description into the "idle-state-name" property. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index ded1052e5693..400b609bb3fd 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -110,7 +110,7 @@ reg = <0x0>; next-level-cache = <&L2_0>; enable-method = "psci"; - cpu-idle-states = <&CPU_SPC>; + cpu-idle-states = <&CPU_SLEEP_0>; clocks = <&apcs>; operating-points-v2 = <&cpu_opp_table>; #cooling-cells = <2>; @@ -122,7 +122,7 @@ reg = <0x1>; next-level-cache = <&L2_0>; enable-method = "psci"; - cpu-idle-states = <&CPU_SPC>; + cpu-idle-states = <&CPU_SLEEP_0>; clocks = <&apcs>; operating-points-v2 = <&cpu_opp_table>; #cooling-cells = <2>; @@ -134,7 +134,7 @@ reg = <0x2>; next-level-cache = <&L2_0>; enable-method = "psci"; - cpu-idle-states = <&CPU_SPC>; + cpu-idle-states = <&CPU_SLEEP_0>; clocks = <&apcs>; operating-points-v2 = <&cpu_opp_table>; #cooling-cells = <2>; @@ -146,7 +146,7 @@ reg = <0x3>; next-level-cache = <&L2_0>; enable-method = "psci"; - cpu-idle-states = <&CPU_SPC>; + cpu-idle-states = <&CPU_SLEEP_0>; clocks = <&apcs>; operating-points-v2 = <&cpu_opp_table>; #cooling-cells = <2>; @@ -160,8 +160,9 @@ idle-states { entry-method="psci"; - CPU_SPC: spc { + CPU_SLEEP_0: cpu-sleep-0 { compatible = "arm,idle-state"; + idle-state-name = "standalone-power-collapse"; arm,psci-suspend-param = <0x40000002>; entry-latency-us = <130>; exit-latency-us = <150>; 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 {