xref: /linux/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml (revision a0a3e0887d71e7a975373b906fcbdd58962342d6)
1*a0a3e088SAnson Huang# SPDX-License-Identifier: GPL-2.0
2*a0a3e088SAnson Huang%YAML 1.2
3*a0a3e088SAnson Huang---
4*a0a3e088SAnson Huang$id: http://devicetree.org/schemas/thermal/imx8mm-thermal.yaml#
5*a0a3e088SAnson Huang$schema: http://devicetree.org/meta-schemas/core.yaml#
6*a0a3e088SAnson Huang
7*a0a3e088SAnson Huangtitle: NXP i.MX8M Mini Thermal Binding
8*a0a3e088SAnson Huang
9*a0a3e088SAnson Huangmaintainers:
10*a0a3e088SAnson Huang  - Anson Huang <Anson.Huang@nxp.com>
11*a0a3e088SAnson Huang
12*a0a3e088SAnson Huangdescription: |
13*a0a3e088SAnson Huang  i.MX8MM has TMU IP to allow temperature measurement, there are
14*a0a3e088SAnson Huang  currently two distinct major versions of the IP that is supported
15*a0a3e088SAnson Huang  by a single driver. The IP versions are named v1 and v2, v1 is
16*a0a3e088SAnson Huang  for i.MX8MM which has ONLY 1 sensor, v2 is for i.MX8MP which has
17*a0a3e088SAnson Huang  2 sensors.
18*a0a3e088SAnson Huang
19*a0a3e088SAnson Huangproperties:
20*a0a3e088SAnson Huang  compatible:
21*a0a3e088SAnson Huang    enum:
22*a0a3e088SAnson Huang      - fsl,imx8mm-tmu
23*a0a3e088SAnson Huang      - fsl,imx8mp-tmu
24*a0a3e088SAnson Huang
25*a0a3e088SAnson Huang  reg:
26*a0a3e088SAnson Huang    maxItems: 1
27*a0a3e088SAnson Huang
28*a0a3e088SAnson Huang  clocks:
29*a0a3e088SAnson Huang    maxItems: 1
30*a0a3e088SAnson Huang
31*a0a3e088SAnson Huang  "#thermal-sensor-cells":
32*a0a3e088SAnson Huang    description: |
33*a0a3e088SAnson Huang      Number of cells required to uniquely identify the thermal
34*a0a3e088SAnson Huang      sensors, 0 for ONLY one sensor and 1 for multiple sensors.
35*a0a3e088SAnson Huang    enum:
36*a0a3e088SAnson Huang      - 0
37*a0a3e088SAnson Huang      - 1
38*a0a3e088SAnson Huang
39*a0a3e088SAnson Huangrequired:
40*a0a3e088SAnson Huang  - compatible
41*a0a3e088SAnson Huang  - reg
42*a0a3e088SAnson Huang  - clocks
43*a0a3e088SAnson Huang  - '#thermal-sensor-cells'
44*a0a3e088SAnson Huang
45*a0a3e088SAnson HuangadditionalProperties: false
46*a0a3e088SAnson Huang
47*a0a3e088SAnson Huangexamples:
48*a0a3e088SAnson Huang  - |
49*a0a3e088SAnson Huang    #include <dt-bindings/clock/imx8mm-clock.h>
50*a0a3e088SAnson Huang
51*a0a3e088SAnson Huang    thermal-sensor@30260000 {
52*a0a3e088SAnson Huang         compatible = "fsl,imx8mm-tmu";
53*a0a3e088SAnson Huang         reg = <0x30260000 0x10000>;
54*a0a3e088SAnson Huang         clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
55*a0a3e088SAnson Huang         #thermal-sensor-cells = <0>;
56*a0a3e088SAnson Huang    };
57*a0a3e088SAnson Huang
58*a0a3e088SAnson Huang...
59