]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ARM: dts: apq8064: Add thermal cooling maps
authorGeorgi Djakov <georgi.djakov@linaro.org>
Wed, 26 Aug 2015 15:19:47 +0000 (18:19 +0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 6 Apr 2018 06:06:53 +0000 (06:06 +0000)
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Conflicts:
arch/arm/boot/dts/qcom-apq8064.dtsi

arch/arm/boot/dts/qcom-apq8064.dtsi

index 1330d74caff854e3401e01203594b0082f337376..28289402dd85506a83240da985a288beb24aca4e 100644 (file)
@@ -8,6 +8,8 @@
 #include <dt-bindings/soc/qcom,gsbi.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/thermal/thermal.h>
+
 / {
        model = "Qualcomm APQ8064";
        compatible = "qcom,apq8064";
@@ -40,6 +42,9 @@
                        clocks = <&kraitcc 0>;
                        clock-names = "cpu";
                        clock-latency = <100000>;
+                       cooling-min-level = <0>;
+                       cooling-max-level = <7>;
+                       #cooling-cells = <2>;
                };
 
                CPU1: cpu@1 {
@@ -54,6 +59,9 @@
                        clocks = <&kraitcc 1>;
                        clock-names = "cpu";
                        clock-latency = <100000>;
+                       cooling-min-level = <0>;
+                       cooling-max-level = <7>;
+                       #cooling-cells = <2>;
                };
 
                CPU2: cpu@2 {
@@ -68,6 +76,9 @@
                        clocks = <&kraitcc 2>;
                        clock-names = "cpu";
                        clock-latency = <100000>;
+                       cooling-min-level = <0>;
+                       cooling-max-level = <7>;
+                       #cooling-cells = <2>;
                };
 
                CPU3: cpu@3 {
@@ -82,6 +93,9 @@
                        clocks = <&kraitcc 3>;
                        clock-names = "cpu";
                        clock-latency = <100000>;
+                       cooling-min-level = <0>;
+                       cooling-max-level = <7>;
+                       #cooling-cells = <2>;
                };
 
                L2: l2-cache {
                };
        };
 
+       thermal-zones {
+               cpu-thermal0 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <1000>;
+
+                       thermal-sensors = <&tsens 7>;
+
+                       trips {
+                               cpu_alert0: trip@0 {
+                                       temperature = <75000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               cpu_crit0: trip@1 {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&cpu_alert0>;
+                                       cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+               };
+
+               cpu-thermal1 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <1000>;
+
+                       thermal-sensors = <&tsens 8>;
+
+                       trips {
+                               cpu_alert1: trip@0 {
+                                       temperature = <75000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               cpu_crit1: trip@1 {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&cpu_alert1>;
+                                       cooling-device = <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+               };
+
+               cpu-thermal2 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <1000>;
+
+                       thermal-sensors = <&tsens 9>;
+
+                       trips {
+                               cpu_alert2: trip@0 {
+                                       temperature = <75000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               cpu_crit2: trip@1 {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&cpu_alert2>;
+                                       cooling-device = <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+               };
+
+               cpu-thermal3 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <1000>;
+
+                       thermal-sensors = <&tsens 10>;
+
+                       trips {
+                               cpu_alert3: trip@0 {
+                                       temperature = <75000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               cpu_crit3: trip@1 {
+                                       temperature = <95000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&cpu_alert3>;
+                                       cooling-device = <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
+               };
+       };
+
        cpu-pmu {
                compatible = "qcom,krait-pmu";
                interrupts = <1 10 0x304>;