diff options
author | Zhang Rui <rui.zhang@intel.com> | 2014-01-01 20:39:36 -0500 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2014-01-01 20:39:36 -0500 |
commit | c1b7bac58fb0d251f86efe7daec1a2851b7792bf (patch) | |
tree | 55b7f7e601dbfb7215f16ff3cfe0496b2d47e345 /arch/arm | |
parent | dea4f48a0a301b23c65af8e4fe8ccf360c272fbf (diff) | |
parent | 1beabfbea3a8648575afe04f6f3ddf107c240fb0 (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal into soc-thermal
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/omap4-cpu-thermal.dtsi | 41 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap443x.dtsi | 23 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap4460.dtsi | 29 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap5-core-thermal.dtsi | 28 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap5-gpu-thermal.dtsi | 28 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap5.dtsi | 14 |
6 files changed, 149 insertions, 14 deletions
diff --git a/arch/arm/boot/dts/omap4-cpu-thermal.dtsi b/arch/arm/boot/dts/omap4-cpu-thermal.dtsi new file mode 100644 index 000000000000..cb9458feb2e3 --- /dev/null +++ b/arch/arm/boot/dts/omap4-cpu-thermal.dtsi | |||
@@ -0,0 +1,41 @@ | |||
1 | /* | ||
2 | * Device Tree Source for OMAP4/5 SoC CPU thermal | ||
3 | * | ||
4 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ | ||
5 | * Contact: Eduardo Valentin <eduardo.valentin@ti.com> | ||
6 | * | ||
7 | * This file is licensed under the terms of the GNU General Public License | ||
8 | * version 2. This program is licensed "as is" without any warranty of any | ||
9 | * kind, whether express or implied. | ||
10 | */ | ||
11 | |||
12 | #include <dt-bindings/thermal/thermal.h> | ||
13 | |||
14 | cpu_thermal: cpu_thermal { | ||
15 | polling-delay-passive = <250>; /* milliseconds */ | ||
16 | polling-delay = <1000>; /* milliseconds */ | ||
17 | |||
18 | /* sensor ID */ | ||
19 | thermal-sensors = <&bandgap 0>; | ||
20 | |||
21 | trips { | ||
22 | cpu_alert0: cpu_alert { | ||
23 | temperature = <100000>; /* millicelsius */ | ||
24 | hysteresis = <2000>; /* millicelsius */ | ||
25 | type = "passive"; | ||
26 | }; | ||
27 | cpu_crit: cpu_crit { | ||
28 | temperature = <125000>; /* millicelsius */ | ||
29 | hysteresis = <2000>; /* millicelsius */ | ||
30 | type = "critical"; | ||
31 | }; | ||
32 | }; | ||
33 | |||
34 | cooling-maps { | ||
35 | map0 { | ||
36 | trip = <&cpu_alert0>; | ||
37 | cooling-device = | ||
38 | <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | ||
39 | }; | ||
40 | }; | ||
41 | }; | ||
diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/arm/boot/dts/omap443x.dtsi index bcf455efe18d..ab607a19a613 100644 --- a/arch/arm/boot/dts/omap443x.dtsi +++ b/arch/arm/boot/dts/omap443x.dtsi | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | / { | 13 | / { |
14 | cpus { | 14 | cpus { |
15 | cpu@0 { | 15 | cpu0: cpu@0 { |
16 | /* OMAP443x variants OPP50-OPPNT */ | 16 | /* OMAP443x variants OPP50-OPPNT */ |
17 | operating-points = < | 17 | operating-points = < |
18 | /* kHz uV */ | 18 | /* kHz uV */ |
@@ -22,12 +22,25 @@ | |||
22 | 1008000 1375000 | 22 | 1008000 1375000 |
23 | >; | 23 | >; |
24 | clock-latency = <300000>; /* From legacy driver */ | 24 | clock-latency = <300000>; /* From legacy driver */ |
25 | |||
26 | /* cooling options */ | ||
27 | cooling-min-level = <0>; | ||
28 | cooling-max-level = <3>; | ||
29 | #cooling-cells = <2>; /* min followed by max */ | ||
25 | }; | 30 | }; |
26 | }; | 31 | }; |
27 | 32 | ||
28 | bandgap { | 33 | thermal-zones { |
29 | reg = <0x4a002260 0x4 | 34 | #include "omap4-cpu-thermal.dtsi" |
30 | 0x4a00232C 0x4>; | 35 | }; |
31 | compatible = "ti,omap4430-bandgap"; | 36 | |
37 | ocp { | ||
38 | bandgap: bandgap { | ||
39 | reg = <0x4a002260 0x4 | ||
40 | 0x4a00232C 0x4>; | ||
41 | compatible = "ti,omap4430-bandgap"; | ||
42 | |||
43 | #thermal-sensor-cells = <0>; | ||
44 | }; | ||
32 | }; | 45 | }; |
33 | }; | 46 | }; |
diff --git a/arch/arm/boot/dts/omap4460.dtsi b/arch/arm/boot/dts/omap4460.dtsi index c2f0f39b5a24..11566bed0035 100644 --- a/arch/arm/boot/dts/omap4460.dtsi +++ b/arch/arm/boot/dts/omap4460.dtsi | |||
@@ -12,7 +12,7 @@ | |||
12 | / { | 12 | / { |
13 | cpus { | 13 | cpus { |
14 | /* OMAP446x 'standard device' variants OPP50 to OPPTurbo */ | 14 | /* OMAP446x 'standard device' variants OPP50 to OPPTurbo */ |
15 | cpu@0 { | 15 | cpu0: cpu@0 { |
16 | operating-points = < | 16 | operating-points = < |
17 | /* kHz uV */ | 17 | /* kHz uV */ |
18 | 350000 1025000 | 18 | 350000 1025000 |
@@ -20,6 +20,11 @@ | |||
20 | 920000 1313000 | 20 | 920000 1313000 |
21 | >; | 21 | >; |
22 | clock-latency = <300000>; /* From legacy driver */ | 22 | clock-latency = <300000>; /* From legacy driver */ |
23 | |||
24 | /* cooling options */ | ||
25 | cooling-min-level = <0>; | ||
26 | cooling-max-level = <2>; | ||
27 | #cooling-cells = <2>; /* min followed by max */ | ||
23 | }; | 28 | }; |
24 | }; | 29 | }; |
25 | 30 | ||
@@ -30,12 +35,20 @@ | |||
30 | ti,hwmods = "debugss"; | 35 | ti,hwmods = "debugss"; |
31 | }; | 36 | }; |
32 | 37 | ||
33 | bandgap { | 38 | thermal-zones { |
34 | reg = <0x4a002260 0x4 | 39 | #include "omap4-cpu-thermal.dtsi" |
35 | 0x4a00232C 0x4 | 40 | }; |
36 | 0x4a002378 0x18>; | 41 | |
37 | compatible = "ti,omap4460-bandgap"; | 42 | ocp { |
38 | interrupts = <0 126 IRQ_TYPE_LEVEL_HIGH>; /* talert */ | 43 | bandgap: bandgap { |
39 | gpios = <&gpio3 22 0>; /* tshut */ | 44 | reg = <0x4a002260 0x4 |
45 | 0x4a00232C 0x4 | ||
46 | 0x4a002378 0x18>; | ||
47 | compatible = "ti,omap4460-bandgap"; | ||
48 | interrupts = <0 126 IRQ_TYPE_LEVEL_HIGH>; /* talert */ | ||
49 | gpios = <&gpio3 22 0>; /* tshut */ | ||
50 | |||
51 | #thermal-sensor-cells = <0>; | ||
52 | }; | ||
40 | }; | 53 | }; |
41 | }; | 54 | }; |
diff --git a/arch/arm/boot/dts/omap5-core-thermal.dtsi b/arch/arm/boot/dts/omap5-core-thermal.dtsi new file mode 100644 index 000000000000..19212ac6eef0 --- /dev/null +++ b/arch/arm/boot/dts/omap5-core-thermal.dtsi | |||
@@ -0,0 +1,28 @@ | |||
1 | /* | ||
2 | * Device Tree Source for OMAP543x SoC CORE thermal | ||
3 | * | ||
4 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ | ||
5 | * Contact: Eduardo Valentin <eduardo.valentin@ti.com> | ||
6 | * | ||
7 | * This file is licensed under the terms of the GNU General Public License | ||
8 | * version 2. This program is licensed "as is" without any warranty of any | ||
9 | * kind, whether express or implied. | ||
10 | */ | ||
11 | |||
12 | #include <dt-bindings/thermal/thermal.h> | ||
13 | |||
14 | core_thermal: core_thermal { | ||
15 | polling-delay-passive = <250>; /* milliseconds */ | ||
16 | polling-delay = <1000>; /* milliseconds */ | ||
17 | |||
18 | /* sensor ID */ | ||
19 | thermal-sensors = <&bandgap 2>; | ||
20 | |||
21 | trips { | ||
22 | core_crit: core_crit { | ||
23 | temperature = <125000>; /* milliCelsius */ | ||
24 | hysteresis = <2000>; /* milliCelsius */ | ||
25 | type = "critical"; | ||
26 | }; | ||
27 | }; | ||
28 | }; | ||
diff --git a/arch/arm/boot/dts/omap5-gpu-thermal.dtsi b/arch/arm/boot/dts/omap5-gpu-thermal.dtsi new file mode 100644 index 000000000000..1b87aca88b77 --- /dev/null +++ b/arch/arm/boot/dts/omap5-gpu-thermal.dtsi | |||
@@ -0,0 +1,28 @@ | |||
1 | /* | ||
2 | * Device Tree Source for OMAP543x SoC GPU thermal | ||
3 | * | ||
4 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ | ||
5 | * Contact: Eduardo Valentin <eduardo.valentin@ti.com> | ||
6 | * | ||
7 | * This file is licensed under the terms of the GNU General Public License | ||
8 | * version 2. This program is licensed "as is" without any warranty of any | ||
9 | * kind, whether express or implied. | ||
10 | */ | ||
11 | |||
12 | #include <dt-bindings/thermal/thermal.h> | ||
13 | |||
14 | gpu_thermal: gpu_thermal { | ||
15 | polling-delay-passive = <250>; /* milliseconds */ | ||
16 | polling-delay = <1000>; /* milliseconds */ | ||
17 | |||
18 | /* sensor ID */ | ||
19 | thermal-sensors = <&bandgap 1>; | ||
20 | |||
21 | trips { | ||
22 | gpu_crit: gpu_crit { | ||
23 | temperature = <125000>; /* milliCelsius */ | ||
24 | hysteresis = <2000>; /* milliCelsius */ | ||
25 | type = "critical"; | ||
26 | }; | ||
27 | }; | ||
28 | }; | ||
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index fc3fad563861..ab9a21ae82f3 100644 --- a/arch/arm/boot/dts/omap5.dtsi +++ b/arch/arm/boot/dts/omap5.dtsi | |||
@@ -49,6 +49,10 @@ | |||
49 | 1000000 1060000 | 49 | 1000000 1060000 |
50 | 1500000 1250000 | 50 | 1500000 1250000 |
51 | >; | 51 | >; |
52 | /* cooling options */ | ||
53 | cooling-min-level = <0>; | ||
54 | cooling-max-level = <2>; | ||
55 | #cooling-cells = <2>; /* min followed by max */ | ||
52 | }; | 56 | }; |
53 | cpu@1 { | 57 | cpu@1 { |
54 | device_type = "cpu"; | 58 | device_type = "cpu"; |
@@ -57,6 +61,12 @@ | |||
57 | }; | 61 | }; |
58 | }; | 62 | }; |
59 | 63 | ||
64 | thermal-zones { | ||
65 | #include "omap4-cpu-thermal.dtsi" | ||
66 | #include "omap5-gpu-thermal.dtsi" | ||
67 | #include "omap5-core-thermal.dtsi" | ||
68 | }; | ||
69 | |||
60 | timer { | 70 | timer { |
61 | compatible = "arm,armv7-timer"; | 71 | compatible = "arm,armv7-timer"; |
62 | /* PPI secure/nonsecure IRQ */ | 72 | /* PPI secure/nonsecure IRQ */ |
@@ -729,13 +739,15 @@ | |||
729 | }; | 739 | }; |
730 | }; | 740 | }; |
731 | 741 | ||
732 | bandgap@4a0021e0 { | 742 | bandgap: bandgap@4a0021e0 { |
733 | reg = <0x4a0021e0 0xc | 743 | reg = <0x4a0021e0 0xc |
734 | 0x4a00232c 0xc | 744 | 0x4a00232c 0xc |
735 | 0x4a002380 0x2c | 745 | 0x4a002380 0x2c |
736 | 0x4a0023C0 0x3c>; | 746 | 0x4a0023C0 0x3c>; |
737 | interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>; | 747 | interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>; |
738 | compatible = "ti,omap5430-bandgap"; | 748 | compatible = "ti,omap5430-bandgap"; |
749 | |||
750 | #thermal-sensor-cells = <1>; | ||
739 | }; | 751 | }; |
740 | }; | 752 | }; |
741 | }; | 753 | }; |