From: Rob Herring <robh@kernel.org>
To: Thara Gopinath <thara.gopinath@linaro.org>
Cc: edubezval@gmail.com, rui.zhang@intel.com, ulf.hansson@linaro.org,
daniel.lezcano@linaro.org, bjorn.andersson@linaro.org,
agross@kernel.org, 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: Re: [PATCH 3/5] dt-bindings: thermal: Add generic power domain warming device binding
Date: Mon, 30 Sep 2019 09:42:05 -0500 [thread overview]
Message-ID: <20190930144205.GA11539@bogus> (raw)
In-Reply-To: <1568135676-9328-4-git-send-email-thara.gopinath@linaro.org>
On Tue, Sep 10, 2019 at 01:14:34PM -0400, Thara Gopinath wrote:
> Add binding to define power domains as thermal warming
> devices.
>
> Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
> ---
> .../bindings/thermal/pwr-domain-warming.txt | 32 ++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/thermal/pwr-domain-warming.txt
>
> diff --git a/Documentation/devicetree/bindings/thermal/pwr-domain-warming.txt b/Documentation/devicetree/bindings/thermal/pwr-domain-warming.txt
> new file mode 100644
> index 0000000..25fc568
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/thermal/pwr-domain-warming.txt
> @@ -0,0 +1,32 @@
> +* Generic power domain based thermal warming device.
> +
> +This binding describes the power domains that can be used as a
> +thermal warming device.
This looks like just a gathering of properties and way to instantiate
some driver.
I think this all belongs in the power domain provider. Make it a cooling
device and you should know which domains are relevant based on the
compatible (though perhaps we could consider a list in DT). If you want
to instantiate a separate driver to handle this, then make the power
domain driver do that.
Rob
> +
> +- compatible:
> + Usage: required
> + Value type: <string>
> + Definition: must be "thermal-power-domain-wdev"
> +
> +- #temp-reg-cells:
> + Usage: required
> + Value type: <u32>
> + Definition: Must be 2
> +
> +- power-domains:
> + Usage: required
> + Value type: <phandle>
> + Definition: reference to power-domains that match power-domain-names
> +
> +- power-domain-names:
> + Usage: required
> + Value type: <stringlist>
> + Definition: The power-domains that can behave as warming devices
> +
> +Example 1
> +thermal_wdev: rpmhpd_mx_wdev {
> + compatible = "thermal-power-domain-wdev";
> + #cooling-cells = <2>;
> + power-domains = <&rpmhpd SDM845_MX>;
> + power-domain-names = "mx";
> + };
> --
> 2.1.4
>
next prev parent reply other threads:[~2019-09-30 14:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-10 17:14 [PATCH v2 0/5] Introduce Power domain based warming device driver Thara Gopinath
2019-09-10 17:14 ` [PATCH v2 1/5] PM/Domains: Add support for retrieving genpd performance states information Thara Gopinath
2019-09-10 17:14 ` [PATCH v2 2/5] soc: qcom: rpmhpd: Introduce function to retrieve power domain performance state count Thara Gopinath
2019-09-10 17:14 ` [PATCH 3/5] dt-bindings: thermal: Add generic power domain warming device binding Thara Gopinath
2019-09-30 14:42 ` Rob Herring [this message]
2019-10-09 12:18 ` Thara Gopinath
2019-09-10 17:14 ` [PATCH 4/5] thermal: Add generic power domain warming device driver Thara Gopinath
2019-09-12 15:04 ` Ulf Hansson
2019-09-12 20:18 ` Thara Gopinath
2019-09-13 7:54 ` Ulf Hansson
2019-09-14 11:06 ` Thara Gopinath
2019-09-10 17:14 ` [PATCH 5/5] arm64: dts: qcom: Add node for RPMH power domain warming device on sdm845 Thara Gopinath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190930144205.GA11539@bogus \
--to=robh@kernel.org \
--cc=agross@kernel.org \
--cc=amit.kucheria@verdurent.com \
--cc=bjorn.andersson@linaro.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=edubezval@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=rjw@rjwysocki.net \
--cc=rui.zhang@intel.com \
--cc=thara.gopinath@linaro.org \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).