NXP i.MX8M Mini Thermal
Schema identifier ($id): "http://devicetree.org/schemas/thermal/imx8mm-thermal.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"
i.MX8MM has TMU IP to allow temperature measurement, there are currently two distinct major versions of the IP that is supported by a single driver. The IP versions are named v1 and v2, v1 is for i.MX8MM which has ONLY 1 sensor, v2 is for i.MX8MP which has 2 sensors.
Shared schema rule ($ref): thermal-sensor.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx8mn-tmu"Item 2
Exact value (
const):"fsl,imx8mm-tmu"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
nvmem-cells — not listed as required here #
Maximum number of items (maxItems): 1
Phandle to the calibration data provided by ocotp
nvmem-cell-names — not listed as required here #
Exact value (const): "calib"
#thermal-sensor-cells — not listed as required here #
Number of cells required to uniquely identify the thermal sensors, 0 for ONLY one sensor and 1 for multiple sensors.
Required in this object (required): "compatible", "reg", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx8mm-clock.h>
thermal-sensor@30260000 {
compatible = "fsl,imx8mm-tmu";
reg = <0x30260000 0x10000>;
clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
#thermal-sensor-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0