aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/marvell/armada-ap806.dtsi
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-12-12 10:36:44 +0100
committerGregory CLEMENT <gregory.clement@bootlin.com>2019-02-06 12:02:54 +0100
commita3f3332f412fe26fee186fb8abdcb4c8770dcd91 (patch)
tree4b3e266238799dba3fdc56c8047057d7b6f44c00 /arch/arm64/boot/dts/marvell/armada-ap806.dtsi
parentLinux 5.0-rc1 (diff)
downloadlinux-dev-a3f3332f412fe26fee186fb8abdcb4c8770dcd91.tar.xz
linux-dev-a3f3332f412fe26fee186fb8abdcb4c8770dcd91.zip
arm64: dts: marvell: add interrupt support to ap806 thermal node
Add interrupt properties in the thermal node as well as a critical trip point in the thermal-zone. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Diffstat (limited to 'arch/arm64/boot/dts/marvell/armada-ap806.dtsi')
-rw-r--r--arch/arm64/boot/dts/marvell/armada-ap806.dtsi18
1 files changed, 15 insertions, 3 deletions
diff --git a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi
index 7d94c1fa592a..faca07de4d84 100644
--- a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi
@@ -266,6 +266,8 @@
ap_thermal: thermal-sensor@80 {
compatible = "marvell,armada-ap806-thermal";
reg = <0x80 0x10>;
+ interrupt-parent = <&sei>;
+ interrupts = <18>;
#thermal-sensor-cells = <1>;
};
};
@@ -276,16 +278,26 @@
* The thermal IP features one internal sensor plus, if applicable, one
* remote channel wired to one sensor per CPU.
*
+ * Only one thermal zone per AP/CP may trigger interrupts at a time, the
+ * first one that will have a critical trip point will be chosen.
+ *
* The cooling maps are always empty as there are no cooling devices.
*/
thermal-zones {
ap_thermal_ic: ap-thermal-ic {
- polling-delay-passive = <1000>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>; /* Interrupt driven */
+ polling-delay = <0>; /* Interrupt driven */
thermal-sensors = <&ap_thermal 0>;
- trips { };
+ trips {
+ ap_crit: ap-crit {
+ temperature = <100000>; /* mC degrees */
+ hysteresis = <2000>; /* mC degrees */
+ type = "critical";
+ };
+ };
+
cooling-maps { };
};