1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/thermal/qoriq-thermal.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Thermal Monitoring Unit (TMU) on Freescale QorIQ SoCs 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10*0e8011faSEmmanuel Vadot - Shawn Guo <shawnguo@kernel.org> 11*0e8011faSEmmanuel Vadot - Sascha Hauer <s.hauer@pengutronix.de> 12*0e8011faSEmmanuel Vadot - Fabio Estevam <festevam@gmail.com> 13*0e8011faSEmmanuel Vadot 14*0e8011faSEmmanuel Vadot$ref: thermal-sensor.yaml# 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadotproperties: 17c66ec88fSEmmanuel Vadot compatible: 18c66ec88fSEmmanuel Vadot description: | 19c66ec88fSEmmanuel Vadot The version of the device is determined by the TMU IP Block Revision 20c66ec88fSEmmanuel Vadot Register (IPBRR0) at offset 0x0BF8. 21c66ec88fSEmmanuel Vadot Table of correspondences between IPBRR0 values and example chips: 22c66ec88fSEmmanuel Vadot Value Device 23c66ec88fSEmmanuel Vadot ---------- ----- 24c66ec88fSEmmanuel Vadot 0x01900102 T1040 25c66ec88fSEmmanuel Vadot enum: 26c66ec88fSEmmanuel Vadot - fsl,qoriq-tmu 27c66ec88fSEmmanuel Vadot - fsl,imx8mq-tmu 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot reg: 30c66ec88fSEmmanuel Vadot maxItems: 1 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot interrupts: 33c66ec88fSEmmanuel Vadot maxItems: 1 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot fsl,tmu-range: 36fac71e4eSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32-array 37c66ec88fSEmmanuel Vadot description: | 38c66ec88fSEmmanuel Vadot The values to be programmed into TTRnCR, as specified by the SoC 39c66ec88fSEmmanuel Vadot reference manual. The first cell is TTR0CR, the second is TTR1CR, etc. 4001950c46SEmmanuel Vadot minItems: 2 4101950c46SEmmanuel Vadot maxItems: 7 42c66ec88fSEmmanuel Vadot 43c66ec88fSEmmanuel Vadot fsl,tmu-calibration: 44fac71e4eSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32-matrix 45c66ec88fSEmmanuel Vadot description: | 46c66ec88fSEmmanuel Vadot A list of cell pairs containing temperature calibration data, as 47c66ec88fSEmmanuel Vadot specified by the SoC reference manual. The first cell of each pair 48c66ec88fSEmmanuel Vadot is the value to be written to TTCFGR, and the second is the value 49c66ec88fSEmmanuel Vadot to be written to TSCFGR. 50c66ec88fSEmmanuel Vadot items: 51c66ec88fSEmmanuel Vadot items: 52c66ec88fSEmmanuel Vadot - description: value for TTCFGR 53c66ec88fSEmmanuel Vadot - description: value for TSCFGR 54c66ec88fSEmmanuel Vadot minItems: 1 55c66ec88fSEmmanuel Vadot maxItems: 64 56c66ec88fSEmmanuel Vadot 57c66ec88fSEmmanuel Vadot little-endian: 58c66ec88fSEmmanuel Vadot description: | 59c66ec88fSEmmanuel Vadot boolean, if present, the TMU registers are little endian. If absent, 60c66ec88fSEmmanuel Vadot the default is big endian. 61c66ec88fSEmmanuel Vadot type: boolean 62c66ec88fSEmmanuel Vadot 63c66ec88fSEmmanuel Vadot clocks: 64c66ec88fSEmmanuel Vadot maxItems: 1 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot "#thermal-sensor-cells": 67c66ec88fSEmmanuel Vadot const: 1 68c66ec88fSEmmanuel Vadot 69c66ec88fSEmmanuel Vadotrequired: 70c66ec88fSEmmanuel Vadot - compatible 71c66ec88fSEmmanuel Vadot - reg 72c66ec88fSEmmanuel Vadot - interrupts 73c66ec88fSEmmanuel Vadot - fsl,tmu-range 74c66ec88fSEmmanuel Vadot - fsl,tmu-calibration 75c66ec88fSEmmanuel Vadot 76*0e8011faSEmmanuel VadotunevaluatedProperties: false 77c66ec88fSEmmanuel Vadot 78c66ec88fSEmmanuel Vadotexamples: 79c66ec88fSEmmanuel Vadot - | 80c66ec88fSEmmanuel Vadot tmu@f0000 { 81c66ec88fSEmmanuel Vadot compatible = "fsl,qoriq-tmu"; 82c66ec88fSEmmanuel Vadot reg = <0xf0000 0x1000>; 83c66ec88fSEmmanuel Vadot interrupts = <18 2 0 0>; 84c66ec88fSEmmanuel Vadot fsl,tmu-range = <0x000a0000 0x00090026 0x0008004a 0x0001006a>; 85c66ec88fSEmmanuel Vadot fsl,tmu-calibration = <0x00000000 0x00000025>, 86c66ec88fSEmmanuel Vadot <0x00000001 0x00000028>, 87c66ec88fSEmmanuel Vadot <0x00000002 0x0000002d>, 88c66ec88fSEmmanuel Vadot <0x00000003 0x00000031>, 89c66ec88fSEmmanuel Vadot <0x00000004 0x00000036>, 90c66ec88fSEmmanuel Vadot <0x00000005 0x0000003a>, 91c66ec88fSEmmanuel Vadot <0x00000006 0x00000040>, 92c66ec88fSEmmanuel Vadot <0x00000007 0x00000044>, 93c66ec88fSEmmanuel Vadot <0x00000008 0x0000004a>, 94c66ec88fSEmmanuel Vadot <0x00000009 0x0000004f>, 95c66ec88fSEmmanuel Vadot <0x0000000a 0x00000054>, 96c66ec88fSEmmanuel Vadot <0x00010000 0x0000000d>, 97c66ec88fSEmmanuel Vadot <0x00010001 0x00000013>, 98c66ec88fSEmmanuel Vadot <0x00010002 0x00000019>, 99c66ec88fSEmmanuel Vadot <0x00010003 0x0000001f>, 100c66ec88fSEmmanuel Vadot <0x00010004 0x00000025>, 101c66ec88fSEmmanuel Vadot <0x00010005 0x0000002d>, 102c66ec88fSEmmanuel Vadot <0x00010006 0x00000033>, 103c66ec88fSEmmanuel Vadot <0x00010007 0x00000043>, 104c66ec88fSEmmanuel Vadot <0x00010008 0x0000004b>, 105c66ec88fSEmmanuel Vadot <0x00010009 0x00000053>, 106c66ec88fSEmmanuel Vadot <0x00020000 0x00000010>, 107c66ec88fSEmmanuel Vadot <0x00020001 0x00000017>, 108c66ec88fSEmmanuel Vadot <0x00020002 0x0000001f>, 109c66ec88fSEmmanuel Vadot <0x00020003 0x00000029>, 110c66ec88fSEmmanuel Vadot <0x00020004 0x00000031>, 111c66ec88fSEmmanuel Vadot <0x00020005 0x0000003c>, 112c66ec88fSEmmanuel Vadot <0x00020006 0x00000042>, 113c66ec88fSEmmanuel Vadot <0x00020007 0x0000004d>, 114c66ec88fSEmmanuel Vadot <0x00020008 0x00000056>, 115c66ec88fSEmmanuel Vadot <0x00030000 0x00000012>, 116c66ec88fSEmmanuel Vadot <0x00030001 0x0000001d>; 117c66ec88fSEmmanuel Vadot #thermal-sensor-cells = <1>; 118c66ec88fSEmmanuel Vadot }; 119