xref: /linux/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
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
2157fa7d66SKrzysztof Kozlowski$ref: thermal-sensor.yaml#
2257fa7d66SKrzysztof Kozlowski
23a0a3e088SAnson Huangproperties:
24a0a3e088SAnson Huang  compatible:
25c0310e49SKrzysztof Kozlowski    oneOf:
26c0310e49SKrzysztof Kozlowski      - enum:
27a0a3e088SAnson Huang          - fsl,imx8mm-tmu
28a0a3e088SAnson Huang          - fsl,imx8mp-tmu
29c0310e49SKrzysztof Kozlowski      - items:
30c0310e49SKrzysztof Kozlowski          - const: fsl,imx8mn-tmu
31c0310e49SKrzysztof Kozlowski          - const: fsl,imx8mm-tmu
32a0a3e088SAnson Huang
33a0a3e088SAnson Huang  reg:
34a0a3e088SAnson Huang    maxItems: 1
35a0a3e088SAnson Huang
36a0a3e088SAnson Huang  clocks:
37a0a3e088SAnson Huang    maxItems: 1
38a0a3e088SAnson Huang
398848c0d7SMarek Vasut  nvmem-cells:
408848c0d7SMarek Vasut    maxItems: 1
418848c0d7SMarek Vasut    description: Phandle to the calibration data provided by ocotp
428848c0d7SMarek Vasut
438848c0d7SMarek Vasut  nvmem-cell-names:
448848c0d7SMarek Vasut    const: calib
458848c0d7SMarek Vasut
46a0a3e088SAnson Huang  "#thermal-sensor-cells":
47a0a3e088SAnson Huang    description: |
48a0a3e088SAnson Huang      Number of cells required to uniquely identify the thermal
49a0a3e088SAnson Huang      sensors, 0 for ONLY one sensor and 1 for multiple sensors.
50a0a3e088SAnson Huang    enum:
51a0a3e088SAnson Huang      - 0
52a0a3e088SAnson Huang      - 1
53a0a3e088SAnson Huang
54a0a3e088SAnson Huangrequired:
55a0a3e088SAnson Huang  - compatible
56a0a3e088SAnson Huang  - reg
57a0a3e088SAnson Huang  - clocks
58a0a3e088SAnson Huang
5957fa7d66SKrzysztof KozlowskiunevaluatedProperties: false
60a0a3e088SAnson Huang
61a0a3e088SAnson Huangexamples:
62a0a3e088SAnson Huang  - |
63a0a3e088SAnson Huang    #include <dt-bindings/clock/imx8mm-clock.h>
64a0a3e088SAnson Huang
65a0a3e088SAnson Huang    thermal-sensor@30260000 {
66a0a3e088SAnson Huang         compatible = "fsl,imx8mm-tmu";
67a0a3e088SAnson Huang         reg = <0x30260000 0x10000>;
68a0a3e088SAnson Huang         clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
69a0a3e088SAnson Huang         #thermal-sensor-cells = <0>;
70a0a3e088SAnson Huang    };
71a0a3e088SAnson Huang
72a0a3e088SAnson Huang...
73