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 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/…
…rzhang/linux Pull thermal management updates from Zhang Rui: - Fix a problem where orderly_shutdown() is called for multiple times due to multiple critical overheating events raised in a short period by platform thermal driver. (Keerthy) - Introduce a backup thermal shutdown mechanism, which invokes kernel_power_off()/emergency_restart() directly, after orderly_shutdown() being issued for certain amount of time(specified via Kconfig). This is useful in certain conditions that userspace may be unable to power off the system in a clean manner and leaves the system in a critical state, like in the middle of driver probing phase. (Keerthy) - Introduce a new interface in thermal devfreq_cooling code so that the driver can provide more precise data regarding actual power to the thermal governor every time the power budget is calculated. (Lukasz Luba) - Introduce BCM 2835 soc thermal driver and northstar thermal driver, within a new sub-folder. (Rafał Miłecki) - Introduce DA9062/61 thermal driver. (Steve Twiss) - Remove non-DT booting on TI-SoC driver. Also add support to fetching coefficients from DT. (Keerthy) - Refactorf RCAR Gen3 thermal driver. (Niklas Söderlund) - Small fix on MTK and intel-soc-dts thermal driver. (Dawei Chien, Brian Bian) * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: (25 commits) thermal: core: Add a back up thermal shutdown mechanism thermal: core: Allow orderly_poweroff to be called only once Thermal: Intel SoC DTS: Change interrupt request behavior trace: thermal: add another parameter 'power' to the tracing function thermal: devfreq_cooling: add new interface for direct power read thermal: devfreq_cooling: refactor code and add get_voltage function thermal: mt8173: minor mtk_thermal.c cleanups thermal: bcm2835: move to the broadcom subdirectory thermal: broadcom: ns: specify myself as MODULE_AUTHOR thermal: da9062/61: Thermal junction temperature monitoring driver Documentation: devicetree: thermal: da9062/61 TJUNC temperature binding thermal: broadcom: add Northstar thermal driver dt-bindings: thermal: add support for Broadcom's Northstar thermal thermal: bcm2835: add thermal driver for bcm2835 SoC dt-bindings: Add thermal zone to bcm2835-thermal example thermal: rcar_gen3_thermal: add suspend and resume support thermal: rcar_gen3_thermal: store device match data in private structure thermal: rcar_gen3_thermal: enable hardware interrupts for trip points thermal: rcar_gen3_thermal: record and check number of TSCs found thermal: rcar_gen3_thermal: check that TSC exists before memory allocation ...
- Loading branch information
Showing
25 changed files
with
1,305 additions
and
266 deletions.
There are no files selected for viewing
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
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,37 @@ | ||
* Broadcom Northstar Thermal | ||
|
||
This binding describes thermal sensor that is part of Northstar's DMU (Device | ||
Management Unit). | ||
|
||
Required properties: | ||
- compatible : Must be "brcm,ns-thermal" | ||
- reg : iomem address range of PVTMON registers | ||
- #thermal-sensor-cells : Should be <0> | ||
|
||
Example: | ||
|
||
thermal: thermal@1800c2c0 { | ||
compatible = "brcm,ns-thermal"; | ||
reg = <0x1800c2c0 0x10>; | ||
#thermal-sensor-cells = <0>; | ||
}; | ||
|
||
thermal-zones { | ||
cpu_thermal: cpu-thermal { | ||
polling-delay-passive = <0>; | ||
polling-delay = <1000>; | ||
coefficients = <(-556) 418000>; | ||
thermal-sensors = <&thermal>; | ||
|
||
trips { | ||
cpu-crit { | ||
temperature = <125000>; | ||
hysteresis = <0>; | ||
type = "critical"; | ||
}; | ||
}; | ||
|
||
cooling-maps { | ||
}; | ||
}; | ||
}; |
36 changes: 36 additions & 0 deletions
36
Documentation/devicetree/bindings/thermal/da9062-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,36 @@ | ||
* Dialog DA9062/61 TJUNC Thermal Module | ||
|
||
This module is part of the DA9061/DA9062. For more details about entire | ||
DA9062 and DA9061 chips see Documentation/devicetree/bindings/mfd/da9062.txt | ||
|
||
Junction temperature thermal module uses an interrupt signal to identify | ||
high THERMAL_TRIP_HOT temperatures for the PMIC device. | ||
|
||
Required properties: | ||
|
||
- compatible: should be one of the following valid compatible string lines: | ||
"dlg,da9061-thermal", "dlg,da9062-thermal" | ||
"dlg,da9062-thermal" | ||
|
||
Optional properties: | ||
|
||
- polling-delay-passive : Specify the polling period, measured in | ||
milliseconds, between thermal zone device update checks. | ||
|
||
Example: DA9062 | ||
|
||
pmic0: da9062@58 { | ||
thermal { | ||
compatible = "dlg,da9062-thermal"; | ||
polling-delay-passive = <3000>; | ||
}; | ||
}; | ||
|
||
Example: DA9061 using a fall-back compatible for the DA9062 onkey driver | ||
|
||
pmic0: da9061@58 { | ||
thermal { | ||
compatible = "dlg,da9061-thermal", "dlg,da9062-thermal"; | ||
polling-delay-passive = <3000>; | ||
}; | ||
}; |
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
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
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
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,16 @@ | ||
config BCM2835_THERMAL | ||
tristate "Thermal sensors on bcm2835 SoC" | ||
depends on ARCH_BCM2835 || COMPILE_TEST | ||
depends on HAS_IOMEM | ||
depends on THERMAL_OF | ||
help | ||
Support for thermal sensors on Broadcom bcm2835 SoCs. | ||
|
||
config BCM_NS_THERMAL | ||
tristate "Northstar thermal driver" | ||
depends on ARCH_BCM_IPROC || COMPILE_TEST | ||
help | ||
Northstar is a family of SoCs that includes e.g. BCM4708, BCM47081, | ||
BCM4709 and BCM47094. It contains DMU (Device Management Unit) block | ||
with a thermal sensor that allows checking CPU temperature. This | ||
driver provides support for it. |
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,2 @@ | ||
obj-$(CONFIG_BCM2835_THERMAL) += bcm2835_thermal.o | ||
obj-$(CONFIG_BCM_NS_THERMAL) += ns-thermal.o |
Oops, something went wrong.