mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
bb7d97862e
commit
a761d517bb
3 changed files with 32 additions and 4 deletions
20
arch/arm/boot/dts/omap3-cpu-thermal.dtsi
Normal file
20
arch/arm/boot/dts/omap3-cpu-thermal.dtsi
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
/*
|
||||||
|
* Device Tree Source for OMAP3 SoC CPU thermal
|
||||||
|
*
|
||||||
|
* Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
|
||||||
|
*
|
||||||
|
* This file is licensed under the terms of the GNU General Public License
|
||||||
|
* version 2. This program is licensed "as is" without any warranty of any
|
||||||
|
* kind, whether express or implied.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/thermal/thermal.h>
|
||||||
|
|
||||||
|
cpu_thermal: cpu_thermal {
|
||||||
|
polling-delay-passive = <250>; /* milliseconds */
|
||||||
|
polling-delay = <1000>; /* milliseconds */
|
||||||
|
coefficients = <0 20000>;
|
||||||
|
|
||||||
|
/* sensor ID */
|
||||||
|
thermal-sensors = <&bandgap 0>;
|
||||||
|
};
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
cpus {
|
cpus {
|
||||||
cpu@0 {
|
cpu: cpu@0 {
|
||||||
/* OMAP343x/OMAP35xx variants OPP1-5 */
|
/* OMAP343x/OMAP35xx variants OPP1-5 */
|
||||||
operating-points = <
|
operating-points = <
|
||||||
/* kHz uV */
|
/* kHz uV */
|
||||||
|
@ -56,12 +56,16 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
bandgap@48002524 {
|
bandgap: bandgap@48002524 {
|
||||||
reg = <0x48002524 0x4>;
|
reg = <0x48002524 0x4>;
|
||||||
compatible = "ti,omap34xx-bandgap";
|
compatible = "ti,omap34xx-bandgap";
|
||||||
#thermal-sensor-cells = <0>;
|
#thermal-sensor-cells = <0>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
thermal_zones: thermal-zones {
|
||||||
|
#include "omap3-cpu-thermal.dtsi"
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&ssi {
|
&ssi {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
cpus {
|
cpus {
|
||||||
/* OMAP3630/OMAP37xx 'standard device' variants OPP50 to OPP130 */
|
/* OMAP3630/OMAP37xx 'standard device' variants OPP50 to OPP130 */
|
||||||
cpu@0 {
|
cpu: cpu@0 {
|
||||||
operating-points = <
|
operating-points = <
|
||||||
/* kHz uV */
|
/* kHz uV */
|
||||||
300000 1012500
|
300000 1012500
|
||||||
|
@ -88,12 +88,16 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
bandgap@48002524 {
|
bandgap: bandgap@48002524 {
|
||||||
reg = <0x48002524 0x4>;
|
reg = <0x48002524 0x4>;
|
||||||
compatible = "ti,omap36xx-bandgap";
|
compatible = "ti,omap36xx-bandgap";
|
||||||
#thermal-sensor-cells = <0>;
|
#thermal-sensor-cells = <0>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
thermal_zones: thermal-zones {
|
||||||
|
#include "omap3-cpu-thermal.dtsi"
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/* OMAP3630 needs dss_96m_fck for VENC */
|
/* OMAP3630 needs dss_96m_fck for VENC */
|
||||||
|
|
Loading…
Add table
Reference in a new issue