From patchwork Tue Sep 10 17:14:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 173545 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp6078664ilq; Tue, 10 Sep 2019 10:14:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFh40AFXM9+qAenJjVxkp4YBiUfEFr66dwmrGgLDetmG8QFseQbqiMR/QUYlKCgakGH8aA X-Received: by 2002:a05:6402:13d0:: with SMTP id a16mr31784175edx.154.1568135688734; Tue, 10 Sep 2019 10:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568135688; cv=none; d=google.com; s=arc-20160816; b=PM3HpZj1GvF4DG2wS6m7Ivt/ir5q/rlRTUAP9fJ2gGWoBOCn6n+1bbr+PFetdcr/vO B7Wnmsf32TvuItjDVmmiXOr/VRhEpAxvzaOV3JmrascVwmDv+F4yGjmUCMBQ8krwMJz6 cJf6JwJ4LC5wvbTe5XmuIzc8T9uZBkvyX/AS4RwPGGc6gq2rY/24eW3v2X2B2EJ8cDXy ZFEZHzYqywuIFs2DcVcapujFLo+CNAEZV+5wLxy8vgPCz17pu8CvQmEitdYv0z9abRGE jjoy2ZmGihkfAg0fRj0/4KOLXkieU+dyQ8TmBv51ehEGzk/EIk4qqd3L1LrSJfMQFH2n ztxQ== 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=9F/vvtUdvbyD33UWlhzTxkuCa0DWaFmi4SY1XMgTAuU=; b=i59e1Wcp02+aG66tSSmzAb4TkLGtkJuq+jtrTpcUQgMLOkRn1Z6Se9JsD5kbDhc97m 7rqqIMSaKr8P3CP+h5EgqG0efCICQrtfkbpV9ok6bpswUY5n2kTVd2MB2Np/b0/Gnwlj 04ykYxFYx/HM+bz2tWXxCN6BJNrWjYuBb6AhG2I8sPNzAmN5HVq5iwWJRabipKAG3Rv2 0rakSWBKKW52OXea1sqGj9It1F56v9I691pFgFVsGL0AIu58qxJVcpjyKMM3OjLausYb T3PJNBdZPffQDgN0/fcYvb5H6Q3LlpsA/Dfb4dI4p+pjcf6zjCCegnd9c80ZZGMyOYOh RnrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gjln9GbM; 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 s14si10962828edc.83.2019.09.10.10.14.48; Tue, 10 Sep 2019 10:14:48 -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=Gjln9GbM; 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 S2437040AbfIJROp (ORCPT + 15 others); Tue, 10 Sep 2019 13:14:45 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:45226 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437021AbfIJROo (ORCPT ); Tue, 10 Sep 2019 13:14:44 -0400 Received: by mail-qt1-f193.google.com with SMTP id r15so21608535qtn.12 for ; Tue, 10 Sep 2019 10:14:44 -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; bh=9F/vvtUdvbyD33UWlhzTxkuCa0DWaFmi4SY1XMgTAuU=; b=Gjln9GbM9nOOKTQSIjPm1CBoOEzG7NkuB+2lclA+7WWh/VkMsZYI/bKvD7rTE1SFvD ALgaaqvNXJv/Xs5Gsf38fEEA9nTD8Nhv+SIoUZg9ybNDKIbwJIUtA3xZh46E0GXp3x5b Homia22HCO/9NR9Dl1RqQOasekzh2zUH9G6YoP6ydTXU3WsJhoEJcs2G/mxxVWVyCDcZ 8YcTdb+RP1T9W45TqfYxF3SQGZotGlODA3b9JL7/scUQYvuE1jhHl7L+eiAcAFFhU2WH +W5/ph9mYomGBeW0c/EDzd3liwRoHle3Pvxb6NVYknmirH3EQscqTzeCGFdmP0906FSm 0v1A== 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=9F/vvtUdvbyD33UWlhzTxkuCa0DWaFmi4SY1XMgTAuU=; b=Trt7kJjdqRAN4FUz+4qDFf8XtddCRmDPKKCx+5hukpuiEnck9w59+CZwUDmsX1XxzH 2+6635LgbqOAJXiYfqSWovtc0YNvWLpedsjMZfJj7kf3W8iTnCK/YLkuI3545cCoBe2K AvFSEDdAQiLhd/yhd+g4knaTkdDfqDUuYcPXZ6fCAqIFLFYw8Ds2jcWOAOmjh3yXefqM imQRUxC1+cENxDr/RF9kmfqXcovMYeEtr92Z7S0P93ujLF7/GDOFUDCByKHsPJAwquyY Lk0Y5RBe1R9HUoyuWc18iJ1oukq9/y6Pp2Ph0GprY0ovgn0HsMq/kapnECvhEpxlIWSa 0uMQ== X-Gm-Message-State: APjAAAW2/Bxes70KKlRwON0uom1a4iK8x0RPBm19+ER9KLhYDxQow2pp GJ2mZfWtF/vm7eooQFnol6Jxgg== X-Received: by 2002:a0c:db94:: with SMTP id m20mr18626455qvk.142.1568135683409; Tue, 10 Sep 2019 10:14:43 -0700 (PDT) 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 g45sm3400713qtc.9.2019.09.10.10.14.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Sep 2019 10:14:42 -0700 (PDT) From: Thara Gopinath To: edubezval@gmail.com, rui.zhang@intel.com, ulf.hansson@linaro.org, daniel.lezcano@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.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 4/5] thermal: Add generic power domain warming device driver. Date: Tue, 10 Sep 2019 13:14:35 -0400 Message-Id: <1568135676-9328-5-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1568135676-9328-1-git-send-email-thara.gopinath@linaro.org> References: <1568135676-9328-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 Resources modeled as power domains in linux kenrel can be used to warm the SoC(eg. mx power domain on sdm845). To support this feature, introduce a generic power domain warming device driver that can be plugged into the thermal framework (The thermal framework itself requires further modifiction to support a warming device in place of a cooling device. Those extensions are not introduced in this patch series). Signed-off-by: Thara Gopinath --- v1->v2: - Make power domain based warming device driver a generic driver in the thermal framework. v1 implemented this as a Qualcomm specific driver. - Rename certain variables as per review suggestions on the mailing list. drivers/thermal/Kconfig | 11 +++ drivers/thermal/Makefile | 2 + drivers/thermal/pwr_domain_warming.c | 174 +++++++++++++++++++++++++++++++++++ 3 files changed, 187 insertions(+) create mode 100644 drivers/thermal/pwr_domain_warming.c -- 2.1.4 diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 9966364..eeb6018 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -187,6 +187,17 @@ config DEVFREQ_THERMAL If you want this support, you should say Y here. +config PWR_DOMAIN_WARMING_THERMAL + bool "Power Domain based warming device" + depends on PM_GENERIC_DOMAINS + depends on PM_GENERIC_DOMAINS_OF + help + This implements the generic power domain based warming + mechanism through increasing the performance state of + a power domain. + + If you want this support, you should say Y here. + config THERMAL_EMULATION bool "Thermal emulation mode support" help diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile index 74a37c7..382c64a 100644 --- a/drivers/thermal/Makefile +++ b/drivers/thermal/Makefile @@ -27,6 +27,8 @@ thermal_sys-$(CONFIG_CLOCK_THERMAL) += clock_cooling.o # devfreq cooling thermal_sys-$(CONFIG_DEVFREQ_THERMAL) += devfreq_cooling.o +thermal_sys-$(CONFIG_PWR_DOMAIN_WARMING_THERMAL) += pwr_domain_warming.o + # platform thermal drivers obj-y += broadcom/ obj-$(CONFIG_THERMAL_MMIO) += thermal_mmio.o diff --git a/drivers/thermal/pwr_domain_warming.c b/drivers/thermal/pwr_domain_warming.c new file mode 100644 index 0000000..3dd792b --- /dev/null +++ b/drivers/thermal/pwr_domain_warming.c @@ -0,0 +1,174 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2019, Linaro Ltd + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +struct pd_warming_device { + struct thermal_cooling_device *cdev; + struct device *dev; + int max_state; + int cur_state; + bool runtime_resumed; +}; + +static const struct of_device_id pd_wdev_match_table[] = { + { .compatible = "thermal-power-domain-wdev", .data = NULL }, + { } +}; +MODULE_DEVICE_TABLE(of, pd_wdev_match_table); + +static int pd_wdev_get_max_state(struct thermal_cooling_device *cdev, + unsigned long *state) +{ + struct pd_warming_device *pd_wdev = cdev->devdata; + + *state = pd_wdev->max_state; + return 0; +} + +static int pd_wdev_get_cur_state(struct thermal_cooling_device *cdev, + unsigned long *state) +{ + struct pd_warming_device *pd_wdev = cdev->devdata; + + *state = dev_pm_genpd_get_performance_state(pd_wdev->dev); + + return 0; +} + +static int pd_wdev_set_cur_state(struct thermal_cooling_device *cdev, + unsigned long state) +{ + struct pd_warming_device *pd_wdev = cdev->devdata; + struct device *dev = pd_wdev->dev; + int ret; + + ret = dev_pm_genpd_set_performance_state(dev, state); + + if (ret) + return ret; + + if (state && !pd_wdev->runtime_resumed) { + ret = pm_runtime_get_sync(dev); + pd_wdev->runtime_resumed = true; + } else if (!state && pd_wdev->runtime_resumed) { + ret = pm_runtime_put(dev); + pd_wdev->runtime_resumed = false; + } + + return ret; +} + +static struct thermal_cooling_device_ops pd_warming_device_ops = { + .get_max_state = pd_wdev_get_max_state, + .get_cur_state = pd_wdev_get_cur_state, + .set_cur_state = pd_wdev_set_cur_state, +}; + +static int pd_wdev_create(struct device *dev, const char *name) +{ + struct pd_warming_device *pd_wdev; + int state_count; + + pd_wdev = devm_kzalloc(dev, sizeof(*pd_wdev), GFP_KERNEL); + if (!pd_wdev) + return -ENOMEM; + + state_count = dev_pm_genpd_performance_state_count(dev); + if (state_count < 0) + return state_count; + + pd_wdev->dev = dev; + pd_wdev->max_state = state_count - 1; + pd_wdev->runtime_resumed = false; + + pm_runtime_enable(dev); + + pd_wdev->cdev = thermal_of_cooling_device_register + (dev->of_node, name, + pd_wdev, + &pd_warming_device_ops); + if (IS_ERR(pd_wdev->cdev)) { + dev_err(dev, "unable to register %s cooling device\n", name); + pm_runtime_disable(dev); + + return PTR_ERR(pd_wdev->cdev); + } + + return 0; +} + +static int pd_wdev_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev, *pd_dev; + const char *pd_name; + int id, count, ret = 0; + + count = of_count_phandle_with_args(dev->of_node, "power-domains", + "#power-domain-cells"); + + if (count > 1) { + for (id = 0; id < count; id++) { + ret = of_property_read_string_index + (dev->of_node, "power-domain-names", + id, &pd_name); + if (ret) { + dev_err(dev, "Error reading the power domain name %d\n", ret); + continue; + } + + pd_dev = dev_pm_domain_attach_by_id(dev, id); + if (IS_ERR(pd_dev)) { + dev_err(dev, "Error attaching power domain %s %ld\n", pd_name, PTR_ERR(pd_dev)); + continue; + } + + ret = pd_wdev_create(pd_dev, pd_name); + if (ret) { + dev_err(dev, "Error building cooling device %s %d\n", pd_name, ret); + dev_pm_domain_detach(pd_dev, false); + continue; + } + } + } else if (count == 1) { + ret = of_property_read_string_index(dev->of_node, + "power-domain-names", + 0, &pd_name); + if (ret) { + dev_err(dev, "Error reading the power domain name %d\n", ret); + goto exit; + } + + ret = pd_wdev_create(dev, pd_name); + if (ret) { + dev_err(dev, "Error building cooling device %s %d\n", pd_name, ret); + goto exit; + } + } else { + ret = -EINVAL; + } + +exit: + return ret; +} + +static struct platform_driver pd_wdev_driver = { + .driver = { + .name = "qcom-rpmhpd-cdev", + .of_match_table = pd_wdev_match_table, + }, + .probe = pd_wdev_probe, +}; +module_platform_driver(pd_wdev_driver); + +MODULE_DESCRIPTION("Qualcomm RPMHPD cooling device driver"); +MODULE_LICENSE("GPL v2"); From patchwork Tue Sep 10 17:14:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 173547 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp6078742ilq; Tue, 10 Sep 2019 10:14:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmKf7+4dyP1JPN04UoJ6zxfFvX/yKtKQ/V2QD/kEYif4+pRl3zUSmmsmcqM83TgWqqM34g X-Received: by 2002:a17:906:44b:: with SMTP id e11mr22259558eja.26.1568135692396; Tue, 10 Sep 2019 10:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568135692; cv=none; d=google.com; s=arc-20160816; b=L99BEQkYbYih2ODjT/1uZCid05nRA4aPo1dHLcMp9X9KPL3d8mPimuf63gBSSCge5E XjUb7gin52aOhl9/s6YxcgikfQpnep4FXhidUK3yqzJwZwXvOOdr8oJBgSUAAqAeEgup uTS2IihSD5OW4iELfIcp1lv0DdzAZiOUZvyxNAwWZ1j2QRaj1STLXl5OC6vjkkyb5Qsp zqjl4jQn5qf70B4z7IQP6y1JAD17Ob1aQYNuytwd8woy+X5ij64lxynMagZ2Jv5muqfd jOWDQWS+tN0HiCm0nw+GBFPZkC5ABhZj3OcYh+f99jMKCTfKjQm4S8HDEfekg2ie2OpO 8nwQ== 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=AU+QsjQ4gYWceRGENzlR0Louo13bejD+8gOVOvF6PUY=; b=aLQyzQcuHfq8U1erHrUZRytHGBT+KFBxqqx+GQuPpYR+LT2BYmjO5fNHbvMTgK1+DC 91eCSUbLL2a2Q1+g40MswsBfgiaHlCXbWUr5Htpkn+gvUYf4j6GOV1oIS3fcW6XDX5ey /1Nd2jIpUPuQeQ8QWgwopiIEzIrUx7DpgnRFisR2zHCt3rQHd0PzTsX/o8SPE3cY2Wxb 40gUB6yh57d7rJyG4JYHNxM0jYbz4AxofqaILxBJ9FkITupCSi9hIQHcQI8fnseDEA3T oICpYF1eANQt31odmhVuLO1K7m20Fd129jcLPKBlvl62J2ef06daB5ywut2PE58oyc3Q xykg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="m/FgOeOk"; 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 s14si10962828edc.83.2019.09.10.10.14.52; Tue, 10 Sep 2019 10:14:52 -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="m/FgOeOk"; 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 S2437019AbfIJROv (ORCPT + 15 others); Tue, 10 Sep 2019 13:14:51 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:43800 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437021AbfIJROq (ORCPT ); Tue, 10 Sep 2019 13:14:46 -0400 Received: by mail-qk1-f193.google.com with SMTP id h126so10117195qke.10 for ; Tue, 10 Sep 2019 10:14:45 -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; bh=AU+QsjQ4gYWceRGENzlR0Louo13bejD+8gOVOvF6PUY=; b=m/FgOeOkaOKNggzNTPEtFXREeobHykEFFFvTpQDO0RpQvNSHhp2AtqgVHN+UjyG80W WWG3b1uQfUUzTJ0Qo0bdgjfsRy05PbvlFclgN1DETTKoJ7t0Wb5bOc7w1Fpe/jxitCOY p49Ll9S6JRw2bxMrZ9pnvQuhK8+28N+ndBI64dUvqY0TO34orTLL+Rh9f+jACW4cQ2pN SZrMhm6B3WoK9PQjDXnZ9/yDV3xkCZb83uJsXllPYdERjtYsYUDvl3Oh1VG8p8TtRgbv Jire4fF4GaSvB0FgRhk+IkaXFKDd82DB8Q9WOysgl/zMV8MGI+jeCrGm5beLdXCgtnl/ t4rw== 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=AU+QsjQ4gYWceRGENzlR0Louo13bejD+8gOVOvF6PUY=; b=RmTvt6tMNAM7nz+AJe2JQqD0jVXvpbvX+zSD7sWxJ5FswGIGaXUazpJQRy6JdOcJ/6 tk3MPN6Upokd4J76yzq7ERdYy4H+cCmTpea6r6mSh68jDjFsw54vu1e5LeZLJUCc7dYS 1mfiG6v5wdemUHu2LOuP0BIhmvfwRR7vgFgfg0ci7MWAOXJ1MtM7NBVxFf0ofhTsOB27 hnLfNTD1CM5B3DRfsuQgKr7ybLXPd5syDRmRGNnQFsks8cuiGGXe8bipWbCuqkbqIMP+ hBkLHWntWIfeJobfdduuTr+VksxwXA8kRoN8SoFEMZQ0S6Cp1j0FQy7gIio7qGIoCWdK vjJQ== X-Gm-Message-State: APjAAAXs2awwItYRDOqZQPcqMqvyJ4u4ZlMVE9FtmBSCiXyqVXNFSEnF ApesoxfKH1sK8DFdQXcXVrIhMQ== X-Received: by 2002:a37:660c:: with SMTP id a12mr30467195qkc.70.1568135684689; Tue, 10 Sep 2019 10:14:44 -0700 (PDT) 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 g45sm3400713qtc.9.2019.09.10.10.14.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Sep 2019 10:14:44 -0700 (PDT) From: Thara Gopinath To: edubezval@gmail.com, rui.zhang@intel.com, ulf.hansson@linaro.org, daniel.lezcano@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.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 5/5] arm64: dts: qcom: Add node for RPMH power domain warming device on sdm845. Date: Tue, 10 Sep 2019 13:14:36 -0400 Message-Id: <1568135676-9328-6-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1568135676-9328-1-git-send-email-thara.gopinath@linaro.org> References: <1568135676-9328-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 power domains that can be used to warm up the SoC. Add nodes for these domains on sdm845 (mx power domain). Signed-off-by: Thara Gopinath --- v1->v2: - Change the dt-entries to reflect the newly introduced generic power domain warming device. arch/arm64/boot/dts/qcom/sdm845.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.1.4 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index f406a43..0a83263 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -3284,6 +3284,13 @@ }; }; + thermal_wdev: rpmhpd_mx_wdev { + compatible = "thermal-power-domain-wdev"; + #cooling-cells = <2>; + power-domains = <&rpmhpd SDM845_MX>; + power-domain-names = "mx"; + }; + thermal-zones { cpu0-thermal { polling-delay-passive = <250>;