1a0a3e088SAnson Huang# SPDX-License-Identifier: GPL-2.0 2a0a3e088SAnson Huang%YAML 1.2 3a0a3e088SAnson Huang--- 4a0a3e088SAnson Huang$id: http://devicetree.org/schemas/thermal/imx8mm-thermal.yaml# 5a0a3e088SAnson Huang$schema: http://devicetree.org/meta-schemas/core.yaml# 6a0a3e088SAnson Huang 784e85359SKrzysztof Kozlowskititle: NXP i.MX8M Mini Thermal 8a0a3e088SAnson Huang 9a0a3e088SAnson 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> 13a0a3e088SAnson Huang 14a0a3e088SAnson Huangdescription: | 15a0a3e088SAnson Huang i.MX8MM has TMU IP to allow temperature measurement, there are 16a0a3e088SAnson Huang currently two distinct major versions of the IP that is supported 17a0a3e088SAnson Huang by a single driver. The IP versions are named v1 and v2, v1 is 18a0a3e088SAnson Huang for i.MX8MM which has ONLY 1 sensor, v2 is for i.MX8MP which has 19a0a3e088SAnson Huang 2 sensors. 20a0a3e088SAnson Huang 21a0a3e088SAnson Huangproperties: 22a0a3e088SAnson Huang compatible: 23c0310e49SKrzysztof Kozlowski oneOf: 24c0310e49SKrzysztof Kozlowski - enum: 25a0a3e088SAnson Huang - fsl,imx8mm-tmu 26a0a3e088SAnson Huang - fsl,imx8mp-tmu 27c0310e49SKrzysztof Kozlowski - items: 28c0310e49SKrzysztof Kozlowski - const: fsl,imx8mn-tmu 29c0310e49SKrzysztof Kozlowski - const: fsl,imx8mm-tmu 30a0a3e088SAnson Huang 31a0a3e088SAnson Huang reg: 32a0a3e088SAnson Huang maxItems: 1 33a0a3e088SAnson Huang 34a0a3e088SAnson Huang clocks: 35a0a3e088SAnson Huang maxItems: 1 36a0a3e088SAnson Huang 378848c0d7SMarek Vasut nvmem-cells: 388848c0d7SMarek Vasut maxItems: 1 398848c0d7SMarek Vasut description: Phandle to the calibration data provided by ocotp 408848c0d7SMarek Vasut 418848c0d7SMarek Vasut nvmem-cell-names: 428848c0d7SMarek Vasut const: calib 438848c0d7SMarek Vasut 44a0a3e088SAnson Huang "#thermal-sensor-cells": 45a0a3e088SAnson Huang description: | 46a0a3e088SAnson Huang Number of cells required to uniquely identify the thermal 47a0a3e088SAnson Huang sensors, 0 for ONLY one sensor and 1 for multiple sensors. 48a0a3e088SAnson Huang enum: 49a0a3e088SAnson Huang - 0 50a0a3e088SAnson Huang - 1 51a0a3e088SAnson Huang 52a0a3e088SAnson Huangrequired: 53a0a3e088SAnson Huang - compatible 54a0a3e088SAnson Huang - reg 55a0a3e088SAnson Huang - clocks 56a0a3e088SAnson Huang - '#thermal-sensor-cells' 57a0a3e088SAnson Huang 58a0a3e088SAnson HuangadditionalProperties: false 59a0a3e088SAnson Huang 60a0a3e088SAnson Huangexamples: 61a0a3e088SAnson Huang - | 62a0a3e088SAnson Huang #include <dt-bindings/clock/imx8mm-clock.h> 63a0a3e088SAnson Huang 64a0a3e088SAnson Huang thermal-sensor@30260000 { 65a0a3e088SAnson Huang compatible = "fsl,imx8mm-tmu"; 66a0a3e088SAnson Huang reg = <0x30260000 0x10000>; 67a0a3e088SAnson Huang clocks = <&clk IMX8MM_CLK_TMU_ROOT>; 68a0a3e088SAnson Huang #thermal-sensor-cells = <0>; 69a0a3e088SAnson Huang }; 70a0a3e088SAnson Huang 71a0a3e088SAnson Huang... 72