]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: BCM5301X: Add CPU thermal sensor and zone
authorRafał Miłecki <rafal@milecki.pl>
Fri, 14 Apr 2017 21:42:28 +0000 (23:42 +0200)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 12 Jun 2017 16:52:34 +0000 (09:52 -0700)
This uses CPU thermal sensor available on every Northstar chipset to
monitor temperature. We don't have any cooling or throttling so only a
critical trip was added.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Jon Mason <jon.mason@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm5301x.dtsi

index acee36a610047f69383990ebc980508ea6e47fd8..ffcbe49c8f390115165a131361c4c5e192f4c2e1 100644 (file)
@@ -349,6 +349,12 @@ genpll: genpll@1800c140 {
                                     "sata2";
        };
 
+       thermal: thermal@1800c2c0 {
+               compatible = "brcm,ns-thermal";
+               reg = <0x1800c2c0 0x10>;
+               #thermal-sensor-cells = <0>;
+       };
+
        srab: srab@18007000 {
                compatible = "brcm,bcm5301x-srab";
                reg = <0x18007000 0x1000>;
@@ -412,4 +418,24 @@ spi_nor: spi-nor@0 {
                        status = "disabled";
                };
        };
+
+       thermal-zones {
+               cpu_thermal: cpu-thermal {
+                       polling-delay-passive = <0>;
+                       polling-delay = <1000>;
+                       coefficients = <(-556) 418000>;
+                       thermal-sensors = <&thermal>;
+
+                       trips {
+                               cpu-crit {
+                                       temperature     = <125000>;
+                                       hysteresis      = <0>;
+                                       type            = "critical";
+                               };
+                       };
+
+                       cooling-maps {
+                       };
+               };
+       };
 };