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