aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaesar Wang <caesar.wang@rock-chips.com>2014-11-23 23:59:01 -0500
committerHeiko Stuebner <heiko@sntech.de>2014-11-24 18:31:26 -0500
commitb67d6bc388236635377a07db432834b94a47cb5d (patch)
treeff61d23ebf898e9a5ba8ec8901bfc4a1fd41bde9
parent9774d96beb2a6454760a0cf5ff8f8f1ce56fc425 (diff)
ARM: dts: rockchip: add main thermal info to rk3288
If for some reason we are unable to shut it down in orderly fashion (kernel is stuck holding a lock or similar), then hardware TSHUT will reset it. If the temperature is over 95C over a period of time the thermal shutdown of the tsadc is invoked with can either reset the entire chip via the CRU, or notify the PMIC via a GPIO. This should be set in the specific board. Signed-off-by: Caesar Wang <caesar.wang@rock-chips.com> Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r--arch/arm/boot/dts/rk3288.dtsi27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index ebcd2d2eef74..acb6a2fba183 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -15,6 +15,7 @@
15#include <dt-bindings/interrupt-controller/arm-gic.h> 15#include <dt-bindings/interrupt-controller/arm-gic.h>
16#include <dt-bindings/pinctrl/rockchip.h> 16#include <dt-bindings/pinctrl/rockchip.h>
17#include <dt-bindings/clock/rk3288-cru.h> 17#include <dt-bindings/clock/rk3288-cru.h>
18#include <dt-bindings/thermal/thermal.h>
18#include "skeleton.dtsi" 19#include "skeleton.dtsi"
19 20
20/ { 21/ {
@@ -68,6 +69,7 @@
68 216000 900000 69 216000 900000
69 126000 900000 70 126000 900000
70 >; 71 >;
72 #cooling-cells = <2>; /* min followed by max */
71 clock-latency = <40000>; 73 clock-latency = <40000>;
72 clocks = <&cru ARMCLK>; 74 clocks = <&cru ARMCLK>;
73 }; 75 };
@@ -357,6 +359,25 @@
357 status = "disabled"; 359 status = "disabled";
358 }; 360 };
359 361
362 thermal-zones {
363 #include "rk3288-thermal.dtsi"
364 };
365
366 tsadc: tsadc@ff280000 {
367 compatible = "rockchip,rk3288-tsadc";
368 reg = <0xff280000 0x100>;
369 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
370 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
371 clock-names = "tsadc", "apb_pclk";
372 resets = <&cru SRST_TSADC>;
373 reset-names = "tsadc-apb";
374 pinctrl-names = "default";
375 pinctrl-0 = <&otp_out>;
376 #thermal-sensor-cells = <1>;
377 rockchip,hw-tshut-temp = <95000>;
378 status = "disabled";
379 };
380
360 usb_host0_ehci: usb@ff500000 { 381 usb_host0_ehci: usb@ff500000 {
361 compatible = "generic-ehci"; 382 compatible = "generic-ehci";
362 reg = <0xff500000 0x100>; 383 reg = <0xff500000 0x100>;
@@ -1016,6 +1037,12 @@
1016 }; 1037 };
1017 }; 1038 };
1018 1039
1040 tsadc {
1041 otp_out: otp-out {
1042 rockchip,pins = <0 10 RK_FUNC_1 &pcfg_pull_none>;
1043 };
1044 };
1045
1019 pwm0 { 1046 pwm0 {
1020 pwm0_pin: pwm0-pin { 1047 pwm0_pin: pwm0-pin {
1021 rockchip,pins = <7 0 RK_FUNC_1 &pcfg_pull_none>; 1048 rockchip,pins = <7 0 RK_FUNC_1 &pcfg_pull_none>;