summaryrefslogtreecommitdiff
path: root/target/linux/bcm53xx/patches-4.4/047-0020-ARM-dts-BCM5301X-Add-CPU-thermal-sensor-and-zone.patch
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2017-04-20 22:15:09 +0200
committerRafał Miłecki <rafal@milecki.pl>2017-05-09 11:18:39 +0200
commitd1e0cc8cd5b460df47a2316653c273e27ebf93b1 (patch)
treee9f59fc1b070afa71c1b358518a1c773cd98be78 /target/linux/bcm53xx/patches-4.4/047-0020-ARM-dts-BCM5301X-Add-CPU-thermal-sensor-and-zone.patch
parent86196830371c07c2b5721002f2ad500ca893076e (diff)
downloadmtk-20170518-d1e0cc8cd5b460df47a2316653c273e27ebf93b1.zip
mtk-20170518-d1e0cc8cd5b460df47a2316653c273e27ebf93b1.tar.gz
mtk-20170518-d1e0cc8cd5b460df47a2316653c273e27ebf93b1.tar.bz2
bcm53xx: backport DT patches for serial, thermal and MDIO
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/bcm53xx/patches-4.4/047-0020-ARM-dts-BCM5301X-Add-CPU-thermal-sensor-and-zone.patch')
-rw-r--r--target/linux/bcm53xx/patches-4.4/047-0020-ARM-dts-BCM5301X-Add-CPU-thermal-sensor-and-zone.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-4.4/047-0020-ARM-dts-BCM5301X-Add-CPU-thermal-sensor-and-zone.patch b/target/linux/bcm53xx/patches-4.4/047-0020-ARM-dts-BCM5301X-Add-CPU-thermal-sensor-and-zone.patch
new file mode 100644
index 0000000..461696e
--- /dev/null
+++ b/target/linux/bcm53xx/patches-4.4/047-0020-ARM-dts-BCM5301X-Add-CPU-thermal-sensor-and-zone.patch
@@ -0,0 +1,59 @@
+From e55d2c7272ff647efac4aecd895b20ee66e43519 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
+Date: Fri, 14 Apr 2017 23:42:28 +0200
+Subject: [PATCH] ARM: dts: BCM5301X: Add CPU thermal sensor and zone
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+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 | 26 ++++++++++++++++++++++++++
+ 1 file changed, 26 insertions(+)
+
+--- a/arch/arm/boot/dts/bcm5301x.dtsi
++++ b/arch/arm/boot/dts/bcm5301x.dtsi
+@@ -363,6 +363,12 @@
+ "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>;
+@@ -390,4 +396,24 @@
+
+ brcm,nand-has-wp;
+ };
++
++ 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 {
++ };
++ };
++ };
+ };