mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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 <yunhua.wei@amlogic.com>
This commit is contained in:
@@ -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*/
|
||||
|
||||
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user