0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/thermal/imx8mm-thermal.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: NXP i.MX8M Mini Thermal Binding
0008
0009 maintainers:
0010 - Anson Huang <Anson.Huang@nxp.com>
0011
0012 description: |
0013 i.MX8MM has TMU IP to allow temperature measurement, there are
0014 currently two distinct major versions of the IP that is supported
0015 by a single driver. The IP versions are named v1 and v2, v1 is
0016 for i.MX8MM which has ONLY 1 sensor, v2 is for i.MX8MP which has
0017 2 sensors.
0018
0019 properties:
0020 compatible:
0021 oneOf:
0022 - enum:
0023 - fsl,imx8mm-tmu
0024 - fsl,imx8mp-tmu
0025 - items:
0026 - const: fsl,imx8mn-tmu
0027 - const: fsl,imx8mm-tmu
0028
0029 reg:
0030 maxItems: 1
0031
0032 clocks:
0033 maxItems: 1
0034
0035 "#thermal-sensor-cells":
0036 description: |
0037 Number of cells required to uniquely identify the thermal
0038 sensors, 0 for ONLY one sensor and 1 for multiple sensors.
0039 enum:
0040 - 0
0041 - 1
0042
0043 required:
0044 - compatible
0045 - reg
0046 - clocks
0047 - '#thermal-sensor-cells'
0048
0049 additionalProperties: false
0050
0051 examples:
0052 - |
0053 #include <dt-bindings/clock/imx8mm-clock.h>
0054
0055 thermal-sensor@30260000 {
0056 compatible = "fsl,imx8mm-tmu";
0057 reg = <0x30260000 0x10000>;
0058 clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
0059 #thermal-sensor-cells = <0>;
0060 };
0061
0062 ...