Commit a3f3332f authored by Miquel Raynal's avatar Miquel Raynal Committed by Gregory CLEMENT

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: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Acked-by: default avatarEduardo Valentin <edubezval@gmail.com>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
parent bfeffd15
...@@ -266,6 +266,8 @@ ap_syscon1: system-controller@6f8000 { ...@@ -266,6 +266,8 @@ ap_syscon1: system-controller@6f8000 {
ap_thermal: thermal-sensor@80 { ap_thermal: thermal-sensor@80 {
compatible = "marvell,armada-ap806-thermal"; compatible = "marvell,armada-ap806-thermal";
reg = <0x80 0x10>; reg = <0x80 0x10>;
interrupt-parent = <&sei>;
interrupts = <18>;
#thermal-sensor-cells = <1>; #thermal-sensor-cells = <1>;
}; };
}; };
...@@ -276,16 +278,26 @@ ap_thermal: thermal-sensor@80 { ...@@ -276,16 +278,26 @@ ap_thermal: thermal-sensor@80 {
* The thermal IP features one internal sensor plus, if applicable, one * The thermal IP features one internal sensor plus, if applicable, one
* remote channel wired to one sensor per CPU. * 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. * The cooling maps are always empty as there are no cooling devices.
*/ */
thermal-zones { thermal-zones {
ap_thermal_ic: ap-thermal-ic { ap_thermal_ic: ap-thermal-ic {
polling-delay-passive = <1000>; polling-delay-passive = <0>; /* Interrupt driven */
polling-delay = <1000>; polling-delay = <0>; /* Interrupt driven */
thermal-sensors = <&ap_thermal 0>; thermal-sensors = <&ap_thermal 0>;
trips { }; trips {
ap_crit: ap-crit {
temperature = <100000>; /* mC degrees */
hysteresis = <2000>; /* mC degrees */
type = "critical";
};
};
cooling-maps { }; cooling-maps { };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment