]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
arm64: dts: marvell: add interrupt support to cp110 thermal node
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 12 Dec 2018 09:36:45 +0000 (10:36 +0100)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Wed, 6 Feb 2019 11:05:30 +0000 (12:05 +0100)
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>
arch/arm64/boot/dts/marvell/armada-cp110.dtsi

index b9d9f31e3ba1ff9a9fd81f89a75fde4a3d237e27..4d6e4a097f720e0f7ae39b3f6b79e6501458efc9 100644 (file)
         */
        thermal-zones {
                CP110_LABEL(thermal_ic): CP110_NODE_NAME(thermal-ic) {
-                       polling-delay-passive = <1000>;
-                       polling-delay = <1000>;
+                       polling-delay-passive = <0>; /* Interrupt driven */
+                       polling-delay = <0>; /* Interrupt driven */
 
                        thermal-sensors = <&CP110_LABEL(thermal) 0>;
 
-                       trips { };
+                       trips {
+                               CP110_LABEL(crit): crit {
+                                       temperature = <100000>; /* mC degrees */
+                                       hysteresis = <2000>; /* mC degrees */
+                                       type = "critical";
+                               };
+                       };
+
                        cooling-maps { };
                };
        };
                        CP110_LABEL(thermal): thermal-sensor@70 {
                                compatible = "marvell,armada-cp110-thermal";
                                reg = <0x70 0x10>;
+                               interrupts-extended =
+                                       <&CP110_LABEL(icu_sei) 116 IRQ_TYPE_LEVEL_HIGH>;
                                #thermal-sensor-cells = <1>;
                        };
                };