Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Keerthy and committed by
Tony Lindgren
a761d517 bb7d9786

+32 -4
+20
arch/arm/boot/dts/omap3-cpu-thermal.dtsi
··· 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 + };
+6 -2
arch/arm/boot/dts/omap34xx.dtsi
··· 14 14 15 15 / { 16 16 cpus { 17 - cpu@0 { 17 + cpu: cpu@0 { 18 18 /* OMAP343x/OMAP35xx variants OPP1-5 */ 19 19 operating-points = < 20 20 /* kHz uV */ ··· 56 56 }; 57 57 }; 58 58 59 - bandgap@48002524 { 59 + bandgap: bandgap@48002524 { 60 60 reg = <0x48002524 0x4>; 61 61 compatible = "ti,omap34xx-bandgap"; 62 62 #thermal-sensor-cells = <0>; 63 63 }; 64 + }; 65 + 66 + thermal_zones: thermal-zones { 67 + #include "omap3-cpu-thermal.dtsi" 64 68 }; 65 69 }; 66 70
+6 -2
arch/arm/boot/dts/omap36xx.dtsi
··· 19 19 20 20 cpus { 21 21 /* OMAP3630/OMAP37xx 'standard device' variants OPP50 to OPP130 */ 22 - cpu@0 { 22 + cpu: cpu@0 { 23 23 operating-points = < 24 24 /* kHz uV */ 25 25 300000 1012500 ··· 88 88 }; 89 89 }; 90 90 91 - bandgap@48002524 { 91 + bandgap: bandgap@48002524 { 92 92 reg = <0x48002524 0x4>; 93 93 compatible = "ti,omap36xx-bandgap"; 94 94 #thermal-sensor-cells = <0>; 95 95 }; 96 + }; 97 + 98 + thermal_zones: thermal-zones { 99 + #include "omap3-cpu-thermal.dtsi" 96 100 }; 97 101 }; 98 102