1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun%YAML 1.2 3*4882a593Smuzhiyun--- 4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/thermal/imx8mm-thermal.yaml# 5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml# 6*4882a593Smuzhiyun 7*4882a593Smuzhiyuntitle: NXP i.MX8M Mini Thermal Binding 8*4882a593Smuzhiyun 9*4882a593Smuzhiyunmaintainers: 10*4882a593Smuzhiyun - Anson Huang <Anson.Huang@nxp.com> 11*4882a593Smuzhiyun 12*4882a593Smuzhiyundescription: | 13*4882a593Smuzhiyun i.MX8MM has TMU IP to allow temperature measurement, there are 14*4882a593Smuzhiyun currently two distinct major versions of the IP that is supported 15*4882a593Smuzhiyun by a single driver. The IP versions are named v1 and v2, v1 is 16*4882a593Smuzhiyun for i.MX8MM which has ONLY 1 sensor, v2 is for i.MX8MP which has 17*4882a593Smuzhiyun 2 sensors. 18*4882a593Smuzhiyun 19*4882a593Smuzhiyunproperties: 20*4882a593Smuzhiyun compatible: 21*4882a593Smuzhiyun oneOf: 22*4882a593Smuzhiyun - enum: 23*4882a593Smuzhiyun - fsl,imx8mm-tmu 24*4882a593Smuzhiyun - fsl,imx8mp-tmu 25*4882a593Smuzhiyun - items: 26*4882a593Smuzhiyun - const: fsl,imx8mn-tmu 27*4882a593Smuzhiyun - const: fsl,imx8mm-tmu 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun reg: 30*4882a593Smuzhiyun maxItems: 1 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun clocks: 33*4882a593Smuzhiyun maxItems: 1 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun "#thermal-sensor-cells": 36*4882a593Smuzhiyun description: | 37*4882a593Smuzhiyun Number of cells required to uniquely identify the thermal 38*4882a593Smuzhiyun sensors, 0 for ONLY one sensor and 1 for multiple sensors. 39*4882a593Smuzhiyun enum: 40*4882a593Smuzhiyun - 0 41*4882a593Smuzhiyun - 1 42*4882a593Smuzhiyun 43*4882a593Smuzhiyunrequired: 44*4882a593Smuzhiyun - compatible 45*4882a593Smuzhiyun - reg 46*4882a593Smuzhiyun - clocks 47*4882a593Smuzhiyun - '#thermal-sensor-cells' 48*4882a593Smuzhiyun 49*4882a593SmuzhiyunadditionalProperties: false 50*4882a593Smuzhiyun 51*4882a593Smuzhiyunexamples: 52*4882a593Smuzhiyun - | 53*4882a593Smuzhiyun #include <dt-bindings/clock/imx8mm-clock.h> 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun thermal-sensor@30260000 { 56*4882a593Smuzhiyun compatible = "fsl,imx8mm-tmu"; 57*4882a593Smuzhiyun reg = <0x30260000 0x10000>; 58*4882a593Smuzhiyun clocks = <&clk IMX8MM_CLK_TMU_ROOT>; 59*4882a593Smuzhiyun #thermal-sensor-cells = <0>; 60*4882a593Smuzhiyun }; 61*4882a593Smuzhiyun 62*4882a593Smuzhiyun... 63