Skip to content

Commit 6562504

Browse files
Lukasz MajewskiKukjin Kim
authored andcommitted
ARM: dts: Trip points and sensor configuration data for exynos5440
This commit provides information about Exynos5440 device configuration. Previously this information was available in exynos_tmu_data.c file. Now it is available in the device tree. Such approach allows reusing some common code for thermal. Signed-off-by: Lukasz Majewski <[email protected]> Acked-by: Eduardo Valentin <[email protected]> Signed-off-by: Kukjin Kim <[email protected]>
1 parent 328829a commit 6562504

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Device tree sources for Exynos5440 TMU sensor configuration
3+
*
4+
* Copyright (c) 2014 Lukasz Majewski <[email protected]>
5+
*
6+
* This program is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License version 2 as
8+
* published by the Free Software Foundation.
9+
*
10+
*/
11+
12+
#include <dt-bindings/thermal/thermal_exynos.h>
13+
14+
#thermal-sensor-cells = <0>;
15+
samsung,tmu_gain = <5>;
16+
samsung,tmu_reference_voltage = <16>;
17+
samsung,tmu_noise_cancel_mode = <4>;
18+
samsung,tmu_efuse_value = <0x5d2d>;
19+
samsung,tmu_min_efuse_value = <16>;
20+
samsung,tmu_max_efuse_value = <76>;
21+
samsung,tmu_first_point_trim = <25>;
22+
samsung,tmu_second_point_trim = <70>;
23+
samsung,tmu_default_temp_offset = <25>;
24+
samsung,tmu_cal_type = <TYPE_ONE_POINT_TRIMMING>;
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Device tree sources for default Exynos5440 thermal zone definition
3+
*
4+
* Copyright (c) 2014 Lukasz Majewski <[email protected]>
5+
*
6+
* This program is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License version 2 as
8+
* published by the Free Software Foundation.
9+
*
10+
*/
11+
12+
polling-delay-passive = <0>;
13+
polling-delay = <0>;
14+
trips {
15+
cpu-alert-0 {
16+
temperature = <100000>; /* millicelsius */
17+
hysteresis = <0>; /* millicelsius */
18+
type = "active";
19+
};
20+
cpu-crit-0 {
21+
temperature = <1050000>; /* millicelsius */
22+
hysteresis = <0>; /* millicelsius */
23+
type = "critical";
24+
};
25+
};

0 commit comments

Comments
 (0)