From: Stefan Wahren <stefan.wahren@i2se.com>
To: Eduardo Valentin <edubezval@gmail.com>,
Zhang Rui <rui.zhang@intel.com>,
kernel@martin.sperl.org
Cc: "Eric Anholt" <eric@anholt.net>,
"Rob Herring" <robh+dt@kernel.org>,
"Frank Rowand" <frowand.list@gmail.com>,
"Florian Fainelli" <f.fainelli@gmail.com>,
"Rafał Miłecki" <rafal@milecki.pl>,
linux-rpi-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-pm@vger.kernel.org,
"Stefan Wahren" <stefan.wahren@i2se.com>
Subject: [PATCH V12 1/4] dt-bindings: Add thermal zone to bcm2835-thermal example
Date: Fri, 31 Mar 2017 20:03:03 +0000 [thread overview]
Message-ID: <1490990586-30898-2-git-send-email-stefan.wahren@i2se.com> (raw)
In-Reply-To: <1490990586-30898-1-git-send-email-stefan.wahren@i2se.com>
Add a thermal zone in order to make the example complete.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Rob Herring <robh@kernel.org>
---
.../bindings/thermal/brcm,bcm2835-thermal.txt | 32 +++++++++++++++++---
1 file changed, 28 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt b/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt
index 474531d..da8c5b7 100644
--- a/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt
+++ b/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt
@@ -3,15 +3,39 @@ Binding for Thermal Sensor driver for BCM2835 SoCs.
Required parameters:
-------------------
-compatible: should be one of: "brcm,bcm2835-thermal",
- "brcm,bcm2836-thermal" or "brcm,bcm2837-thermal"
-reg: Address range of the thermal registers.
-clocks: Phandle of the clock used by the thermal sensor.
+compatible: should be one of: "brcm,bcm2835-thermal",
+ "brcm,bcm2836-thermal" or "brcm,bcm2837-thermal"
+reg: Address range of the thermal registers.
+clocks: Phandle of the clock used by the thermal sensor.
+#thermal-sensor-cells: should be 0 (see thermal.txt)
Example:
+thermal-zones {
+ cpu_thermal: cpu-thermal {
+ polling-delay-passive = <0>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&thermal>;
+
+ trips {
+ cpu-crit {
+ temperature = <80000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+
+ coefficients = <(-538) 407000>;
+
+ cooling-maps {
+ };
+ };
+};
+
thermal: thermal@7e212000 {
compatible = "brcm,bcm2835-thermal";
reg = <0x7e212000 0x8>;
clocks = <&clocks BCM2835_CLOCK_TSENS>;
+ #thermal-sensor-cells = <0>;
};
--
1.7.9.5
next prev parent reply other threads:[~2017-03-31 20:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 20:03 [PATCH V12 0/4] thermal: bcm2835: add thermal driver for bcm2835 SoC Stefan Wahren
2017-03-31 20:03 ` Stefan Wahren [this message]
[not found] ` <1490990586-30898-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2017-03-31 20:03 ` [PATCH V12 2/4] ARM: dts: bcm283x: Add CPU thermal zone with 1 trip point Stefan Wahren
2017-04-01 16:37 ` Eduardo Valentin
2017-03-31 20:03 ` [PATCH V12 3/4] ARM64: dts: bcm2837: Define CPU thermal coefficients Stefan Wahren
2017-04-01 16:37 ` Eduardo Valentin
2017-03-31 20:03 ` [PATCH V12 4/4] thermal: bcm2835: add thermal driver for bcm2835 SoC Stefan Wahren
2017-03-31 21:22 ` Rafał Miłecki
2017-04-01 16:33 ` [PATCH V12 0/4] " Eduardo Valentin
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=1490990586-30898-2-git-send-email-stefan.wahren@i2se.com \
--to=stefan.wahren@i2se.com \
--cc=devicetree@vger.kernel.org \
--cc=edubezval@gmail.com \
--cc=eric@anholt.net \
--cc=f.fainelli@gmail.com \
--cc=frowand.list@gmail.com \
--cc=kernel@martin.sperl.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=rafal@milecki.pl \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.