18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/thermal/qoriq-thermal.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: Thermal Monitoring Unit (TMU) on Freescale QorIQ SoCs 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - Anson Huang <Anson.Huang@nxp.com> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciproperties: 138c2ecf20Sopenharmony_ci compatible: 148c2ecf20Sopenharmony_ci description: | 158c2ecf20Sopenharmony_ci The version of the device is determined by the TMU IP Block Revision 168c2ecf20Sopenharmony_ci Register (IPBRR0) at offset 0x0BF8. 178c2ecf20Sopenharmony_ci Table of correspondences between IPBRR0 values and example chips: 188c2ecf20Sopenharmony_ci Value Device 198c2ecf20Sopenharmony_ci ---------- ----- 208c2ecf20Sopenharmony_ci 0x01900102 T1040 218c2ecf20Sopenharmony_ci enum: 228c2ecf20Sopenharmony_ci - fsl,qoriq-tmu 238c2ecf20Sopenharmony_ci - fsl,imx8mq-tmu 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci reg: 268c2ecf20Sopenharmony_ci maxItems: 1 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci interrupts: 298c2ecf20Sopenharmony_ci maxItems: 1 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci fsl,tmu-range: 328c2ecf20Sopenharmony_ci $ref: '/schemas/types.yaml#/definitions/uint32-array' 338c2ecf20Sopenharmony_ci description: | 348c2ecf20Sopenharmony_ci The values to be programmed into TTRnCR, as specified by the SoC 358c2ecf20Sopenharmony_ci reference manual. The first cell is TTR0CR, the second is TTR1CR, etc. 368c2ecf20Sopenharmony_ci maxItems: 4 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci fsl,tmu-calibration: 398c2ecf20Sopenharmony_ci $ref: '/schemas/types.yaml#/definitions/uint32-matrix' 408c2ecf20Sopenharmony_ci description: | 418c2ecf20Sopenharmony_ci A list of cell pairs containing temperature calibration data, as 428c2ecf20Sopenharmony_ci specified by the SoC reference manual. The first cell of each pair 438c2ecf20Sopenharmony_ci is the value to be written to TTCFGR, and the second is the value 448c2ecf20Sopenharmony_ci to be written to TSCFGR. 458c2ecf20Sopenharmony_ci items: 468c2ecf20Sopenharmony_ci items: 478c2ecf20Sopenharmony_ci - description: value for TTCFGR 488c2ecf20Sopenharmony_ci - description: value for TSCFGR 498c2ecf20Sopenharmony_ci minItems: 1 508c2ecf20Sopenharmony_ci maxItems: 64 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci little-endian: 538c2ecf20Sopenharmony_ci description: | 548c2ecf20Sopenharmony_ci boolean, if present, the TMU registers are little endian. If absent, 558c2ecf20Sopenharmony_ci the default is big endian. 568c2ecf20Sopenharmony_ci type: boolean 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci clocks: 598c2ecf20Sopenharmony_ci maxItems: 1 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci "#thermal-sensor-cells": 628c2ecf20Sopenharmony_ci const: 1 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_cirequired: 658c2ecf20Sopenharmony_ci - compatible 668c2ecf20Sopenharmony_ci - reg 678c2ecf20Sopenharmony_ci - interrupts 688c2ecf20Sopenharmony_ci - fsl,tmu-range 698c2ecf20Sopenharmony_ci - fsl,tmu-calibration 708c2ecf20Sopenharmony_ci - '#thermal-sensor-cells' 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ciadditionalProperties: false 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ciexamples: 758c2ecf20Sopenharmony_ci - | 768c2ecf20Sopenharmony_ci tmu@f0000 { 778c2ecf20Sopenharmony_ci compatible = "fsl,qoriq-tmu"; 788c2ecf20Sopenharmony_ci reg = <0xf0000 0x1000>; 798c2ecf20Sopenharmony_ci interrupts = <18 2 0 0>; 808c2ecf20Sopenharmony_ci fsl,tmu-range = <0x000a0000 0x00090026 0x0008004a 0x0001006a>; 818c2ecf20Sopenharmony_ci fsl,tmu-calibration = <0x00000000 0x00000025>, 828c2ecf20Sopenharmony_ci <0x00000001 0x00000028>, 838c2ecf20Sopenharmony_ci <0x00000002 0x0000002d>, 848c2ecf20Sopenharmony_ci <0x00000003 0x00000031>, 858c2ecf20Sopenharmony_ci <0x00000004 0x00000036>, 868c2ecf20Sopenharmony_ci <0x00000005 0x0000003a>, 878c2ecf20Sopenharmony_ci <0x00000006 0x00000040>, 888c2ecf20Sopenharmony_ci <0x00000007 0x00000044>, 898c2ecf20Sopenharmony_ci <0x00000008 0x0000004a>, 908c2ecf20Sopenharmony_ci <0x00000009 0x0000004f>, 918c2ecf20Sopenharmony_ci <0x0000000a 0x00000054>, 928c2ecf20Sopenharmony_ci <0x00010000 0x0000000d>, 938c2ecf20Sopenharmony_ci <0x00010001 0x00000013>, 948c2ecf20Sopenharmony_ci <0x00010002 0x00000019>, 958c2ecf20Sopenharmony_ci <0x00010003 0x0000001f>, 968c2ecf20Sopenharmony_ci <0x00010004 0x00000025>, 978c2ecf20Sopenharmony_ci <0x00010005 0x0000002d>, 988c2ecf20Sopenharmony_ci <0x00010006 0x00000033>, 998c2ecf20Sopenharmony_ci <0x00010007 0x00000043>, 1008c2ecf20Sopenharmony_ci <0x00010008 0x0000004b>, 1018c2ecf20Sopenharmony_ci <0x00010009 0x00000053>, 1028c2ecf20Sopenharmony_ci <0x00020000 0x00000010>, 1038c2ecf20Sopenharmony_ci <0x00020001 0x00000017>, 1048c2ecf20Sopenharmony_ci <0x00020002 0x0000001f>, 1058c2ecf20Sopenharmony_ci <0x00020003 0x00000029>, 1068c2ecf20Sopenharmony_ci <0x00020004 0x00000031>, 1078c2ecf20Sopenharmony_ci <0x00020005 0x0000003c>, 1088c2ecf20Sopenharmony_ci <0x00020006 0x00000042>, 1098c2ecf20Sopenharmony_ci <0x00020007 0x0000004d>, 1108c2ecf20Sopenharmony_ci <0x00020008 0x00000056>, 1118c2ecf20Sopenharmony_ci <0x00030000 0x00000012>, 1128c2ecf20Sopenharmony_ci <0x00030001 0x0000001d>; 1138c2ecf20Sopenharmony_ci #thermal-sensor-cells = <1>; 1148c2ecf20Sopenharmony_ci }; 115