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