forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git…
…/evalenti/linux-soc-thermal Pull thermal SoC updates from Eduardo Valentin: "Several new things coming up. Specifics: - Rework of tsens and hisi thermal drivers - OF-thermal now allows sharing multiple cooling devices on maps - Added support for r8a7744 and R8A77970 on rcar thermal driver - Added support for r8a774a1 on rcar_gen3 thermal driver - New thermal driver stm32 - Fixes on multiple thermal drivers: of-thermal, imx, qoriq, armada, qcom-spmi, rcar, da9062/61" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal: (41 commits) thermal: da9062/61: Prevent hardware access during system suspend thermal: rcar_thermal: Prevent doing work after unbind thermal: rcar_thermal: Prevent hardware access during system suspend thermal: rcar_gen3_thermal: add R8A77980 support dt-bindings: thermal: rcar-gen3-thermal: document R8A77980 bindings thermal: add stm32 thermal driver dt-bindings: stm32-thermal: add binding documentation thermal: rcar_thermal: add R8A77970 support dt-bindings: thermal: rcar-thermal: document R8A77970 bindings thermal: rcar_thermal: fix duplicate IRQ request dt-bindings: thermal: rcar: Add device tree support for r8a7744 thermal/drivers/hisi: Add the dual clusters sensors for hi3660 thermal/drivers/hisi: Add more sensors channel thermal/drivers/hisi: Remove pointless irq field thermal/drivers/hisi: Use platform_get_irq_byname thermal/drivers/hisi: Replace macro name with relevant sensor location thermal/drivers/hisi: Add multiple sensors support thermal/drivers/hisi: Prepare to support multiple sensors thermal/drivers/hisi: Factor out the probe functions thermal/drivers/hisi: Set the thermal zone private data to the sensor pointer ...
- Loading branch information
Showing
27 changed files
with
1,365 additions
and
303 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
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
61 changes: 61 additions & 0 deletions
61
Documentation/devicetree/bindings/thermal/stm32-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,61 @@ | ||
Binding for Thermal Sensor for STMicroelectronics STM32 series of SoCs. | ||
|
||
On STM32 SoCs, the Digital Temperature Sensor (DTS) is in charge of managing an | ||
analog block which delivers a frequency depending on the internal SoC's | ||
temperature. By using a reference frequency, DTS is able to provide a sample | ||
number which can be translated into a temperature by the user. | ||
|
||
DTS provides interrupt notification mechanism by threshold. This mechanism | ||
offers two temperature trip points: passive and critical. The first is intended | ||
for passive cooling notification while the second is used for over-temperature | ||
reset. | ||
|
||
Required parameters: | ||
------------------- | ||
|
||
compatible: Should be "st,stm32-thermal" | ||
reg: This should be the physical base address and length of the | ||
sensor's registers. | ||
clocks: Phandle of the clock used by the thermal sensor. | ||
See: Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
clock-names: Should be "pclk" for register access clock and reference clock. | ||
See: Documentation/devicetree/bindings/resource-names.txt | ||
#thermal-sensor-cells: Should be 0. See ./thermal.txt for a description. | ||
interrupts: Standard way to define interrupt number. | ||
|
||
Example: | ||
|
||
thermal-zones { | ||
cpu_thermal: cpu-thermal { | ||
polling-delay-passive = <0>; | ||
polling-delay = <0>; | ||
|
||
thermal-sensors = <&thermal>; | ||
|
||
trips { | ||
cpu_alert1: cpu-alert1 { | ||
temperature = <85000>; | ||
hysteresis = <0>; | ||
type = "passive"; | ||
}; | ||
|
||
cpu-crit: cpu-crit { | ||
temperature = <120000>; | ||
hysteresis = <0>; | ||
type = "critical"; | ||
}; | ||
}; | ||
|
||
cooling-maps { | ||
}; | ||
}; | ||
}; | ||
|
||
thermal: thermal@50028000 { | ||
compatible = "st,stm32-thermal"; | ||
reg = <0x50028000 0x100>; | ||
clocks = <&rcc TMPSENS>; | ||
clock-names = "pclk"; | ||
#thermal-sensor-cells = <0>; | ||
interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; | ||
}; |
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.