forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/g…
…it/rzhang/linux Pull thermal management updates from Zhang Rui: "Highlights: - introduction of Dove thermal sensor driver. - introduction of Kirkwood thermal sensor driver. - introduction of intel_powerclamp thermal cooling device driver. - add interrupt and DT support for rcar thermal driver. - add thermal emulation support which allows platform thermal driver to do software/hardware emulation for thermal issues." * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: (36 commits) thermal: rcar: remove __devinitconst thermal: return an error on failure to register thermal class Thermal: rename thermal governor Kconfig option to avoid generic naming thermal: exynos: Use the new thermal trend type for quick cooling action. Thermal: exynos: Add support for temperature falling interrupt. Thermal: Dove: Add Themal sensor support for Dove. thermal: Add support for the thermal sensor on Kirkwood SoCs thermal: rcar: add Device Tree support thermal: rcar: remove machine_power_off() from rcar_thermal_notify() thermal: rcar: add interrupt support thermal: rcar: add read/write functions for common/priv data thermal: rcar: multi channel support thermal: rcar: use mutex lock instead of spin lock thermal: rcar: enable CPCTL to use hardware TSC deciding thermal: rcar: use parenthesis on macro Thermal: fix a build warning when CONFIG_THERMAL_EMULATION cleared Thermal: fix a wrong comment thermal: sysfs: Add a new sysfs node emul_temp for thermal emulation PM: intel_powerclamp: off by one in start_power_clamp() thermal: exynos: Miscellaneous fixes to support falling threshold interrupt ...
- Loading branch information
Showing
23 changed files
with
2,337 additions
and
269 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
Documentation/devicetree/bindings/thermal/dove-thermal.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
* Dove Thermal | ||
|
||
This driver is for Dove SoCs which contain a thermal sensor. | ||
|
||
Required properties: | ||
- compatible : "marvell,dove-thermal" | ||
- reg : Address range of the thermal registers | ||
|
||
The reg properties should contain two ranges. The first is for the | ||
three Thermal Manager registers, while the second range contains the | ||
Thermal Diode Control Registers. | ||
|
||
Example: | ||
|
||
thermal@10078 { | ||
compatible = "marvell,dove-thermal"; | ||
reg = <0xd001c 0x0c>, <0xd005c 0x08>; | ||
}; |
15 changes: 15 additions & 0 deletions
15
Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
* Kirkwood Thermal | ||
|
||
This version is for Kirkwood 88F8262 & 88F6283 SoCs. Other kirkwoods | ||
don't contain a thermal sensor. | ||
|
||
Required properties: | ||
- compatible : "marvell,kirkwood-thermal" | ||
- reg : Address range of the thermal registers | ||
|
||
Example: | ||
|
||
thermal@10078 { | ||
compatible = "marvell,kirkwood-thermal"; | ||
reg = <0x10078 0x4>; | ||
}; |
29 changes: 29 additions & 0 deletions
29
Documentation/devicetree/bindings/thermal/rcar-thermal.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
* Renesas R-Car Thermal | ||
|
||
Required properties: | ||
- compatible : "renesas,rcar-thermal" | ||
- reg : Address range of the thermal registers. | ||
The 1st reg will be recognized as common register | ||
if it has "interrupts". | ||
|
||
Option properties: | ||
|
||
- interrupts : use interrupt | ||
|
||
Example (non interrupt support): | ||
|
||
thermal@e61f0100 { | ||
compatible = "renesas,rcar-thermal"; | ||
reg = <0xe61f0100 0x38>; | ||
}; | ||
|
||
Example (interrupt support): | ||
|
||
thermal@e61f0000 { | ||
compatible = "renesas,rcar-thermal"; | ||
reg = <0xe61f0000 0x14 | ||
0xe61f0100 0x38 | ||
0xe61f0200 0x38 | ||
0xe61f0300 0x38>; | ||
interrupts = <0 69 4>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
EXYNOS EMULATION MODE | ||
======================== | ||
|
||
Copyright (C) 2012 Samsung Electronics | ||
|
||
Written by Jonghwa Lee <[email protected]> | ||
|
||
Description | ||
----------- | ||
|
||
Exynos 4x12 (4212, 4412) and 5 series provide emulation mode for thermal management unit. | ||
Thermal emulation mode supports software debug for TMU's operation. User can set temperature | ||
manually with software code and TMU will read current temperature from user value not from | ||
sensor's value. | ||
|
||
Enabling CONFIG_EXYNOS_THERMAL_EMUL option will make this support in available. | ||
When it's enabled, sysfs node will be created under | ||
/sys/bus/platform/devices/'exynos device name'/ with name of 'emulation'. | ||
|
||
The sysfs node, 'emulation', will contain value 0 for the initial state. When you input any | ||
temperature you want to update to sysfs node, it automatically enable emulation mode and | ||
current temperature will be changed into it. | ||
(Exynos also supports user changable delay time which would be used to delay of | ||
changing temperature. However, this node only uses same delay of real sensing time, 938us.) | ||
|
||
Exynos emulation mode requires synchronous of value changing and enabling. It means when you | ||
want to update the any value of delay or next temperature, then you have to enable emulation | ||
mode at the same time. (Or you have to keep the mode enabling.) If you don't, it fails to | ||
change the value to updated one and just use last succeessful value repeatedly. That's why | ||
this node gives users the right to change termerpature only. Just one interface makes it more | ||
simply to use. | ||
|
||
Disabling emulation mode only requires writing value 0 to sysfs node. | ||
|
||
|
||
TEMP 120 | | ||
| | ||
100 | | ||
| | ||
80 | | ||
| +----------- | ||
60 | | | | ||
| +-------------| | | ||
40 | | | | | ||
| | | | | ||
20 | | | +---------- | ||
| | | | | | ||
0 |______________|_____________|__________|__________|_________ | ||
A A A A TIME | ||
|<----->| |<----->| |<----->| | | ||
| 938us | | | | | | | ||
emulation : 0 50 | 70 | 20 | 0 | ||
current temp : sensor 50 70 20 sensor |
Oops, something went wrong.