xref: /linux/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml (revision 84e85359f4999a439aa12e04bf0ae9e13e00fc66)
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
7*84e85359SKrzysztof Kozlowskititle: NXP i.MX8M Mini Thermal
8a0a3e088SAnson Huang
9a0a3e088SAnson Huangmaintainers:
10a0a3e088SAnson Huang  - Anson Huang <Anson.Huang@nxp.com>
11a0a3e088SAnson Huang
12a0a3e088SAnson Huangdescription: |
13a0a3e088SAnson Huang  i.MX8MM has TMU IP to allow temperature measurement, there are
14a0a3e088SAnson Huang  currently two distinct major versions of the IP that is supported
15a0a3e088SAnson Huang  by a single driver. The IP versions are named v1 and v2, v1 is
16a0a3e088SAnson Huang  for i.MX8MM which has ONLY 1 sensor, v2 is for i.MX8MP which has
17a0a3e088SAnson Huang  2 sensors.
18a0a3e088SAnson Huang
19a0a3e088SAnson Huangproperties:
20a0a3e088SAnson Huang  compatible:
21c0310e49SKrzysztof Kozlowski    oneOf:
22c0310e49SKrzysztof Kozlowski      - enum:
23a0a3e088SAnson Huang          - fsl,imx8mm-tmu
24a0a3e088SAnson Huang          - fsl,imx8mp-tmu
25c0310e49SKrzysztof Kozlowski      - items:
26c0310e49SKrzysztof Kozlowski          - const: fsl,imx8mn-tmu
27c0310e49SKrzysztof Kozlowski          - const: fsl,imx8mm-tmu
28a0a3e088SAnson Huang
29a0a3e088SAnson Huang  reg:
30a0a3e088SAnson Huang    maxItems: 1
31a0a3e088SAnson Huang
32a0a3e088SAnson Huang  clocks:
33a0a3e088SAnson Huang    maxItems: 1
34a0a3e088SAnson Huang
358848c0d7SMarek Vasut  nvmem-cells:
368848c0d7SMarek Vasut    maxItems: 1
378848c0d7SMarek Vasut    description: Phandle to the calibration data provided by ocotp
388848c0d7SMarek Vasut
398848c0d7SMarek Vasut  nvmem-cell-names:
408848c0d7SMarek Vasut    const: calib
418848c0d7SMarek Vasut
42a0a3e088SAnson Huang  "#thermal-sensor-cells":
43a0a3e088SAnson Huang    description: |
44a0a3e088SAnson Huang      Number of cells required to uniquely identify the thermal
45a0a3e088SAnson Huang      sensors, 0 for ONLY one sensor and 1 for multiple sensors.
46a0a3e088SAnson Huang    enum:
47a0a3e088SAnson Huang      - 0
48a0a3e088SAnson Huang      - 1
49a0a3e088SAnson Huang
50a0a3e088SAnson Huangrequired:
51a0a3e088SAnson Huang  - compatible
52a0a3e088SAnson Huang  - reg
53a0a3e088SAnson Huang  - clocks
54a0a3e088SAnson Huang  - '#thermal-sensor-cells'
55a0a3e088SAnson Huang
56a0a3e088SAnson HuangadditionalProperties: false
57a0a3e088SAnson Huang
58a0a3e088SAnson Huangexamples:
59a0a3e088SAnson Huang  - |
60a0a3e088SAnson Huang    #include <dt-bindings/clock/imx8mm-clock.h>
61a0a3e088SAnson Huang
62a0a3e088SAnson Huang    thermal-sensor@30260000 {
63a0a3e088SAnson Huang         compatible = "fsl,imx8mm-tmu";
64a0a3e088SAnson Huang         reg = <0x30260000 0x10000>;
65a0a3e088SAnson Huang         clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
66a0a3e088SAnson Huang         #thermal-sensor-cells = <0>;
67a0a3e088SAnson Huang    };
68a0a3e088SAnson Huang
69a0a3e088SAnson Huang...
70