From: "Wendy Ng" <wendy.ng@broadcom.com>
To: "Rob Herring" <rob.herring@calxeda.com>,
"Pawel Moll" <pawel.moll@arm.com>,
"Mark Rutland" <mark.rutland@arm.com>,
"Stephen Warren" <swarren@wwwdotorg.org>,
"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
"Eduardo Valentin" <eduardo.valentin@ti.com>,
"Kumar Gala" <galak@codeaurora.org>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org, "Christian Daudt" <bcm@fixthebug.org>,
"Markus Mayer" <mmayer@broadcom.com>,
"Tim Kryger" <tim.kryger@linaro.org>,
"Matt Porter" <matt.porter@linaro.org>,
"Wendy Ng" <wendy.ng@broadcom.com>
Subject: [PATCH V2 3/3] ARM: dts: Add TMON driver support to bcm281xx
Date: Tue, 5 Nov 2013 11:54:44 -0800 [thread overview]
Message-ID: <1383681284-17643-4-git-send-email-wendy.ng@broadcom.com> (raw)
In-Reply-To: <1383681284-17643-1-git-send-email-wendy.ng@broadcom.com>
This adds the support of Temperature Monitor (TMON) driver for
Broadcom bcm281xx SoCs to the DT node. This also adds the
thermal framework device-tree binding such that TMON driver
can be used within the thermal framework.
Signed-off-by: Wendy Ng <wendy.ng@broadcom.com>
Reviewed-by: Markus Mayer <mmayer@broadcom.com>
Reviewed-by: Christian Daudt <csd@broadcom.com>
Reviewed-by: Matt Porter <matt.porter@linaro.org>
Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
Acked-by: Kumar Gala <galak@codeaurora.org>
---
arch/arm/boot/dts/bcm11351-brt.dts | 4 ++++
arch/arm/boot/dts/bcm11351.dtsi | 29 +++++++++++++++++++++++++++++
arch/arm/boot/dts/bcm28155-ap.dts | 4 ++++
3 files changed, 37 insertions(+)
diff --git a/arch/arm/boot/dts/bcm11351-brt.dts b/arch/arm/boot/dts/bcm11351-brt.dts
index 5a269c7..c24fd12 100644
--- a/arch/arm/boot/dts/bcm11351-brt.dts
+++ b/arch/arm/boot/dts/bcm11351-brt.dts
@@ -43,6 +43,10 @@
status = "okay";
};
+ tmon: tmon@34008000 {
+ status = "okay";
+ };
+
usbotg@3f120000 {
status = "okay";
};
diff --git a/arch/arm/boot/dts/bcm11351.dtsi b/arch/arm/boot/dts/bcm11351.dtsi
index 29987e2..0f17beb 100644
--- a/arch/arm/boot/dts/bcm11351.dtsi
+++ b/arch/arm/boot/dts/bcm11351.dtsi
@@ -13,6 +13,7 @@
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/thermal/thermal.h>
#include "skeleton.dtsi"
@@ -25,6 +26,24 @@
bootargs = "console=ttyS0,115200n8";
};
+ thermal-zones {
+ cpu_thermal: cpu_thermal {
+ polling-delay-passive = <250>; /* msec */
+ polling-delay = <1000>; /* msec */
+
+ /* sensor */
+ thermal-sensors = <&tmon>;
+
+ trips {
+ cpu_crit: cpu_crit {
+ temperature = <105000>; /* mCelsius */
+ hysteresis = <2000>; /* mCelsius */
+ type = THERMAL_TRIP_CRITICAL;
+ };
+ };
+ };
+ };
+
gic: interrupt-controller@3ff00100 {
compatible = "arm,cortex-a9-gic";
#interrupt-cells = <3>;
@@ -285,6 +304,15 @@
};
};
+ tmon: tmon@34008000 {
+ compatible = "brcm,bcm11351-tmon", "brcm,kona-tmon";
+ reg = <0x34008000 0x0024>;
+ clocks = <&tmon_1m_clk>;
+ interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>;
+ #thermal-sensor-cells = <0>;
+ status = "disabled";
+ };
+
usbotg: usbotg@3f120000 {
compatible = "snps,dwc2";
reg = <0x3f120000 0x10000>;
@@ -305,4 +333,5 @@
compatible = "brcm,kona-usb2";
status = "disabled";
};
+
};
diff --git a/arch/arm/boot/dts/bcm28155-ap.dts b/arch/arm/boot/dts/bcm28155-ap.dts
index 02ebaaf..7151c25 100644
--- a/arch/arm/boot/dts/bcm28155-ap.dts
+++ b/arch/arm/boot/dts/bcm28155-ap.dts
@@ -63,6 +63,10 @@
status = "okay";
};
+ tmon: tmon@34008000 {
+ status = "okay";
+ };
+
usbotg@3f120000 {
status = "okay";
};
--
1.7.9.5
prev parent reply other threads:[~2013-11-05 19:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-05 19:54 [PATCH V2 0/3] thermal: bcm281xx: Add Temperature Monitor driver Wendy Ng
2013-11-05 19:54 ` [PATCH V2 1/3] " Wendy Ng
2013-11-05 20:15 ` Joe Perches
2013-11-05 19:54 ` [PATCH V2 2/3] ARM: configs:enable thermal framework for bcm281xx Wendy Ng
2013-11-05 19:54 ` Wendy Ng [this message]
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=1383681284-17643-4-git-send-email-wendy.ng@broadcom.com \
--to=wendy.ng@broadcom.com \
--cc=bcm@fixthebug.org \
--cc=devicetree@vger.kernel.org \
--cc=eduardo.valentin@ti.com \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=matt.porter@linaro.org \
--cc=mmayer@broadcom.com \
--cc=pawel.moll@arm.com \
--cc=rob.herring@calxeda.com \
--cc=swarren@wwwdotorg.org \
--cc=tim.kryger@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
all inboxes | Powered by JetHome®