From patchwork Wed Nov 20 12:56:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 179840 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2063991ilf; Wed, 20 Nov 2019 04:56:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyJS7ObzU75ffLRQiYTvJfiemWKOeBh/GROgATl1SyiW/H2nMUXID78xx3HZzoHLbNPoc1U X-Received: by 2002:adf:ec44:: with SMTP id w4mr3292996wrn.274.1574254609280; Wed, 20 Nov 2019 04:56:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574254609; cv=none; d=google.com; s=arc-20160816; b=oSAcKVMIUY4y9/f4reVRE6++LVFXi1HVmNgZ5/XPv24KxucNA0AOuWDFJ5mmNNqEiL pl5CRGfq6EQGlSoD6haRXrZVFR4SJzL7J6txMLY47gaZ/Na7EkoMlAqiy2qWJaz4EvBl 99ElF7y0f6a8kG0ueA27eLxlLMa226GQP35MaAp1+LkVzLmESa3/kS0mnVW00kZXaL81 M4wpBMr+Is7NakOHMS06dSXReFwHlM64u4x9SqKyGhxMUtZNe++MB1opTAWkm87Mt9GM LM+fKbWqoMG4mgFH2aUupQX2g6YyecDtFgvCVmRNgkqEMTK730EfigL90oJg35IWDMbb 0n6w== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=Bjn8ReEOuhGj9F9W8fuw8HgClV07G2HHM36EtHpy9gw=; b=lWtJq9l1N5InROntDbw53V4w801bERJckvBMwhSiGUY2BoEfp6Qo42Mt2MBzgirW1E g/fp0NQnPhKeAKdm45YCmKiuBdv/tEZ+AEkFXjGE5Pg9ZcGNetL79+vawxYQTO815a+Q OMl9aO/bPLCPzFlR1zfJIOInJosyYdLu4EwQO3FcVhi+rKrRg5VcL4XaqniZ46xycZoM xtGIShOLF3jcJYdQwGWLTdPswvZCKRjb8lp3ZJTPcRq32zRmzdtu2DCytFjcfIpQYc+P ftWd6COLwy0XzmhI00kUPNa5j9dufnv8cCj+9WGIZbU3SwYwRRE1NRpb7Optp4LrNRu8 Tk7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V3yYTK2+; 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 c12si18495326eda.402.2019.11.20.04.56.49; Wed, 20 Nov 2019 04:56:49 -0800 (PST) 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=V3yYTK2+; 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 S1729952AbfKTM4s (ORCPT + 15 others); Wed, 20 Nov 2019 07:56:48 -0500 Received: from mail-qv1-f65.google.com ([209.85.219.65]:37270 "EHLO mail-qv1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729957AbfKTM4r (ORCPT ); Wed, 20 Nov 2019 07:56:47 -0500 Received: by mail-qv1-f65.google.com with SMTP id s18so9651966qvr.4 for ; Wed, 20 Nov 2019 04:56:47 -0800 (PST) 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; bh=Bjn8ReEOuhGj9F9W8fuw8HgClV07G2HHM36EtHpy9gw=; b=V3yYTK2+0pBvo3Fs29fkJr+7+mmKEYMjFkE7Ka3SjI9crrpN1l2CayK3y0m4ygetZ3 nlTP0SZkttXLJbDk5AOuS6mH+hTEpZkfTBcG+NUhtj2fwrBaoGZCtzSWrQysLdKVzK6G 82BJ8fTCqtLxFEutXC0gQzqzT+b5UJC7ur3ECvk4P6L6747BLjqdVCcBzBeh0GFR44xO TI/nl70KdWfEcZ2jjkTNH1sWgohGuRtMyxavuy530AY0D8o3H4iRL+3+s1mBeoMlYguD CRTIxUPLmNgN3NAZR8vYGqsc8gqU5PIQyqE51k+aXurXAhWBYR/jx70NiwU8ZN6stAVZ Dg7Q== 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; bh=Bjn8ReEOuhGj9F9W8fuw8HgClV07G2HHM36EtHpy9gw=; b=F5jp2FtvQcFsxlLRmBjskR+uKxI9JFsIr6LPUwB74znA66SkwgasGHxWSUJ3VfZf2i aXwM17zo/TDBilAgaA2hxi8oMn2J3WaM/Hlv81RtTmb6sCn3FpG/V9idPzmCt7xXDohr 6/R61F0tcke0/F7z4ilb8ymgwdfj339fOHFxGdtnI/0Rh9urNOih4BRZ72PP8uk3aRSU 2vn3H5TipF+iUiKcBR/UwseSXo2fmF0R8DXw6Ptms5MsbhixRLqbpqn3Z/bbrCirTq8/ lPRPaff2xdub26hzF4KfJm6r3ghzETVTSU14qHtat9louz4xHthrZqKeNFuv0moD7hXu Xe3w== X-Gm-Message-State: APjAAAXPxfuCYDhNp/xtxo5dec/hTc2gL7qjcHvMaY/HvkQRAN3rIVT4 4r06Dxob3IiXkBDQvGJ6Ckw/DQ== X-Received: by 2002:a0c:e947:: with SMTP id n7mr1303514qvo.103.1574254606578; Wed, 20 Nov 2019 04:56:46 -0800 (PST) Received: from Thara-Work-Ubuntu.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id r2sm14109637qtc.28.2019.11.20.04.56.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Nov 2019 04:56:44 -0800 (PST) From: Thara Gopinath To: edubezval@gmail.com, rui.zhang@intel.com, ulf.hansson@linaro.org, daniel.lezcano@linaro.org, bjorn.andersson@linaro.org, agross@kernel.org Cc: amit.kucheria@verdurent.com, mark.rutland@arm.com, rjw@rjwysocki.net, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [Patch v4 2/7] soc: qcom: rpmhpd: Introduce function to retrieve power domain performance state count Date: Wed, 20 Nov 2019 07:56:28 -0500 Message-Id: <1574254593-16078-3-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1574254593-16078-1-git-send-email-thara.gopinath@linaro.org> References: <1574254593-16078-1-git-send-email-thara.gopinath@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Populate .get_performace_state_count in genpd ops to retrieve the count of performance states supported by a rpmh power domain. Signed-off-by: Thara Gopinath --- drivers/soc/qcom/rpmhpd.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.1.4 Reviewed-by: Ulf Hansson diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 5741ec3..9d37534 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -285,6 +285,13 @@ static unsigned int rpmhpd_get_performance_state(struct generic_pm_domain *genpd return dev_pm_opp_get_level(opp); } +static int rpmhpd_performance_states_count(struct generic_pm_domain *domain) +{ + struct rpmhpd *pd = domain_to_rpmhpd(domain); + + return pd->level_count; +} + static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd) { int i; @@ -373,6 +380,8 @@ static int rpmhpd_probe(struct platform_device *pdev) rpmhpds[i]->pd.power_on = rpmhpd_power_on; rpmhpds[i]->pd.set_performance_state = rpmhpd_set_performance_state; rpmhpds[i]->pd.opp_to_performance_state = rpmhpd_get_performance_state; + rpmhpds[i]->pd.get_performance_state_count = + rpmhpd_performance_states_count; pm_genpd_init(&rpmhpds[i]->pd, NULL, true); data->domains[i] = &rpmhpds[i]->pd; From patchwork Wed Nov 20 12:56:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 179844 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2064232ilf; Wed, 20 Nov 2019 04:57:04 -0800 (PST) X-Google-Smtp-Source: APXvYqx3oPLfAzkmJrRJaiAoiispphcFVVunKpTg6/JUhqiYYk0TWbcsMJ4BWhLYgMYbNp94rA/k X-Received: by 2002:a1c:808d:: with SMTP id b135mr2956065wmd.175.1574254623897; Wed, 20 Nov 2019 04:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574254623; cv=none; d=google.com; s=arc-20160816; b=z523pFCNFSrsP5YrQHqKu5SDZ6t+3GtMAFCDzZYJQk+ANiJj41Bhni3CpXLgd9Cw3v F5YnJDK0TQb8OwA0RD7BtpUAU9AdIYnunokvkj47fe0csHSMe5mOtdrj1UDze/+ZadTY kibJ2K+eUCOKICtwtQTHW5idtL5UGLnWDDprkx4nC9ZMvQgTrkaq9xUktE/nEAW4ynC+ zkXzNGGZ+gIyGEI5qKQ1XcnYSs+B42YB1W5dbrrH4ppIkPa9Vy398Kf+LmtqEid6TCPi QHfIDYua3lI9XoT4Bgzf3hG/qnPoz9sV5pFcAQXhJ4HTx0boU2GouccBMBAtLbsL3Bom PKXQ== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=z4ssK7JBCpbD6bi+mRUWzSmv0ifU6DEy28XSn5k5sZs=; b=gR+rjwgwAXtvSD/kJIfJ25IzfYb36ulgD7sBEmVAUErhtfdyNP2vTdZqVMfXEG0PIO wNX4EEfW94Kxn3aFB8R7HfHw2ne9L6OH4eQtk4Iq8nofEuAXOJLu7AuXKWbOJr9K/kgh TYnfr7PYRzRh0IcSuP9OS1axqdIyojmfQln14fYchiqVb6gDLwCtNZKF8QBCRpddG3hR IRaVrvhBBxQuBfDRylkMzJe73yi8H+CVTDAZXcnocfeKgt36ItccUCPzpLUZzTNWt98G GCz4zfCfsmimLR31nQgzophfVhySFTMWnTArGFFUIBuit/gF8wh7pKYWHEsif0DbeL+6 mJ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hNV6ICs5; 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 h58si17082461eda.18.2019.11.20.04.57.03; Wed, 20 Nov 2019 04:57:03 -0800 (PST) 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=hNV6ICs5; 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 S1730012AbfKTM5C (ORCPT + 15 others); Wed, 20 Nov 2019 07:57:02 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:33667 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729971AbfKTM5B (ORCPT ); Wed, 20 Nov 2019 07:57:01 -0500 Received: by mail-qk1-f194.google.com with SMTP id 71so21134346qkl.0 for ; Wed, 20 Nov 2019 04:57:00 -0800 (PST) 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; bh=z4ssK7JBCpbD6bi+mRUWzSmv0ifU6DEy28XSn5k5sZs=; b=hNV6ICs5UGYvgFnOyufx/4UHKvv5yVwhD9gYoCz8z+Y9+JIGFkmp+2BQLpVz6GSbZO wI1uN9CrEXJ9q+bYeF0657TDzwMRsgQ0ig6oE5fyDIelnNuNvI3kBKpppEsSW44ZaTyr AQesMDm9xX/9Hdgz3xn/TvEqHQ25xPu4WqHTBTtDSix50d1nClk5FqjKfYQaorn54zNj vWv47tvOelxdJxhPeB176mvNbCjFGZged8aZK1mghaaV3qZ+IxtzEigBK5yfkDz7fWz9 diaqXjNjfCvsGJ6pIfO8mZPqYDEThb20/l5O3+bMe44zeLXeiqPfT+TmafIezKOVejtl QnTw== 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; bh=z4ssK7JBCpbD6bi+mRUWzSmv0ifU6DEy28XSn5k5sZs=; b=bQ0dnv2BJp00xSEtVL+krI4wBTYVLwCOYE3aIhoC/IYPN3OhTwyteYuXjUTbKUco8D qfWFAl9ds0yI0NwAjcODpTtr9abOUvkv5wpxtsjaZU0dO0GQpi/7V/2yse+3A/0rZvJF lLRtUs9fNkaaeGFog+Z7q+AktX9dMmWnlnq9i1SE9IYigdym4ZX/pcGJ6ExP4NMljBBa uIziP41VrMiEfDeYcrTkUY5Sh0jMTKXO5NkOnzufIBt9f7R4ZvJA16UsxpMMXp+Ua1z1 WqplEvfaxw+3MXtd4UVHDKCcLg2o3f7pmVz0UCTL6IJlX/eAlipCdCo833+W5Kk/UNAp OTZg== X-Gm-Message-State: APjAAAXS2ODeTyi5ouGVtqMWTiCor8yF68Ap4Sg2zuLgLS+HRaCp2+4y 4IofJQ3S9z56gvDCOAT1I/UPSg== X-Received: by 2002:ae9:ef0b:: with SMTP id d11mr2206623qkg.68.1574254620425; Wed, 20 Nov 2019 04:57:00 -0800 (PST) Received: from Thara-Work-Ubuntu.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id r2sm14109637qtc.28.2019.11.20.04.56.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Nov 2019 04:56:58 -0800 (PST) From: Thara Gopinath To: edubezval@gmail.com, rui.zhang@intel.com, ulf.hansson@linaro.org, daniel.lezcano@linaro.org, bjorn.andersson@linaro.org, agross@kernel.org Cc: amit.kucheria@verdurent.com, mark.rutland@arm.com, rjw@rjwysocki.net, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [Patch v4 6/7] dt-bindings: soc: qcom: Extend RPMh power controller binding to describe thermal warming device Date: Wed, 20 Nov 2019 07:56:32 -0500 Message-Id: <1574254593-16078-7-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1574254593-16078-1-git-send-email-thara.gopinath@linaro.org> References: <1574254593-16078-1-git-send-email-thara.gopinath@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org RPMh power controller hosts mx domain that can be used as thermal warming device. Add #cooling-cells property to the power domain provider node to indicate this. Signed-off-by: Thara Gopinath --- v3->v4: - Removed subnode to indicate that mx power domain is a warming device. Instead #cooling-cells is used as a power domain provider property to indicate if the provider hosts a power domain that can be used as a warming device. Documentation/devicetree/bindings/power/qcom,rpmpd.txt | 5 +++++ 1 file changed, 5 insertions(+) -- 2.1.4 Acked-by: Rob Herring Reviewed-by: Ulf Hansson diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.txt b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt index bc75bf4..a193d33 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.txt +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt @@ -19,6 +19,11 @@ Required Properties: Refer to for the level values for various OPPs for different platforms as well as Power domain indexes +Optional Properties + - #cooling-cells: must be 2 + RPMh also hosts power domains that can behave as thermal warming + device. If so, indicate this by specifying #cooling-cells. + Example: rpmh power domain controller and OPP table #include From patchwork Wed Nov 20 12:56:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 179845 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2064379ilf; Wed, 20 Nov 2019 04:57:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxrdHejaFqcSPb+msUgpiQ6zVH9v9Ya8Hh2QPI2h5UAmc5+dRzZQcekPUNQuE94VVw+t/ir X-Received: by 2002:a1c:113:: with SMTP id 19mr3234810wmb.42.1574254631270; Wed, 20 Nov 2019 04:57:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574254631; cv=none; d=google.com; s=arc-20160816; b=0ghtXfpsDGBSLJXA486Q5FQJ5E1ux8nF2xyLvYz+KyDSXWu7tBh2iLzI7O1RmUwDrN ghbvnX5XQ9Onwch/sedjTrbGa0eqhB2xbwzUN0iNoUqjWK11RzQC7gIVv3d5YlGpyLAF GV1FO5mG3jOZVv5RwyBvrfcz4alGFEtQ+Q1lp4ar7VFxhqC77T9FYM2q8rrrIjKiOUcG galIbmZlEkD4o5k/43BcD9W5gjURy6KpwV02jOx1XNcXJCHnrSY3zE24B9j3CXOhnpXe xX7xtcsZiAQaeMhhCGcXjgmq6PZtmSNf4EY9XgKsJ4EgiTw5ZTfkDRy5NZSDtcFk0D0/ NTxQ== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=gtYgZsKdjWgKCLPuHgoMJ2eNbNG78NE68Q155qN82Ug=; b=IPWZliCWMnHLTBicR81rtag9Z3D7+ZWhAlNEUIaUOnjeR2srkyiZs7oY3lg9ENpWCv doqxha0tdOKt/RvqV4C0YMKvZXe3OTmiUOtfVaSypEwu5MuqJIj0b1c1RDrsbmvk17Iq G5Wjr0MY1EvjKYCijtnW0SWQjSvNfT+3sBLVgNBDVBhG2EqPJslffD4BSnlIFzvIIr3v OPGsMD6q0+ByirSqORG1b6yfhIJvDr6bm8Btqxp+u19yaIjicpi2PuGQJE4AKFyRBapF SdNh/ySw/ygLg855mrjniGMLsGH0bfPcJHLq1WCSwOKYUhRiyJNMko0riSBQJSbrxFBK /o8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jGdbKr2T; 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 bu11si15257818edb.245.2019.11.20.04.57.11; Wed, 20 Nov 2019 04:57:11 -0800 (PST) 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=jGdbKr2T; 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 S1730019AbfKTM5I (ORCPT + 15 others); Wed, 20 Nov 2019 07:57:08 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33362 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730027AbfKTM5F (ORCPT ); Wed, 20 Nov 2019 07:57:05 -0500 Received: by mail-qt1-f193.google.com with SMTP id y39so28847894qty.0 for ; Wed, 20 Nov 2019 04:57:03 -0800 (PST) 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; bh=gtYgZsKdjWgKCLPuHgoMJ2eNbNG78NE68Q155qN82Ug=; b=jGdbKr2TED35aioqiqlsFcPudOG7cyQVE8+ZKhJapv6KOePem9zkOJoCl1+xmbSFZd 3Q1WLQAYXerCakAyxDej/i6/C0jfkafUUU9MZzFDq8WYmMQxnZZFjjEzGqnSc+kFxk/r Hq04BqVbcW9zp26Jbq1Dr2q9wFOWSlOWbEABb/tNcGOJzbygqL3sWIHAGyYYOwQ+Xi8h I/8SL4SnBPPb1Tq7d0A3X4E8ztaLuSp9DHAkEiMWHpT875qrb8xYGi1dGi19gF5T7RwS kOo4DPafrI4uFo/yxuFDuq1UvxqfascRNd0eGuLjPW+HU632Nql7sXT+nOq0v/wIQmgu UyHA== 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; bh=gtYgZsKdjWgKCLPuHgoMJ2eNbNG78NE68Q155qN82Ug=; b=ddpssaTIMiG60pBGbzqxXjyhArgWkcJ/n/DlE62ostHespi/DwvvhIur3C5ZNixGDv 6AtwDmIRZ87Bo0eUOoKRARxzBJiBbn6c7SVG40h7nQYPadIYfu6GJ+6iwhst2lwB6BZW 0WB6jYO6JnIACbJeXtMKY/MFX+8GeIy5X4iWZE/pKv2Ab62jQJGxDuR0AunRlJv1DWGy 4piwRLQUmvVyCFBcSa2sEwNwPTfLec8C0zsgfJ5DSHkrdx1rXnlMekSt/R6RwgsGoN9Q cZ3lJ9zZU4dob69wkyMMvrBkKSXjKJwF2bEhIpO9f/iLOis18J3hfd4cKEniJiB7VCxG Z4oQ== X-Gm-Message-State: APjAAAU7NzEvtZ+LKBv03l4Tsmvas4hkg/V0IAnSCackHBFW31vi7Uae XWDrHkVcmYMKpIJ0JglDAAHjDQ== X-Received: by 2002:aed:33c2:: with SMTP id v60mr2423209qtd.168.1574254623419; Wed, 20 Nov 2019 04:57:03 -0800 (PST) Received: from Thara-Work-Ubuntu.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id r2sm14109637qtc.28.2019.11.20.04.57.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Nov 2019 04:57:01 -0800 (PST) From: Thara Gopinath To: edubezval@gmail.com, rui.zhang@intel.com, ulf.hansson@linaro.org, daniel.lezcano@linaro.org, bjorn.andersson@linaro.org, agross@kernel.org Cc: amit.kucheria@verdurent.com, mark.rutland@arm.com, rjw@rjwysocki.net, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [Patch v4 7/7] arm64: dts: qcom: Indicate rpmhpd hosts a power domain that can be used as a warming device. Date: Wed, 20 Nov 2019 07:56:33 -0500 Message-Id: <1574254593-16078-8-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1574254593-16078-1-git-send-email-thara.gopinath@linaro.org> References: <1574254593-16078-1-git-send-email-thara.gopinath@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org RPMh hosts mx power domain that can be used to warm up the SoC. Indicate this by using #cooling-cells property. Signed-off-by: Thara Gopinath --- v3->v4: - Removed subnode to indicate that mx power domain is a warming device. Instead #cooling-cells is used as a power domain provider property to indicate if the provider hosts a power domain that can be used as a warming device. arch/arm64/boot/dts/qcom/sdm845.dtsi | 1 + 1 file changed, 1 insertion(+) -- 2.1.4 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 23260a0..71d6f91 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -3118,6 +3118,7 @@ rpmhpd: power-controller { compatible = "qcom,sdm845-rpmhpd"; #power-domain-cells = <1>; + #cooling-cells = <2>; operating-points-v2 = <&rpmhpd_opp_table>; rpmhpd_opp_table: opp-table {