Samsung Exynos SoC Thermal Management Unit (TMU)

Schema identifier ($id): "http://devicetree.org/schemas/thermal/samsung,exynos-thermal.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

For multi-instance tmu each instance should have an alias correctly numbered in "aliases" node.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,exynos3250-tmu", "samsung,exynos4412-tmu", "samsung,exynos4210-tmu", "samsung,exynos5250-tmu", "samsung,exynos5260-tmu", "samsung,exynos5420-tmu", "samsung,exynos5420-tmu-ext-triminfo", "samsung,exynos5433-tmu", "samsung,exynos7-tmu"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

interrupts — required here #

The Exynos TMU supports generating interrupts when reaching given temperature thresholds. Number of supported thermal trip points depends on the SoC (only first trip points defined in DT will be configured):: - most of SoC: 4 - samsung,exynos5433-tmu: 8 - samsung,exynos7-tmu: 8

Maximum number of items (maxItems): 1

reg — required here #

Array item rules (items) #

Item 1

TMU instance registers.

Item 2

Shared TMU registers.

Note:: On Exynos5420, the TRIMINFO register is misplaced for TMU channels 2, 3 and 4 Use "samsung,exynos5420-tmu-ext-triminfo" in cases, there is a misplaced register, also provide clock to access that base. TRIMINFO at 0x1006c000 contains data for TMU channel 3 TRIMINFO at 0x100a0000 contains data for TMU channel 4 TRIMINFO at 0x10068000 contains data for TMU channel 2

Minimum number of items (minItems): 1

#thermal-sensor-cells — not listed as required here #

Exact value (const): 0

vtmu-supply — not listed as required here #

The regulator node supplying voltage to TMU.

Required in this object (required): "compatible", "clocks", "clock-names", "interrupts", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/thermal/thermal-sensor.yaml

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5420-tmu-ext-triminfo"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Operational clock for TMU channel.

Item 2

Optional clock to access the shared registers (e.g. TRIMINFO) of TMU channel.

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "tmu_apbif"

Item 2

Exact value (const): "tmu_triminfo_apbif"

reg — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "samsung,exynos5433-tmu", "samsung,exynos7-tmu"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Operational clock for TMU channel.

Item 2

Optional special clock for functional operation of TMU channel.

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "tmu_apbif"

Item 2

Exact value (const): "tmu_sclk"

reg — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 1

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "samsung,exynos3250-tmu", "samsung,exynos4412-tmu", "samsung,exynos4210-tmu", "samsung,exynos5250-tmu", "samsung,exynos5260-tmu", "samsung,exynos5420-tmu"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 1

reg — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos4.h>

tmu@100c0000 {
    compatible = "samsung,exynos4412-tmu";
    reg = <0x100C0000 0x100>;
    interrupt-parent = <&combiner>;
    interrupts = <2 4>;
    #thermal-sensor-cells = <0>;
    clocks = <&clock CLK_TMU_APBIF>;
    clock-names = "tmu_apbif";
    vtmu-supply = <&ldo10_reg>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>

tmu@10068000 {
    compatible = "samsung,exynos5420-tmu-ext-triminfo";
    reg = <0x10068000 0x100>, <0x1006c000 0x4>;
    interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
    #thermal-sensor-cells = <0>;
    clocks = <&clock 318>, <&clock 318>; /* CLK_TMU */
    clock-names = "tmu_apbif", "tmu_triminfo_apbif";
    vtmu-supply = <&ldo7_reg>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>

tmu@10060000 {
    compatible = "samsung,exynos5433-tmu";
    reg = <0x10060000 0x200>;
    interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
    #thermal-sensor-cells = <0>;
    clocks = <&cmu_peris 3>, /* CLK_PCLK_TMU0_APBIF */
             <&cmu_peris 35>; /* CLK_SCLK_TMU0 */
    clock-names = "tmu_apbif", "tmu_sclk";
    vtmu-supply = <&ldo3_reg>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 24: For TMU channel 0, 1 on Exynos5420:

Line 26: For TMU channels 2, 3 and 4 of Exynos5420:

Edit this page