Mediatek thermal controller for on-SoC temperatures

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

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

Maintainers (maintainers): "Sascha Hauer <s.hauer@pengutronix.de>"

This device does not have its own ADC, instead it directly controls the AUXADC via AHB bus accesses. For this reason it needs phandles to the AUXADC. Also it controls a mux in the apmixedsys register space via AHB bus accesses, so a phandle to the APMIXEDSYS is also needed.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt2701-thermal", "mediatek,mt2712-thermal", "mediatek,mt7622-thermal", "mediatek,mt7986-thermal", "mediatek,mt8173-thermal", "mediatek,mt8183-thermal", "mediatek,mt8365-thermal"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt8516-thermal"

Item 2

Exact value (const): "mediatek,mt2701-thermal"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7981-thermal"

Item 2

Exact value (const): "mediatek,mt7986-thermal"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Main clock needed for register access

Item 2

The AUXADC clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "therm"

Item 2

Exact value (const): "auxadc"

mediatek,auxadc — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

A phandle to the AUXADC which the thermal controller uses

mediatek,apmixedsys — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

A phandle to the APMIXEDSYS controller

resets — not listed as required here #

Reset controller controlling the thermal controller

nvmem-cells — not listed as required here #

Array item rules (items) #

Item 1

NVMEM cell with EEPROMA phandle to the calibration data provided by an NVMEM device. If unspecified default values shall be used.

nvmem-cell-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "calibration-data"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/reset/mt8173-resets.h>

thermal@1100b000 {
    compatible = "mediatek,mt8173-thermal";
    reg = <0x1100b000 0x1000>;
    interrupts = <0 70 IRQ_TYPE_LEVEL_LOW>;
    clocks = <&pericfg CLK_PERI_THERM>, <&pericfg CLK_PERI_AUXADC>;
    clock-names = "therm", "auxadc";
    resets = <&pericfg MT8173_PERI_THERM_SW_RST>;
    mediatek,auxadc = <&auxadc>;
    mediatek,apmixedsys = <&apmixedsys>;
    nvmem-cells = <&thermal_calibration_data>;
    nvmem-cell-names = "calibration-data";
    #thermal-sensor-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page