1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/thermal/mediatek,lvts-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek SoC Low Voltage Thermal Sensor (LVTS)
10 - Balsam CHIHI <bchihi@baylibre.com>
13 LVTS is a thermal management architecture composed of three subsystems,
14 a Sensing device - Thermal Sensing Micro Circuit Unit (TSMCU),
15 a Converter - Low Voltage Thermal Sensor converter (LVTS), and
16 a Digital controller (LVTS_CTRL).
21 - mediatek,mt7988-lvts-ap
22 - mediatek,mt8192-lvts-ap
23 - mediatek,mt8192-lvts-mcu
24 - mediatek,mt8195-lvts-ap
25 - mediatek,mt8195-lvts-mcu
38 description: LVTS reset for clearing temporary data on AP/MCU.
43 - description: Calibration eFuse data 1 for LVTS
44 - description: Calibration eFuse data 2 for LVTS
49 - const: lvts-calib-data-1
50 - const: lvts-calib-data-2
52 "#thermal-sensor-cells":
56 - $ref: thermal-sensor.yaml#
63 - mediatek,mt8192-lvts-ap
64 - mediatek,mt8192-lvts-mcu
78 - mediatek,mt8195-lvts-ap
79 - mediatek,mt8195-lvts-mcu
96 - "#thermal-sensor-cells"
98 additionalProperties: false
102 #include <dt-bindings/interrupt-controller/arm-gic.h>
103 #include <dt-bindings/clock/mt8195-clk.h>
104 #include <dt-bindings/reset/mt8195-resets.h>
105 #include <dt-bindings/thermal/mediatek,lvts-thermal.h>
108 #address-cells = <2>;
111 lvts_mcu: thermal-sensor@11278000 {
112 compatible = "mediatek,mt8195-lvts-mcu";
113 reg = <0 0x11278000 0 0x1000>;
114 interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH 0>;
115 clocks = <&infracfg_ao CLK_INFRA_AO_THERM>;
116 resets = <&infracfg_ao MT8195_INFRA_RST4_THERM_CTRL_MCU_SWRST>;
117 nvmem-cells = <&lvts_efuse_data1 &lvts_efuse_data2>;
118 nvmem-cell-names = "lvts-calib-data-1", "lvts-calib-data-2";
119 #thermal-sensor-cells = <1>;
123 thermal_zones: thermal-zones {
125 polling-delay = <1000>;
126 polling-delay-passive = <250>;
127 thermal-sensors = <&lvts_mcu MT8195_MCU_LITTLE_CPU0>;
130 cpu0_alert: trip-alert {
131 temperature = <85000>;
136 cpu0_crit: trip-crit {
137 temperature = <100000>;