dts: add third thermal zone for tl1 [1/1]
authoryunhua wei <yunhua.wei@amlogic.com>
Fri, 30 Nov 2018 06:12:30 +0000 (14:12 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 4 Dec 2018 02:16:58 +0000 (18:16 -0800)
PD#SWPL-2608

Problem:
no third thermal zone

Solution:
add third thermal zone for tl1

Verify:
test pass on tl1_x301 and tl1_skt

Change-Id: Ic7ecc41b0866dff90ea3c3224a864160be6cdc04
Signed-off-by: Yunhua Wei <yunhua.wei@amlogic.com>
arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts

index 449d772..1ceb799 100644 (file)
@@ -34,6 +34,7 @@
                serial4 = &uart_AO_B;
                tsensor0 = &p_tsensor;
                tsensor1 = &d_tsensor;
+               tsensor2 = &s_tsensor;
                i2c0 = &i2c0;
                i2c1 = &i2c1;
                i2c2 = &i2c2;
                #thermal-sensor-cells = <1>;
        };
 
+       s_tsensor: s_tsensor@ff635000 {
+               compatible = "amlogic, r1p1-tsensor";
+               status = "okay";
+               reg = <0xff635000 0x50>,
+                       <0xff80026c 0x4>;
+               cal_type = <0x1>;
+               cal_a = <324>;
+               cal_b = <424>;
+               cal_c = <3159>;
+               cal_d = <9411>;
+               rtemp = <115000>;
+               interrupts = <0 38 0>;
+               clocks = <&clkc CLKID_TS_CLK_COMP>; /* CLKID_TS_COMP>;*/
+               clock-names = "ts_comp";
+               #thermal-sensor-cells = <1>;
+       };
+
        meson_cooldev: meson-cooldev@0 {
                status = "okay";
                compatible = "amlogic, meson-cooldev";
                                };
                        };
                };
+               sar_thermal: sar_thermal {
+                       polling-delay = <1000>;
+                       polling-delay-passive = <250>;
+                       sustainable-power = <1460>;
+                       thermal-sensors = <&s_tsensor 2>;
+                       trips {
+                               sswitch_on: trip-point@0 {
+                                       temperature = <60000>;
+                                       hysteresis = <5000>;
+                                       type = "passive";
+                               };
+                               scontrol: trip-point@1 {
+                                       temperature = <75000>;
+                                       hysteresis = <5000>;
+                                       type = "passive";
+                               };
+                               shot: trip-point@2 {
+                                       temperature = <85000>;
+                                       hysteresis = <5000>;
+                                       type = "hot";
+                               };
+                               scritical: trip-point@3 {
+                                       temperature = <110000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
        };/*thermal zone end*/
 
        /*DCDC for MP8756GD*/
index 7f2291f..51d414c 100644 (file)
@@ -34,6 +34,7 @@
                serial4 = &uart_AO_B;
                tsensor0 = &p_tsensor;
                tsensor1 = &d_tsensor;
+               tsensor2 = &s_tsensor;
                i2c0 = &i2c0;
                i2c1 = &i2c1;
                i2c2 = &i2c2;
                #thermal-sensor-cells = <1>;
        };
 
+       s_tsensor: s_tsensor@ff635000 {
+               compatible = "amlogic, r1p1-tsensor";
+               status = "okay";
+               reg = <0xff635000 0x50>,
+                       <0xff80026c 0x4>;
+               cal_type = <0x1>;
+               cal_a = <324>;
+               cal_b = <424>;
+               cal_c = <3159>;
+               cal_d = <9411>;
+               rtemp = <115000>;
+               interrupts = <0 38 0>;
+               clocks = <&clkc CLKID_TS_CLK_COMP>; /* CLKID_TS_COMP>;*/
+               clock-names = "ts_comp";
+               #thermal-sensor-cells = <1>;
+       };
+
        meson_cooldev: meson-cooldev@0 {
                status = "okay";
                compatible = "amlogic, meson-cooldev";
                                };
                        };
                };
+               sar_thermal: sar_thermal {
+                       polling-delay = <1000>;
+                       polling-delay-passive = <250>;
+                       sustainable-power = <1460>;
+                       thermal-sensors = <&s_tsensor 2>;
+                       trips {
+                               sswitch_on: trip-point@0 {
+                                       temperature = <60000>;
+                                       hysteresis = <5000>;
+                                       type = "passive";
+                               };
+                               scontrol: trip-point@1 {
+                                       temperature = <75000>;
+                                       hysteresis = <5000>;
+                                       type = "passive";
+                               };
+                               shot: trip-point@2 {
+                                       temperature = <85000>;
+                                       hysteresis = <5000>;
+                                       type = "hot";
+                               };
+                               scritical: trip-point@3 {
+                                       temperature = <110000>;
+                                       hysteresis = <1000>;
+                                       type = "critical";
+                               };
+                       };
+               };
        }; /*thermal zone end*/
 
        /*DCDC for MP8756GD*/