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