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

powerpc/mpc85xx: Add TMU device tree support for T1023/T1024

Also add nodes and properties for thermal management support. Meanwhile
preprocessor support is needed using thermal of framework.

Signed-off-by: Jia Hongtao <hongtao.jia@freescale.com>
Reviewed-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>

authored by

Hongtao Jia and committed by
Scott Wood
3045e409 be489a39

+92 -4
+1 -1
arch/powerpc/boot/dts/fsl/t1023rdb.dts
··· 159 159 }; 160 160 }; 161 161 162 - /include/ "t1023si-post.dtsi" 162 + #include "t1023si-post.dtsi"
+86
arch/powerpc/boot/dts/fsl/t1023si-post.dtsi
··· 32 32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 33 */ 34 34 35 + #include <dt-bindings/thermal/thermal.h> 36 + 35 37 &ifc { 36 38 #address-cells = <2>; 37 39 #size-cells = <1>; ··· 275 273 serdes: serdes@ea000 { 276 274 compatible = "fsl,t1023-serdes"; 277 275 reg = <0xea000 0x4000>; 276 + }; 277 + 278 + tmu: tmu@f0000 { 279 + compatible = "fsl,qoriq-tmu"; 280 + reg = <0xf0000 0x1000>; 281 + interrupts = <18 2 0 0>; 282 + fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x30061>; 283 + fsl,tmu-calibration = <0x00000000 0x0000000f 284 + 0x00000001 0x00000017 285 + 0x00000002 0x0000001e 286 + 0x00000003 0x00000026 287 + 0x00000004 0x0000002e 288 + 0x00000005 0x00000035 289 + 0x00000006 0x0000003d 290 + 0x00000007 0x00000044 291 + 0x00000008 0x0000004c 292 + 0x00000009 0x00000053 293 + 0x0000000a 0x0000005b 294 + 0x0000000b 0x00000064 295 + 296 + 0x00010000 0x00000011 297 + 0x00010001 0x0000001c 298 + 0x00010002 0x00000024 299 + 0x00010003 0x0000002b 300 + 0x00010004 0x00000034 301 + 0x00010005 0x00000039 302 + 0x00010006 0x00000042 303 + 0x00010007 0x0000004c 304 + 0x00010008 0x00000051 305 + 0x00010009 0x0000005a 306 + 0x0001000a 0x00000063 307 + 308 + 0x00020000 0x00000013 309 + 0x00020001 0x00000019 310 + 0x00020002 0x00000024 311 + 0x00020003 0x0000002c 312 + 0x00020004 0x00000035 313 + 0x00020005 0x0000003d 314 + 0x00020006 0x00000046 315 + 0x00020007 0x00000050 316 + 0x00020008 0x00000059 317 + 318 + 0x00030000 0x00000002 319 + 0x00030001 0x0000000d 320 + 0x00030002 0x00000019 321 + 0x00030003 0x00000024>; 322 + #thermal-sensor-cells = <0>; 323 + }; 324 + 325 + thermal-zones { 326 + cpu_thermal: cpu-thermal { 327 + polling-delay-passive = <1000>; 328 + polling-delay = <5000>; 329 + 330 + thermal-sensors = <&tmu>; 331 + 332 + trips { 333 + cpu_alert: cpu-alert { 334 + temperature = <85000>; 335 + hysteresis = <2000>; 336 + type = "passive"; 337 + }; 338 + cpu_crit: cpu-crit { 339 + temperature = <95000>; 340 + hysteresis = <2000>; 341 + type = "critical"; 342 + }; 343 + }; 344 + 345 + cooling-maps { 346 + map0 { 347 + trip = <&cpu_alert>; 348 + cooling-device = 349 + <&cpu0 THERMAL_NO_LIMIT 350 + THERMAL_NO_LIMIT>; 351 + }; 352 + map1 { 353 + trip = <&cpu_alert>; 354 + cooling-device = 355 + <&cpu1 THERMAL_NO_LIMIT 356 + THERMAL_NO_LIMIT>; 357 + }; 358 + }; 359 + }; 278 360 }; 279 361 280 362 scfg: global-utilities@fc000 {
+1 -1
arch/powerpc/boot/dts/fsl/t1024qds.dts
··· 248 248 }; 249 249 }; 250 250 251 - /include/ "t1024si-post.dtsi" 251 + #include "t1024si-post.dtsi"
+1 -1
arch/powerpc/boot/dts/fsl/t1024rdb.dts
··· 188 188 }; 189 189 }; 190 190 191 - /include/ "t1024si-post.dtsi" 191 + #include "t1024si-post.dtsi"
+1 -1
arch/powerpc/boot/dts/fsl/t1024si-post.dtsi
··· 32 32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 33 */ 34 34 35 - /include/ "t1023si-post.dtsi" 35 + #include "t1023si-post.dtsi" 36 36 37 37 / { 38 38 aliases {
+2
arch/powerpc/boot/dts/fsl/t102xsi-pre.dtsi
··· 76 76 reg = <0>; 77 77 clocks = <&mux0>; 78 78 next-level-cache = <&L2_1>; 79 + #cooling-cells = <2>; 79 80 L2_1: l2-cache { 80 81 next-level-cache = <&cpc>; 81 82 }; ··· 86 85 reg = <1>; 87 86 clocks = <&mux1>; 88 87 next-level-cache = <&L2_2>; 88 + #cooling-cells = <2>; 89 89 L2_2: l2-cache { 90 90 next-level-cache = <&cpc>; 91 91 };