LINUX-SAMSUNG / arm64: dts: exynos: Add thermal-zones dt node for Exynos5433 SoC
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 26 Feb 2015 05:15:14 +0000 (14:15 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:40:20 +0000 (13:40 +0900)
This patch adds the thermal-zones devicetree node for Exynos5433 SoC.
The thermal-zones has five thermal-zones and then each thermal-zone contains
each thermal-sensor to monitor the temperature of own IP. The {atlas0|apollo}_
thermal zone have the eight trip-points for interrupt method to detect the
over-temperature.

Cc: Kukjin Kim <kgene@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Inki Dae <inki.dae@samsung.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/exynos/exynos5433.dtsi

diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi
new file mode 100644 (file)
index 0000000..7ff7b0e
--- /dev/null
@@ -0,0 +1,231 @@
+/*
+ * Device tree sources for Exynos5433 thermal zone
+ *
+ * Copyright (c) 2015 Chanwoo Choi <cw00.choi@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <dt-bindings/thermal/thermal.h>
+
+/ {
+thermal-zones {
+       atlas0_thermal: atlas0-thermal {
+               thermal-sensors = <&tmu_atlas0>;
+               polling-delay-passive = <0>;
+               polling-delay = <0>;
+               trips {
+                       atlas0_alert_0: atlas0-alert-0 {
+                               temperature = <80000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas0_alert_1: atlas0-alert-1 {
+                               temperature = <85000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas0_alert_2: atlas0-alert-2 {
+                               temperature = <90000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas0_alert_3: atlas0-alert-3 {
+                               temperature = <95000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas0_alert_4: atlas0-alert-4 {
+                               temperature = <100000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas0_alert_5: atlas0-alert-5 {
+                               temperature = <105000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas0_alert_6: atlas0-alert-6 {
+                               temperature = <110000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+               };
+       };
+
+       atlas1_thermal: atlas1-thermal {
+               thermal-sensors = <&tmu_atlas1>;
+               polling-delay-passive = <0>;
+               polling-delay = <0>;
+               trips {
+                       atlas1_alert_0: atlas1-alert-0 {
+                               temperature = <80000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas1_alert_1: atlas1-alert-1 {
+                               temperature = <85000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas1_alert_2: atlas1-alert-2 {
+                               temperature = <90000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas1_alert_3: atlas1-alert-3 {
+                               temperature = <95000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas1_alert_4: atlas1-alert-4 {
+                               temperature = <100000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas1_alert_5: atlas1-alert-5 {
+                               temperature = <105000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       atlas1_alert_6: atlas1-alert-6 {
+                               temperature = <110000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+               };
+       };
+
+       g3d_thermal: g3d-thermal {
+               thermal-sensors = <&tmu_g3d>;
+               polling-delay-passive = <0>;
+               polling-delay = <0>;
+               trips {
+                       g3d_alert_0: g3d-alert-0 {
+                               temperature = <80000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       g3d_alert_1: g3d-alert-1 {
+                               temperature = <85000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       g3d_alert_2: g3d-alert-2 {
+                               temperature = <90000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       g3d_alert_3: g3d-alert-3 {
+                               temperature = <95000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       g3d_alert_4: g3d-alert-4 {
+                               temperature = <100000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       g3d_alert_5: g3d-alert-5 {
+                               temperature = <105000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       g3d_alert_6: g3d-alert-6 {
+                               temperature = <110000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+               };
+
+       };
+
+       apollo_thermal: apollo-thermal {
+               thermal-sensors = <&tmu_apollo>;
+               polling-delay-passive = <0>;
+               polling-delay = <0>;
+               trips {
+                       apollo_alert_0: apollo-alert-0 {
+                               temperature = <80000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       apollo_alert_1: apollo-alert-1 {
+                               temperature = <85000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       apollo_alert_2: apollo-alert-2 {
+                               temperature = <90000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       apollo_alert_3: apollo-alert-3 {
+                               temperature = <95000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       apollo_alert_4: apollo-alert-4 {
+                               temperature = <100000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       apollo_alert_5: apollo-alert-5 {
+                               temperature = <105000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       apollo_alert_6: apollo-alert-6 {
+                               temperature = <110000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+               };
+       };
+
+       isp_thermal: isp-thermal {
+               thermal-sensors = <&tmu_isp>;
+               polling-delay-passive = <0>;
+               polling-delay = <0>;
+               trips {
+                       isp_alert_0: isp-alert-0 {
+                               temperature = <80000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       isp_alert_1: isp-alert-1 {
+                               temperature = <85000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       isp_alert_2: isp-alert-2 {
+                               temperature = <90000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       isp_alert_3: isp-alert-3 {
+                               temperature = <95000>;  /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       isp_alert_4: isp-alert-4 {
+                               temperature = <100000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       isp_alert_5: isp-alert-5 {
+                               temperature = <105000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+                       isp_alert_6: isp-alert-6 {
+                               temperature = <110000>; /* millicelsius */
+                               hysteresis = <10000>;   /* millicelsius */
+                               type = "active";
+                       };
+               };
+       };
+};
+};
index 1fe0c23..faea1c6 100644 (file)
 };
 
 #include "exynos5433-pinctrl.dtsi"
+#include "exynos5433-tmu.dtsi"