[PATCH v4 11/15] arm64: dts: qcs404: thermal: Add interrupt support

From: Amit Kucheria
Date: Fri Sep 20 2019 - 17:53:17 EST


Register upper-lower interrupt for the tsens controller.

Signed-off-by: Amit Kucheria <amit.kucheria@xxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/qcs404.dtsi | 42 +++++++++++++++-------------
1 file changed, 22 insertions(+), 20 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi
index 3d0789775009..065a60d50a07 100644
--- a/arch/arm64/boot/dts/qcom/qcs404.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi
@@ -280,6 +280,8 @@
nvmem-cells = <&tsens_caldata>;
nvmem-cell-names = "calib";
#qcom,sensors = <10>;
+ interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "uplow";
#thermal-sensor-cells = <1>;
};

@@ -1071,8 +1073,8 @@

thermal-zones {
aoss-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>;
+ polling-delay = <0>;

thermal-sensors = <&tsens 0>;

@@ -1086,8 +1088,8 @@
};

q6-hvx-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>;
+ polling-delay = <0>;

thermal-sensors = <&tsens 1>;

@@ -1101,8 +1103,8 @@
};

lpass-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>;
+ polling-delay = <0>;

thermal-sensors = <&tsens 2>;

@@ -1116,8 +1118,8 @@
};

wlan-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>;
+ polling-delay = <0>;

thermal-sensors = <&tsens 3>;

@@ -1131,8 +1133,8 @@
};

cluster-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>;
+ polling-delay = <0>;

thermal-sensors = <&tsens 4>;

@@ -1165,8 +1167,8 @@
};

cpu0-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>;
+ polling-delay = <0>;

thermal-sensors = <&tsens 5>;

@@ -1199,8 +1201,8 @@
};

cpu1-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>;
+ polling-delay = <0>;

thermal-sensors = <&tsens 6>;

@@ -1233,8 +1235,8 @@
};

cpu2-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>;
+ polling-delay = <0>;

thermal-sensors = <&tsens 7>;

@@ -1267,8 +1269,8 @@
};

cpu3-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>;
+ polling-delay = <0>;

thermal-sensors = <&tsens 8>;

@@ -1301,8 +1303,8 @@
};

gpu-thermal {
- polling-delay-passive = <250>;
- polling-delay = <1000>;
+ polling-delay-passive = <0>;
+ polling-delay = <0>;

thermal-sensors = <&tsens 9>;

--
2.17.1