From e9115bb75aed973444b2d9e090382168867d01af Mon Sep 17 00:00:00 2001 From: yunhua wei Date: Fri, 30 Nov 2018 14:12:30 +0800 Subject: [PATCH] dts: add third thermal zone for tl1 [1/1] 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 --- arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts | 46 +++++++++++++++++++++++++++ arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts | 46 +++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts b/arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts index 449d772..1ceb799 100644 --- a/arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts +++ b/arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts @@ -34,6 +34,7 @@ serial4 = &uart_AO_B; tsensor0 = &p_tsensor; tsensor1 = &d_tsensor; + tsensor2 = &s_tsensor; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; @@ -856,6 +857,23 @@ #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"; @@ -981,6 +999,34 @@ }; }; }; + 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*/ diff --git a/arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts b/arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts index 7f2291f..51d414c 100644 --- a/arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts +++ b/arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts @@ -34,6 +34,7 @@ serial4 = &uart_AO_B; tsensor0 = &p_tsensor; tsensor1 = &d_tsensor; + tsensor2 = &s_tsensor; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2; @@ -860,6 +861,23 @@ #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"; @@ -985,6 +1003,34 @@ }; }; }; + 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*/ -- 2.7.4