Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4687597ybg; Tue, 29 Oct 2019 10:53:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyB8+cmxATmCgsad5s37VfdKrl+8K6XnNY7xcr68xLHRBLRphxb6TukMXIgSO/VAhh11P/6 X-Received: by 2002:a05:6402:643:: with SMTP id u3mr27245116edx.60.1572371635762; Tue, 29 Oct 2019 10:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572371635; cv=none; d=google.com; s=arc-20160816; b=m4R+cEW0fIkpwBcHwFyITai3haegAZp41LZr3T+hBVANJNve/Pt7Z/24hYcrP5E26R LGymqVYADBhTi3hCSecZmUQfocvvUBun9HqKbmY3N5wgwpSXj+QHJbvFL1ppw36c9GX0 OHblH3KZFhlpqhBVjUSDCt5TAtGFSsrlw9hhCImy/vkPjFLQR+kbDKA4kWXvvKh7Asew RYuJKWlp6YbJRIZAgqIHnqN0tu1/qWG+bM/8Psy1md/DkRzDL6xyn6vTxa9Q0MPsbfv3 2f81LfLzC5nxq8eC5ZGplisQa+jpZUApCoVv3blCWJrMvYzpGt5CCUHp3btWppACebl9 u3zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bFgI6PCYnFtMrrrLH686v9chJ+VqCMQ+IJTSsyF5Jso=; b=aM+dETi56StZnMC2PDmBZ0e91ytYXDcU5tydLJ1auSA1voBMW0YIOJwT6BSYXFMmEi fTbLMzjKgahMt2MkCk+u444AkBaUTWLDDzAiBjYsvXfjuXgmhIcEgzl9iioZmcqEwMlL iV7w0yJPXmHc2v/JObMNkrt/H4Vpg9NxAm/Po7gRYUZGPCApnyvqhPnolktrtEpwSIM0 FLQxj2S4nbCbWlguXpSCeBAJJ1MCndDvkPucs0U+0Vhj4ReFSSVkvWcblAXV8Tu4VM3M i8lr8m4UzL514YjnkPBlwjJlupcERk93CbJrAhVunL1+G7+IznJip7E+gepeXI45drB5 xMxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QfHmrtbt; 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 m55si10389155edc.17.2019.10.29.10.53.32; Tue, 29 Oct 2019 10:53:55 -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=QfHmrtbt; 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 S1728561AbfJ2KHj (ORCPT + 99 others); Tue, 29 Oct 2019 06:07:39 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:40010 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727569AbfJ2KHi (ORCPT ); Tue, 29 Oct 2019 06:07:38 -0400 Received: by mail-vs1-f68.google.com with SMTP id v10so8350972vsc.7 for ; Tue, 29 Oct 2019 03:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bFgI6PCYnFtMrrrLH686v9chJ+VqCMQ+IJTSsyF5Jso=; b=QfHmrtbtvSZb2PU9QiP2EXdWTD9a0Z8oWob6XqKZ2DRKNUXAOUY1MpXwqIOfgqKK1m lahvF0MffJkHVpvmWjp1b1/2fqPhp630BEvlCScMNYQZPMCucMThEOk/2e5m8heewsK+ zBUpVohpCP71dwpQxjWmdNnNuLSQQnvaxfeKq1Knc+Di5ZZcnbdyxjBMhIfNTyXgYXdX 2UtVR7vWuRVIB1n4zVsRuS6mEXihTLK8KpSqzDLS0z30+HA0F5aCnPYJq3WPPPfNE4VW x3+03LhvX2rrxeyV2hWG3kvj8VnWMmhNArN7KZjQelBRMshEF2vqzNr4NVm6OqH3xYoF 2wGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bFgI6PCYnFtMrrrLH686v9chJ+VqCMQ+IJTSsyF5Jso=; b=NVEGMXDdTephtoCuU9mfa29QGj9zKkpUgI4pCD6MjgGEhgE7xDb8WeSvmrUri6/Xl2 8/Y77jmfhGyctHl9b82cd+8aEG8CTPxUDV/ZhTBQiQJR5RncRDPqnaFob5pGheAi+k49 cKIWE4G/b0LfJWa2NFRW/DB/d8aWrDyKXWFOhCpyV1WDlU4mbFBTcw0D/6OE3s/ADoPY F3z0IE36fZjZw1H+KrA8dawZG+n3m3Z6eGdQj09OACRoSkdz0WFjBkuxDQTQL9krwW/3 +owYypRWYHFI9omFh8sCCP7diTmt06FHQMStdC6DvJkYdF5SUHnk/GU0d8yxVFq+crDV NMmQ== X-Gm-Message-State: APjAAAWOWpoWbUhaN5kN0fFKhvLBXLTnENcXMbagA7omRcSJd99KKH4Z m+LYHfio1MJDwWB9+41ohoS9/7kRMz8FJ98khAzTag== X-Received: by 2002:a05:6102:36d:: with SMTP id f13mr1235978vsa.34.1572343656910; Tue, 29 Oct 2019 03:07:36 -0700 (PDT) MIME-Version: 1.0 References: <1571254641-13626-1-git-send-email-thara.gopinath@linaro.org> <1571254641-13626-7-git-send-email-thara.gopinath@linaro.org> <5DA88892.5000408@linaro.org> <5DA89267.30806@linaro.org> <20191029013648.GB27045@bogus> In-Reply-To: <20191029013648.GB27045@bogus> From: Ulf Hansson Date: Tue, 29 Oct 2019 11:06:59 +0100 Message-ID: Subject: Re: [PATCH v3 6/7] dt-bindings: soc: qcom: Extend RPMh power controller binding to describe thermal warming device To: Rob Herring Cc: Thara Gopinath , Eduardo Valentin , Zhang Rui , Daniel Lezcano , Bjorn Andersson , Andy Gross , amit.kucheria@verdurent.com, Mark Rutland , "Rafael J. Wysocki" , Linux PM , DTML , linux-arm-msm , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Oct 2019 at 02:36, Rob Herring wrote: > > On Thu, Oct 17, 2019 at 12:10:15PM -0400, Thara Gopinath wrote: > > On 10/17/2019 11:43 AM, Ulf Hansson wrote: > > > On Thu, 17 Oct 2019 at 17:28, Thara Gopinath wrote: > > >> > > >> Hello Ulf, > > >> Thanks for the review! > > >> > > >> On 10/17/2019 05:04 AM, Ulf Hansson wrote: > > >>> On Wed, 16 Oct 2019 at 21:37, Thara Gopinath wrote: > > >>>> > > >>>> RPMh power controller hosts mx domain that can be used as thermal > > >>>> warming device. Add a sub-node to specify this. > > >>>> > > >>>> Signed-off-by: Thara Gopinath > > >>>> --- > > >>>> Documentation/devicetree/bindings/power/qcom,rpmpd.txt | 10 ++++++++++ > > >>>> 1 file changed, 10 insertions(+) > > >>>> > > >>>> diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.txt b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt > > >>>> index eb35b22..fff695d 100644 > > >>>> --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.txt > > >>>> +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt > > >>>> @@ -18,6 +18,16 @@ Required Properties: > > >>>> Refer to for the level values for > > >>>> various OPPs for different platforms as well as Power domain indexes > > >>>> > > >>>> += SUBNODES > > >>>> +RPMh alsp hosts power domains that can behave as thermal warming device. > > >>>> +These are expressed as subnodes of the RPMh. The name of the node is used > > >>>> +to identify the power domain and must therefor be "mx". > > >>>> + > > >>>> +- #cooling-cells: > > >>>> + Usage: optional > > >>>> + Value type: > > >>>> + Definition: must be 2 > > >>>> + > > >>> > > >>> Just wanted to express a minor thought about this. In general we use > > >>> subnodes of PM domain providers to represent the topology of PM > > >>> domains (subdomains), this is something different, which I guess is > > >>> fine. > > >>> > > >>> I assume the #cooling-cells is here tells us this is not a PM domain > > >>> provider, but a "cooling device provider"? > > >> Yep. > > >>> > > >>> Also, I wonder if it would be fine to specify "power-domains" here, > > >>> rather than using "name" as I think that is kind of awkward!? > > >> Do you mean "power-domain-names" ? I am using this to match against the > > >> genpd names defined in the provider driver. > > > > > > No. If you are using "power-domains" it means that you allow to > > > describe the specifier for the provider. > > Yep. But won't this look funny in DT ? The provider node will have a sub > > node with a power domain referencing to itself Like below: Is this ok ? > > > > rpmhpd: power-controller { > > compatible = "qcom,sdm845-rpmhpd"; > > #power-domain-cells = <1>; > > > > ... > > ... > > mx_cdev: mx { > > #cooling-cells = <2>; > > power-domains = <&rpmhpd SDM845_MX>; > > }; > > > > The whole concept here seems all wrong to me. Isn't it what's in the > power domain that's the cooling device. A CPU power domain is not a > cooling device, the CPU is. Or we wouldn't make a clock a cooling > device, but what the clock drives. Well, I don't think that's entirely correct description either. As I see it, it's really the actual PM domain (that manages voltages for a power island), that needs to stay in full power state and increase its voltage level, as to warm up some of the silicon. It's not a regular device, but more a characteristics of how the PM domain can be used. Kind regards Uffe