Skip to content

Commit 83beed7

Browse files
committed
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal
Pull thermal fixes from Eduardo Valentin: "A couple of fixes for the thermal subsystem" * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal: dt-bindings: thermal: Remove "cooling-{min|max}-level" properties dt-bindings: thermal: remove no longer needed samsung thermal properties
2 parents 7e3cb16 + e04907d commit 83beed7

File tree

2 files changed

+6
-33
lines changed

2 files changed

+6
-33
lines changed

Documentation/devicetree/bindings/thermal/exynos-thermal.txt

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,6 @@ on the SoC (only first trip points defined in DT will be configured):
4949
- samsung,exynos5433-tmu: 8
5050
- samsung,exynos7-tmu: 8
5151

52-
Following properties are mandatory (depending on SoC):
53-
- samsung,tmu_gain: Gain value for internal TMU operation.
54-
- samsung,tmu_reference_voltage: Value of TMU IP block's reference voltage
55-
- samsung,tmu_noise_cancel_mode: Mode for noise cancellation
56-
- samsung,tmu_efuse_value: Default level of temperature - it is needed when
57-
in factory fusing produced wrong value
58-
- samsung,tmu_min_efuse_value: Minimum temperature fused value
59-
- samsung,tmu_max_efuse_value: Maximum temperature fused value
60-
- samsung,tmu_first_point_trim: First point trimming value
61-
- samsung,tmu_second_point_trim: Second point trimming value
62-
- samsung,tmu_default_temp_offset: Default temperature offset
63-
- samsung,tmu_cal_type: Callibration type
64-
6552
** Optional properties:
6653

6754
- vtmu-supply: This entry is optional and provides the regulator node supplying
@@ -78,7 +65,7 @@ Example 1):
7865
clocks = <&clock 383>;
7966
clock-names = "tmu_apbif";
8067
vtmu-supply = <&tmu_regulator_node>;
81-
#include "exynos4412-tmu-sensor-conf.dtsi"
68+
#thermal-sensor-cells = <0>;
8269
};
8370

8471
Example 2):
@@ -89,7 +76,7 @@ Example 2):
8976
interrupts = <0 58 0>;
9077
clocks = <&clock 21>;
9178
clock-names = "tmu_apbif";
92-
#include "exynos5440-tmu-sensor-conf.dtsi"
79+
#thermal-sensor-cells = <0>;
9380
};
9481

9582
Example 3): (In case of Exynos5420 "with misplaced TRIMINFO register")
@@ -99,7 +86,7 @@ Example 3): (In case of Exynos5420 "with misplaced TRIMINFO register")
9986
interrupts = <0 184 0>;
10087
clocks = <&clock 318>, <&clock 318>;
10188
clock-names = "tmu_apbif", "tmu_triminfo_apbif";
102-
#include "exynos4412-tmu-sensor-conf.dtsi"
89+
#thermal-sensor-cells = <0>;
10390
};
10491

10592
tmu_cpu3: tmu@1006c000 {
@@ -108,7 +95,7 @@ Example 3): (In case of Exynos5420 "with misplaced TRIMINFO register")
10895
interrupts = <0 185 0>;
10996
clocks = <&clock 318>, <&clock 319>;
11097
clock-names = "tmu_apbif", "tmu_triminfo_apbif";
111-
#include "exynos4412-tmu-sensor-conf.dtsi"
98+
#thermal-sensor-cells = <0>;
11299
};
113100

114101
tmu_gpu: tmu@100a0000 {
@@ -117,7 +104,7 @@ Example 3): (In case of Exynos5420 "with misplaced TRIMINFO register")
117104
interrupts = <0 215 0>;
118105
clocks = <&clock 319>, <&clock 318>;
119106
clock-names = "tmu_apbif", "tmu_triminfo_apbif";
120-
#include "exynos4412-tmu-sensor-conf.dtsi"
107+
#thermal-sensor-cells = <0>;
121108
};
122109

123110
Note: For multi-instance tmu each instance should have an alias correctly

Documentation/devicetree/bindings/thermal/thermal.txt

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ of heat dissipation). For example a fan's cooling states correspond to
5555
the different fan speeds possible. Cooling states are referred to by
5656
single unsigned integers, where larger numbers mean greater heat
5757
dissipation. The precise set of cooling states associated with a device
58-
(as referred to by the cooling-min-level and cooling-max-level
59-
properties) should be defined in a particular device's binding.
58+
should be defined in a particular device's binding.
6059
For more examples of cooling devices, refer to the example sections below.
6160

6261
Required properties:
@@ -69,15 +68,6 @@ Required properties:
6968
See Cooling device maps section below for more details
7069
on how consumers refer to cooling devices.
7170

72-
Optional properties:
73-
- cooling-min-level: An integer indicating the smallest
74-
Type: unsigned cooling state accepted. Typically 0.
75-
Size: one cell
76-
77-
- cooling-max-level: An integer indicating the largest
78-
Type: unsigned cooling state accepted.
79-
Size: one cell
80-
8171
* Trip points
8272

8373
The trip node is a node to describe a point in the temperature domain
@@ -226,8 +216,6 @@ cpus {
226216
396000 950000
227217
198000 850000
228218
>;
229-
cooling-min-level = <0>;
230-
cooling-max-level = <3>;
231219
#cooling-cells = <2>; /* min followed by max */
232220
};
233221
...
@@ -241,8 +229,6 @@ cpus {
241229
*/
242230
fan0: fan@48 {
243231
...
244-
cooling-min-level = <0>;
245-
cooling-max-level = <9>;
246232
#cooling-cells = <2>; /* min followed by max */
247233
};
248234
};

0 commit comments

Comments
 (0)