diff options
author | Keerthy <j-keerthy@ti.com> | 2017-03-09 03:05:55 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-03-24 10:24:44 -0400 |
commit | a761d517bbb1ed223af10be37545ecc7ca859b72 (patch) | |
tree | c76c9b3ca635270e1d9c09531f8d65c09480e3e1 | |
parent | bb7d97862e456bd81ab2b6bc47073e63ea4e91a5 (diff) |
ARM: dts: omap3: Add cpu_thermal zone
Add cpu_thermal zone.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/boot/dts/omap3-cpu-thermal.dtsi | 20 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap34xx.dtsi | 8 | ||||
-rw-r--r-- | arch/arm/boot/dts/omap36xx.dtsi | 8 |
3 files changed, 32 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/omap3-cpu-thermal.dtsi b/arch/arm/boot/dts/omap3-cpu-thermal.dtsi new file mode 100644 index 000000000000..235ecfd61e2d --- /dev/null +++ b/arch/arm/boot/dts/omap3-cpu-thermal.dtsi | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * Device Tree Source for OMAP3 SoC CPU thermal | ||
3 | * | ||
4 | * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public License | ||
7 | * version 2. This program is licensed "as is" without any warranty of any | ||
8 | * kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #include <dt-bindings/thermal/thermal.h> | ||
12 | |||
13 | cpu_thermal: cpu_thermal { | ||
14 | polling-delay-passive = <250>; /* milliseconds */ | ||
15 | polling-delay = <1000>; /* milliseconds */ | ||
16 | coefficients = <0 20000>; | ||
17 | |||
18 | /* sensor ID */ | ||
19 | thermal-sensors = <&bandgap 0>; | ||
20 | }; | ||
diff --git a/arch/arm/boot/dts/omap34xx.dtsi b/arch/arm/boot/dts/omap34xx.dtsi index 834fdf13601f..ac4f8795b756 100644 --- a/arch/arm/boot/dts/omap34xx.dtsi +++ b/arch/arm/boot/dts/omap34xx.dtsi | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | / { | 15 | / { |
16 | cpus { | 16 | cpus { |
17 | cpu@0 { | 17 | cpu: cpu@0 { |
18 | /* OMAP343x/OMAP35xx variants OPP1-5 */ | 18 | /* OMAP343x/OMAP35xx variants OPP1-5 */ |
19 | operating-points = < | 19 | operating-points = < |
20 | /* kHz uV */ | 20 | /* kHz uV */ |
@@ -56,12 +56,16 @@ | |||
56 | }; | 56 | }; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | bandgap@48002524 { | 59 | bandgap: bandgap@48002524 { |
60 | reg = <0x48002524 0x4>; | 60 | reg = <0x48002524 0x4>; |
61 | compatible = "ti,omap34xx-bandgap"; | 61 | compatible = "ti,omap34xx-bandgap"; |
62 | #thermal-sensor-cells = <0>; | 62 | #thermal-sensor-cells = <0>; |
63 | }; | 63 | }; |
64 | }; | 64 | }; |
65 | |||
66 | thermal_zones: thermal-zones { | ||
67 | #include "omap3-cpu-thermal.dtsi" | ||
68 | }; | ||
65 | }; | 69 | }; |
66 | 70 | ||
67 | &ssi { | 71 | &ssi { |
diff --git a/arch/arm/boot/dts/omap36xx.dtsi b/arch/arm/boot/dts/omap36xx.dtsi index d1a3e56b50ce..ade31d74c70c 100644 --- a/arch/arm/boot/dts/omap36xx.dtsi +++ b/arch/arm/boot/dts/omap36xx.dtsi | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | cpus { | 20 | cpus { |
21 | /* OMAP3630/OMAP37xx 'standard device' variants OPP50 to OPP130 */ | 21 | /* OMAP3630/OMAP37xx 'standard device' variants OPP50 to OPP130 */ |
22 | cpu@0 { | 22 | cpu: cpu@0 { |
23 | operating-points = < | 23 | operating-points = < |
24 | /* kHz uV */ | 24 | /* kHz uV */ |
25 | 300000 1012500 | 25 | 300000 1012500 |
@@ -88,12 +88,16 @@ | |||
88 | }; | 88 | }; |
89 | }; | 89 | }; |
90 | 90 | ||
91 | bandgap@48002524 { | 91 | bandgap: bandgap@48002524 { |
92 | reg = <0x48002524 0x4>; | 92 | reg = <0x48002524 0x4>; |
93 | compatible = "ti,omap36xx-bandgap"; | 93 | compatible = "ti,omap36xx-bandgap"; |
94 | #thermal-sensor-cells = <0>; | 94 | #thermal-sensor-cells = <0>; |
95 | }; | 95 | }; |
96 | }; | 96 | }; |
97 | |||
98 | thermal_zones: thermal-zones { | ||
99 | #include "omap3-cpu-thermal.dtsi" | ||
100 | }; | ||
97 | }; | 101 | }; |
98 | 102 | ||
99 | /* OMAP3630 needs dss_96m_fck for VENC */ | 103 | /* OMAP3630 needs dss_96m_fck for VENC */ |