From: Amit Kucheria <amit.kucheria@linaro.org>
To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
swboyd@chromium.org, mka@chromium.org, daniel.lezcano@linaro.org,
Amit Kucheria <amit.kucheria@verdurent.com>,
Zhang Rui <rui.zhang@intel.com>
Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org
Subject: [RFC PATCH v1 0/3] Convert thermal bindings to yaml
Date: Mon, 24 Feb 2020 12:55:34 +0530 [thread overview]
Message-ID: <cover.1582528977.git.amit.kucheria@linaro.org> (raw)
Hi all,
Here is a series splitting up the thermal bindings into 3 separate bindings
in YAML, one each of the sensor, cooling-device and the thermal zones.
Since I was learning about YAML parsers while creating these bindings,
there are bound to be some issues.
I have to add that the bindings as they exist today, don't really follow
the "describe the hardware" model of devicetree. e.g. the entire
thermal-zone binding is a software abstraction to tie arbitrary,
board-specific trip points to cooling strategies. This doesn't fit well
into the model where the same SoC in two different form-factor devices e.g.
mobile and laptop, will have fairly different thermal profiles and might
benefit from different trip points and mitigation heuristics. I've started
some experiments with moving the thermal zone data to a board-specific
platform data that is used to initialise a "thermal zone driver".
In any case, if we ever move down that path, it'll probably end up being v2
of the binding, so this series is still relevant.
Please help review.
Regards,
Amit
Amit Kucheria (3):
dt-bindings: thermal: Add yaml bindings for thermal sensors
dt-bindings: thermal: Add yaml bindings for thermal cooling-devices
dt-bindings: thermal: Add yaml bindings for thermal zones
.../thermal/thermal-cooling-devices.yaml | 114 +++++++
.../bindings/thermal/thermal-sensor.yaml | 70 ++++
.../bindings/thermal/thermal-zones.yaml | 302 ++++++++++++++++++
3 files changed, 486 insertions(+)
create mode 100644 Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml
create mode 100644 Documentation/devicetree/bindings/thermal/thermal-sensor.yaml
create mode 100644 Documentation/devicetree/bindings/thermal/thermal-zones.yaml
--
2.20.1
next reply other threads:[~2020-02-24 7:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-24 7:25 Amit Kucheria [this message]
2020-02-24 7:25 ` [RFC PATCH v1 1/3] dt-bindings: thermal: Add yaml bindings for thermal sensors Amit Kucheria
2020-02-24 18:39 ` Rob Herring
2020-02-24 7:25 ` [RFC PATCH v1 2/3] dt-bindings: thermal: Add yaml bindings for thermal cooling-devices Amit Kucheria
2020-02-24 7:25 ` [RFC PATCH v1 3/3] dt-bindings: thermal: Add yaml bindings for thermal zones Amit Kucheria
2020-02-24 18:40 ` Rob Herring
2020-03-05 12:50 ` Amit Kucheria
2020-03-05 15:37 ` Rob Herring
2020-03-05 15:43 ` Amit Kucheria
2020-02-24 21:54 ` Rob Herring
2020-03-04 21:02 ` Amit Kucheria
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=cover.1582528977.git.amit.kucheria@linaro.org \
--to=amit.kucheria@linaro.org \
--cc=amit.kucheria@verdurent.com \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mka@chromium.org \
--cc=rui.zhang@intel.com \
--cc=swboyd@chromium.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).