diff options
author | Eduardo Valentin <eduardo.valentin@ti.com> | 2013-07-15 09:09:14 -0400 |
---|---|---|
committer | Eduardo Valentin <eduardo.valentin@ti.com> | 2013-12-04 08:34:24 -0500 |
commit | 77cff5926a14e80d4545be5841d5938b87b654a4 (patch) | |
tree | ce23d4d9d89e99b6a6d3b69e101f062d70d6a22f /Documentation/devicetree/bindings/cpufreq | |
parent | 39d99cff76bf2992fd6dd4b1fc62da139e62e90c (diff) |
cpufreq: cpufreq-cpu0: add dt node parsing for cooling device properties
This patch changes the cpufreq-cpu0 driver to consider if
a cpu needs cooling (with cpufreq). In case the cooling is needed,
the cpu0 device tree node needs to be properly configured
with cooling device properties.
In case these properties are present,, the driver will
load a cpufreq cooling device in the system. The cpufreq-cpu0
driver is not interested in determining how the system should
be using the cooling device. The driver is responsible
only of loading the cooling device.
Describing how the cooling device will be used can be
accomplished by setting up a thermal zone that references
and is composed by the cpufreq cooling device.
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: cpufreq@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Diffstat (limited to 'Documentation/devicetree/bindings/cpufreq')
-rw-r--r-- | Documentation/devicetree/bindings/cpufreq/cpufreq-cpu0.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-cpu0.txt b/Documentation/devicetree/bindings/cpufreq/cpufreq-cpu0.txt index 051f764bedb8..f055515d2b62 100644 --- a/Documentation/devicetree/bindings/cpufreq/cpufreq-cpu0.txt +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-cpu0.txt | |||
@@ -15,6 +15,10 @@ Optional properties: | |||
15 | - clock-latency: Specify the possible maximum transition latency for clock, | 15 | - clock-latency: Specify the possible maximum transition latency for clock, |
16 | in unit of nanoseconds. | 16 | in unit of nanoseconds. |
17 | - voltage-tolerance: Specify the CPU voltage tolerance in percentage. | 17 | - voltage-tolerance: Specify the CPU voltage tolerance in percentage. |
18 | - #cooling-cells: | ||
19 | - cooling-min-level: | ||
20 | - cooling-max-level: | ||
21 | Please refer to Documentation/devicetree/bindings/thermal/thermal.txt. | ||
18 | 22 | ||
19 | Examples: | 23 | Examples: |
20 | 24 | ||
@@ -33,6 +37,9 @@ cpus { | |||
33 | 198000 850000 | 37 | 198000 850000 |
34 | >; | 38 | >; |
35 | clock-latency = <61036>; /* two CLK32 periods */ | 39 | clock-latency = <61036>; /* two CLK32 periods */ |
40 | #cooling-cells = <2>; | ||
41 | cooling-min-level = <0>; | ||
42 | cooling-max-level = <2>; | ||
36 | }; | 43 | }; |
37 | 44 | ||
38 | cpu@1 { | 45 | cpu@1 { |