dt-bindings: thermal: Convert i.MX8MM to json-schema
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / thermal / imx8mm-thermal.yaml
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
7 title: NXP i.MX8M Mini Thermal Binding
8
9 maintainers:
10   - Anson Huang <Anson.Huang@nxp.com>
11
12 description: |
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
19 properties:
20   compatible:
21     enum:
22       - fsl,imx8mm-tmu
23       - fsl,imx8mp-tmu
24
25   reg:
26     maxItems: 1
27
28   clocks:
29     maxItems: 1
30
31   "#thermal-sensor-cells":
32     description: |
33       Number of cells required to uniquely identify the thermal
34       sensors, 0 for ONLY one sensor and 1 for multiple sensors.
35     enum:
36       - 0
37       - 1
38
39 required:
40   - compatible
41   - reg
42   - clocks
43   - '#thermal-sensor-cells'
44
45 additionalProperties: false
46
47 examples:
48   - |
49     #include <dt-bindings/clock/imx8mm-clock.h>
50
51     thermal-sensor@30260000 {
52          compatible = "fsl,imx8mm-tmu";
53          reg = <0x30260000 0x10000>;
54          clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
55          #thermal-sensor-cells = <0>;
56     };
57
58 ...