MLK-14972-04 dts: imx8: add thermal nodes for imx8qm/qxp
authorBai Ping <ping.bai@nxp.com>
Tue, 6 Jun 2017 06:02:21 +0000 (14:02 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:34 +0000 (15:22 -0500)
Add thermal device related dts node for i.MX8QM/QXP.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qm.dtsi
arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi

index dc598de..6e66ad9 100644 (file)
                };
        };
 
+       tsens: thermal-sensor {
+               compatible = "nxp,imx8qm-sc-tsens";
+               /* number of the temp sensor on the chip */
+               tsens-num = <5>;
+               #thermal-sensor-cells = <1>;
+       };
+
+       thermal-zones {
+               /* cpu thermal */
+               cpu-thermal0 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <2000>;
+                       /*the slope and offset of the temp sensor */
+                       thermal-sensors = <&tsens 0>;
+                       trips {
+                               cpu_alert0: trip0 {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               cpu_crit0: trip1 {
+                                       temperature = <110000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               cpu-thermal1 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <2000>;
+                       thermal-sensors = <&tsens 1>;
+                       trips {
+                               cpu_alert1: trip0 {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               cpu_crit1: trip1 {
+                                       temperature = <110000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               gpu-thermal0 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <2000>;
+                       thermal-sensors = <&tsens 2>;
+                       trips {
+                               gpu_alert0: trip0 {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               gpu_crit0: trip1 {
+                                       temperature = <110000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               gpu-thermal1 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <2000>;
+                       thermal-sensors = <&tsens 3>;
+                       trips {
+                               gpu_alert1: trip0 {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               gpu_crit1: trip1 {
+                                       temperature = <110000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+
+               drc-thermal0 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <2000>;
+                       thermal-sensors = <&tsens 4>;
+                       trips {
+                               drc_alert0: trip0 {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               drc_crit0: trip1 {
+                                       temperature = <110000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
+
        rtc: rtc {
                compatible = "fsl,imx-sc-rtc";
        };
index ea75a42..5c113a8 100644 (file)
                };
        };
 
+       tsens: thermal-sensor {
+               compatible = "nxp,imx8qxp-sc-tsens";
+               /* number of the temp sensor on the chip */
+               tsens-num = <1>;
+               #thermal-sensor-cells = <1>;
+       };
+
+       thermal-zones {
+               /* cpu thermal */
+               cpu-thermal0 {
+                       polling-delay-passive = <250>;
+                       polling-delay = <2000>;
+                       /*the slope and offset of the temp sensor */
+                       thermal-sensors = <&tsens 0>;
+                       trips {
+                               cpu_alert0: trip0 {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+                               cpu_crit0: trip1 {
+                                       temperature = <110000>;
+                                       hysteresis = <2000>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
+
        irqsteer_csi: irqsteer@58220000 {
                compatible = "nxp,imx-irqsteer";
                reg = <0x0 0x58220000 0x0 0x1000>;