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 tag 'thermal-v5.7-rc1' of git://git.kernel.org/pub/scm/linux/ke…
…rnel/git/thermal/linux Pull thermal updates from Daniel Lezcano: - Convert tsens configuration DT binding to yaml (Rajeshwari) - Add interrupt support on the rcar sensor (Niklas Söderlund) - Add a new Spreadtrum thermal driver (Baolin Wang) - Add thermal binding for the fsl scu board, a new API to retrieve the sensor id bound to the thermal zone and i.MX system controller sensor (Anson Huang)) - Remove warning log when a deferred probe is requested on Exynos (Marek Szyprowski) - Add the thermal monitoring unit support for imx8mm with its DT bindings (Anson Huang) - Rephrase the Kconfig text for clarity (Linus Walleij) - Use the gpio descriptor for the ti-soc-thermal (Linus Walleij) - Align msg structure to 4 bytes for i.MX SC, fix the Kconfig dependency, add the __may_be unused annotation for PM functions and the COMPILE_TEST option for imx8mm (Anson Huang) - Fix a dependency on regmap in Kconfig for qoriq (Yuantian Tang) - Add DT binding and support for the rcar gen3 r8a77961 and improve the error path on the rcar init function (Niklas Söderlund) - Cleanup and improvements for the tsens Qcom sensor (Amit Kucheria) - Improve code by removing lock and caching values in the rcar thermal sensor (Niklas Söderlund) - Cleanup in the qoriq drivers and add a call to imx_thermal_unregister_legacy_cooling in the removal function (Anson Huang) - Remove redundant 'maxItems' in tsens and sprd DT bindings (Rob Herring) - Change the thermal DT bindings by making the cooling-maps optional (Yuantian Tang) - Add Tiger Lake support (Sumeet Pawnikar) - Use scnprintf() for avoiding potential buffer overflow (Takashi Iwai) - Make pkg_temp_lock a raw_spinlock_t(Clark Williams) - Fix incorrect data types by changing them to signed on i.MX SC (Anson Huang) - Replace zero-length array with flexible-array member (Gustavo A. R. Silva) - Add support for i.MX8MP in the driver and in the DT bindings (Anson Huang) - Fix return value of the cpufreq_set_cur_state() function (Willy Wolff) - Remove abusing and scary WARN_ON in the cpufreq cooling device (Daniel Lezcano) - Fix build warning of incorrect argument type reported by sparse on imx8mm (Anson Huang) - Fix stub for the devfreq cooling device (Martin Blumenstingl) - Fix cpu idle cooling documentation (Sergey Vidishev) * tag 'thermal-v5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux: (52 commits) Documentation: cpu-idle-cooling: Fix diagram for 33% duty cycle thermal: devfreq_cooling: inline all stubs for CONFIG_DEVFREQ_THERMAL=n thermal: imx8mm: Fix build warning of incorrect argument type thermal/drivers/cpufreq_cooling: Remove abusing WARN_ON thermal/drivers/cpufreq_cooling: Fix return of cpufreq_set_cur_state thermal: imx8mm: Add i.MX8MP support dt-bindings: thermal: imx8mm-thermal: Add support for i.MX8MP thermal: qcom: tsens.h: Replace zero-length array with flexible-array member thermal: imx_sc_thermal: Fix incorrect data type thermal: int340x_thermal: Use scnprintf() for avoiding potential buffer overflow thermal: int340x: processor_thermal: Add Tiger Lake support thermal/x86_pkg_temp: Make pkg_temp_lock a raw_spinlock_t dt-bindings: thermal: make cooling-maps property optional dt-bindings: thermal: qcom-tsens: Remove redundant 'maxItems' dt-bindings: thermal: sprd: Remove redundant 'maxItems' thermal: imx: Calling imx_thermal_unregister_legacy_cooling() in .remove thermal: qoriq: Sort includes alphabetically thermal: qoriq: Use devm_add_action_or_reset() to handle all cleanups thermal: rcar_thermal: Remove lock in rcar_thermal_get_current_temp() thermal: rcar_thermal: Do not store ctemp in rcar_thermal_priv ...
- Loading branch information
Showing
34 changed files
with
1,598 additions
and
241 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
15 changes: 15 additions & 0 deletions
15
Documentation/devicetree/bindings/thermal/imx8mm-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 @@ | ||
* Thermal Monitoring Unit (TMU) on Freescale i.MX8MM SoC | ||
|
||
Required properties: | ||
- compatible : Must be "fsl,imx8mm-tmu" or "fsl,imx8mp-tmu". | ||
- reg : Address range of TMU registers. | ||
- clocks : TMU's clock source. | ||
- #thermal-sensor-cells : Should be 0 or 1. See ./thermal.txt for a description. | ||
|
||
Example: | ||
tmu: tmu@30260000 { | ||
compatible = "fsl,imx8mm-tmu"; | ||
reg = <0x30260000 0x10000>; | ||
clocks = <&clk IMX8MM_CLK_TMU_ROOT>; | ||
#thermal-sensor-cells = <0>; | ||
}; |
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
107 changes: 107 additions & 0 deletions
107
Documentation/devicetree/bindings/thermal/sprd-thermal.yaml
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,107 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/thermal/sprd-thermal.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Spreadtrum thermal sensor controller bindings | ||
|
||
maintainers: | ||
- Orson Zhai <[email protected]> | ||
- Baolin Wang <[email protected]> | ||
- Chunyan Zhang <[email protected]> | ||
|
||
properties: | ||
compatible: | ||
const: sprd,ums512-thermal | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
clock-names: | ||
items: | ||
- const: enable | ||
|
||
nvmem-cells: | ||
maxItems: 2 | ||
description: | ||
Reference to nvmem nodes for the calibration data. | ||
|
||
nvmem-cell-names: | ||
items: | ||
- const: thm_sign_cal | ||
- const: thm_ratio_cal | ||
|
||
"#thermal-sensor-cells": | ||
const: 1 | ||
|
||
"#address-cells": | ||
const: 1 | ||
|
||
"#size-cells": | ||
const: 0 | ||
|
||
patternProperties: | ||
"^([a-z]*-)?sensor(-section)?@[0-9]+$": | ||
type: object | ||
description: | ||
Represent one thermal sensor. | ||
|
||
properties: | ||
reg: | ||
description: Specify the sensor id. | ||
maxItems: 1 | ||
|
||
nvmem-cells: | ||
maxItems: 1 | ||
description: | ||
Reference to an nvmem node for the calibration data. | ||
|
||
nvmem-cell-names: | ||
const: sen_delta_cal | ||
|
||
required: | ||
- reg | ||
- nvmem-cells | ||
- nvmem-cell-names | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
- clock-names | ||
- nvmem-cells | ||
- nvmem-cell-names | ||
- "#thermal-sensor-cells" | ||
- "#address-cells" | ||
- "#size-cells" | ||
|
||
examples: | ||
- | | ||
ap_thm0: thermal@32200000 { | ||
compatible = "sprd,ums512-thermal"; | ||
reg = <0 0x32200000 0 0x10000>; | ||
clock-names = "enable"; | ||
clocks = <&aonapb_gate 32>; | ||
#thermal-sensor-cells = <1>; | ||
nvmem-cells = <&thm0_sign>, <&thm0_ratio>; | ||
nvmem-cell-names = "thm_sign_cal", "thm_ratio_cal"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
prometheus-sensor@0 { | ||
reg = <0>; | ||
nvmem-cells = <&thm0_sen0>; | ||
nvmem-cell-names = "sen_delta_cal"; | ||
}; | ||
ank-sensor@1 { | ||
reg = <1>; | ||
nvmem-cells = <&thm0_sen1>; | ||
nvmem-cell-names = "sen_delta_cal"; | ||
}; | ||
}; | ||
... |
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
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
Oops, something went wrong.