diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-17 13:16:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-17 13:16:27 -0500 |
commit | 2efda9042d76fcab0fb87b7ee8d84da52bf122b0 (patch) | |
tree | f390199ae330fbe20b3c9d8fe1021d909f752421 /Documentation | |
parent | 0b4954c46943e8f15b9379eed4f133c874a0bc66 (diff) | |
parent | 2707dbd09a859b7205917f9baf9d0192944ac46c (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
Pull thermal management update from Zhang Rui:
"Summary:
- of-thermal extension to allow drivers to register and use its
functionality in a better way, without exploiting thermal core.
From Lukasz Majewski.
- Fix a bug in intel_soc_dts_thermal driver which calls a sleep
function in interrupt handler. From Maurice Petallo.
- add a thermal UAPI header file for exporting the thermal generic
netlink information to user-space. From Florian Fainelli.
- First round of refactoring in Exynos driver. Bartlomiej and Lukasz
are attempting to make it lean and easier to understand.
- New thermal driver for Rockchip (rk3288), with support for DT
thermal. From Caesar Wang.
- New thermal driver for Nvidia, Tegra124 SOCTHERM driver, with
support for DT thermal. From Mikko Perttunen.
- New cooling device, based on common clock framework. From Eduardo
Valentin.
- a couple of small fixes in thermal core framework. From Srinivas
Pandruvada, Javi Merino, Luis Henriques.
- Dropping Armada A375-Z1 SoC thermal support as the chip is not in
the market, armada folks decided to drop its support.
- a couple of small fixes and cleanups in int340x thermal driver"
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: (58 commits)
thermal: provide an UAPI header file
Thermal/int340x: Clear the error value of the last acpi_bus_get_device() call
thermal/powerclamp: add id for braswell cpu
thermal: Intel SoC DTS: Don't do thermal zone update inside spin_lock
Thermal: fix platform_no_drv_owner.cocci warnings
Thermal/int340x: avoid unnecessary pointer casting
thermal: int3403: Delete a check before thermal_zone_device_unregister()
thermal/int3400: export uuids
thermal: of: Extend current of-thermal.c code to allow setting emulated temp
thermal: of: Extend of-thermal to export table of trip points
thermal: of: Rename struct __thermal_trip to struct thermal_trip
thermal: of: Extend of-thermal.c to provide check if trip point is valid
thermal: of: Extend of-thermal.c to provide number of trip points
thermal: Fix error path in thermal_init()
thermal: lock the thermal zone when switching governors
thermal: core: ignore invalid trip temperature
thermal: armada: Remove support for A375-Z1 SoC
thermal: rockchip: add driver for thermal
dt-bindings: document Rockchip thermal
thermal: exynos: remove exynos_tmu_data.h include
...
Diffstat (limited to 'Documentation')
3 files changed, 121 insertions, 8 deletions
diff --git a/Documentation/devicetree/bindings/thermal/armada-thermal.txt b/Documentation/devicetree/bindings/thermal/armada-thermal.txt index 4cf024929a3f..4698e0edc205 100644 --- a/Documentation/devicetree/bindings/thermal/armada-thermal.txt +++ b/Documentation/devicetree/bindings/thermal/armada-thermal.txt | |||
@@ -5,17 +5,9 @@ Required properties: | |||
5 | - compatible: Should be set to one of the following: | 5 | - compatible: Should be set to one of the following: |
6 | marvell,armada370-thermal | 6 | marvell,armada370-thermal |
7 | marvell,armada375-thermal | 7 | marvell,armada375-thermal |
8 | marvell,armada375-z1-thermal | ||
9 | marvell,armada380-thermal | 8 | marvell,armada380-thermal |
10 | marvell,armadaxp-thermal | 9 | marvell,armadaxp-thermal |
11 | 10 | ||
12 | Note: As the name suggests, "marvell,armada375-z1-thermal" | ||
13 | applies for the SoC Z1 stepping only. On such stepping | ||
14 | some quirks need to be done and the register offset differs | ||
15 | from the one in the A0 stepping. | ||
16 | The operating system may auto-detect the SoC stepping and | ||
17 | update the compatible and register offsets at runtime. | ||
18 | |||
19 | - reg: Device's register space. | 11 | - reg: Device's register space. |
20 | Two entries are expected, see the examples below. | 12 | Two entries are expected, see the examples below. |
21 | The first one is required for the sensor register; | 13 | The first one is required for the sensor register; |
diff --git a/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt b/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt new file mode 100644 index 000000000000..ef802de4957a --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/rockchip-thermal.txt | |||
@@ -0,0 +1,68 @@ | |||
1 | * Temperature Sensor ADC (TSADC) on rockchip SoCs | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "rockchip,rk3288-tsadc" | ||
5 | - reg : physical base address of the controller and length of memory mapped | ||
6 | region. | ||
7 | - interrupts : The interrupt number to the cpu. The interrupt specifier format | ||
8 | depends on the interrupt controller. | ||
9 | - clocks : Must contain an entry for each entry in clock-names. | ||
10 | - clock-names : Shall be "tsadc" for the converter-clock, and "apb_pclk" for | ||
11 | the peripheral clock. | ||
12 | - resets : Must contain an entry for each entry in reset-names. | ||
13 | See ../reset/reset.txt for details. | ||
14 | - reset-names : Must include the name "tsadc-apb". | ||
15 | - #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description. | ||
16 | - rockchip,hw-tshut-temp : The hardware-controlled shutdown temperature value. | ||
17 | - rockchip,hw-tshut-mode : The hardware-controlled shutdown mode 0:CRU 1:GPIO. | ||
18 | - rockchip,hw-tshut-polarity : The hardware-controlled active polarity 0:LOW | ||
19 | 1:HIGH. | ||
20 | |||
21 | Exiample: | ||
22 | tsadc: tsadc@ff280000 { | ||
23 | compatible = "rockchip,rk3288-tsadc"; | ||
24 | reg = <0xff280000 0x100>; | ||
25 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; | ||
26 | clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; | ||
27 | clock-names = "tsadc", "apb_pclk"; | ||
28 | resets = <&cru SRST_TSADC>; | ||
29 | reset-names = "tsadc-apb"; | ||
30 | pinctrl-names = "default"; | ||
31 | pinctrl-0 = <&otp_out>; | ||
32 | #thermal-sensor-cells = <1>; | ||
33 | rockchip,hw-tshut-temp = <95000>; | ||
34 | rockchip,hw-tshut-mode = <0>; | ||
35 | rockchip,hw-tshut-polarity = <0>; | ||
36 | }; | ||
37 | |||
38 | Example: referring to thermal sensors: | ||
39 | thermal-zones { | ||
40 | cpu_thermal: cpu_thermal { | ||
41 | polling-delay-passive = <1000>; /* milliseconds */ | ||
42 | polling-delay = <5000>; /* milliseconds */ | ||
43 | |||
44 | /* sensor ID */ | ||
45 | thermal-sensors = <&tsadc 1>; | ||
46 | |||
47 | trips { | ||
48 | cpu_alert0: cpu_alert { | ||
49 | temperature = <70000>; /* millicelsius */ | ||
50 | hysteresis = <2000>; /* millicelsius */ | ||
51 | type = "passive"; | ||
52 | }; | ||
53 | cpu_crit: cpu_crit { | ||
54 | temperature = <90000>; /* millicelsius */ | ||
55 | hysteresis = <2000>; /* millicelsius */ | ||
56 | type = "critical"; | ||
57 | }; | ||
58 | }; | ||
59 | |||
60 | cooling-maps { | ||
61 | map0 { | ||
62 | trip = <&cpu_alert0>; | ||
63 | cooling-device = | ||
64 | <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | ||
65 | }; | ||
66 | }; | ||
67 | }; | ||
68 | }; | ||
diff --git a/Documentation/devicetree/bindings/thermal/tegra-soctherm.txt b/Documentation/devicetree/bindings/thermal/tegra-soctherm.txt new file mode 100644 index 000000000000..ecf3ed76cd46 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/tegra-soctherm.txt | |||
@@ -0,0 +1,53 @@ | |||
1 | Tegra124 SOCTHERM thermal management system | ||
2 | |||
3 | The SOCTHERM IP block contains thermal sensors, support for polled | ||
4 | or interrupt-based thermal monitoring, CPU and GPU throttling based | ||
5 | on temperature trip points, and handling external overcurrent | ||
6 | notifications. It is also used to manage emergency shutdown in an | ||
7 | overheating situation. | ||
8 | |||
9 | Required properties : | ||
10 | - compatible : "nvidia,tegra124-soctherm". | ||
11 | - reg : Should contain 1 entry: | ||
12 | - SOCTHERM register set | ||
13 | - interrupts : Defines the interrupt used by SOCTHERM | ||
14 | - clocks : Must contain an entry for each entry in clock-names. | ||
15 | See ../clocks/clock-bindings.txt for details. | ||
16 | - clock-names : Must include the following entries: | ||
17 | - tsensor | ||
18 | - soctherm | ||
19 | - resets : Must contain an entry for each entry in reset-names. | ||
20 | See ../reset/reset.txt for details. | ||
21 | - reset-names : Must include the following entries: | ||
22 | - soctherm | ||
23 | - #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description | ||
24 | of this property. See <dt-bindings/thermal/tegra124-soctherm.h> for a | ||
25 | list of valid values when referring to thermal sensors. | ||
26 | |||
27 | |||
28 | Example : | ||
29 | |||
30 | soctherm@0,700e2000 { | ||
31 | compatible = "nvidia,tegra124-soctherm"; | ||
32 | reg = <0x0 0x700e2000 0x0 0x1000>; | ||
33 | interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; | ||
34 | clocks = <&tegra_car TEGRA124_CLK_TSENSOR>, | ||
35 | <&tegra_car TEGRA124_CLK_SOC_THERM>; | ||
36 | clock-names = "tsensor", "soctherm"; | ||
37 | resets = <&tegra_car 78>; | ||
38 | reset-names = "soctherm"; | ||
39 | |||
40 | #thermal-sensor-cells = <1>; | ||
41 | }; | ||
42 | |||
43 | Example: referring to thermal sensors : | ||
44 | |||
45 | thermal-zones { | ||
46 | cpu { | ||
47 | polling-delay-passive = <1000>; | ||
48 | polling-delay = <1000>; | ||
49 | |||
50 | thermal-sensors = | ||
51 | <&soctherm TEGRA124_SOCTHERM_SENSOR_CPU>; | ||
52 | }; | ||
53 | }; | ||