xref: /linux/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml (revision c0310e49d315978a5b019c99957ff442ecf9f05a)
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
7a0a3e088SAnson Huangtitle: NXP i.MX8M Mini Thermal Binding
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:
21*c0310e49SKrzysztof Kozlowski    oneOf:
22*c0310e49SKrzysztof Kozlowski      - enum:
23a0a3e088SAnson Huang          - fsl,imx8mm-tmu
24a0a3e088SAnson Huang          - fsl,imx8mp-tmu
25*c0310e49SKrzysztof Kozlowski      - items:
26*c0310e49SKrzysztof Kozlowski          - const: fsl,imx8mn-tmu
27*c0310e49SKrzysztof 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
35a0a3e088SAnson Huang  "#thermal-sensor-cells":
36a0a3e088SAnson Huang    description: |
37a0a3e088SAnson Huang      Number of cells required to uniquely identify the thermal
38a0a3e088SAnson Huang      sensors, 0 for ONLY one sensor and 1 for multiple sensors.
39a0a3e088SAnson Huang    enum:
40a0a3e088SAnson Huang      - 0
41a0a3e088SAnson Huang      - 1
42a0a3e088SAnson Huang
43a0a3e088SAnson Huangrequired:
44a0a3e088SAnson Huang  - compatible
45a0a3e088SAnson Huang  - reg
46a0a3e088SAnson Huang  - clocks
47a0a3e088SAnson Huang  - '#thermal-sensor-cells'
48a0a3e088SAnson Huang
49a0a3e088SAnson HuangadditionalProperties: false
50a0a3e088SAnson Huang
51a0a3e088SAnson Huangexamples:
52a0a3e088SAnson Huang  - |
53a0a3e088SAnson Huang    #include <dt-bindings/clock/imx8mm-clock.h>
54a0a3e088SAnson Huang
55a0a3e088SAnson Huang    thermal-sensor@30260000 {
56a0a3e088SAnson Huang         compatible = "fsl,imx8mm-tmu";
57a0a3e088SAnson Huang         reg = <0x30260000 0x10000>;
58a0a3e088SAnson Huang         clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
59a0a3e088SAnson Huang         #thermal-sensor-cells = <0>;
60a0a3e088SAnson Huang    };
61a0a3e088SAnson Huang
62a0a3e088SAnson Huang...
63