[PATCH 1/2] dt-bindings: thermal: mediatek: Add MT8189 LVTS bindings
mtk36707
kuanfu.lu at mediatek.com
Sun Apr 26 23:48:29 PDT 2026
From: Kuanfu Lu <kuanfu.lu at mediatek.com>
Add support for the MediaTek MT8189 LVTS thermal controller to
the device tree bindings. This includes new compatible strings
and required properties for MT8189.
Signed-off-by: Kuanfu Lu <kuanfu.lu at mediatek.com>
---
.../thermal/mediatek,lvts-thermal.yaml | 27 +++++++++++++++++--
.../thermal/mediatek,lvts-thermal.h | 20 ++++++++++++++
2 files changed, 45 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml b/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml
index 975235130670..64fc6b5385de 100644
--- a/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml
@@ -23,6 +23,8 @@ properties:
- mediatek,mt8186-lvts
- mediatek,mt8188-lvts-ap
- mediatek,mt8188-lvts-mcu
+ - mediatek,mt8189-lvts-ap
+ - mediatek,mt8189-lvts-mcu
- mediatek,mt8192-lvts-ap
- mediatek,mt8192-lvts-mcu
- mediatek,mt8195-lvts-ap
@@ -61,6 +63,21 @@ properties:
allOf:
- $ref: thermal-sensor.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - mediatek,mt8189-lvts-ap
+ - mediatek,mt8189-lvts-mcu
+ then:
+ properties:
+ nvmem-cells:
+ minItems: 2
+
+ nvmem-cell-names:
+ minItems: 2
+
- if:
properties:
compatible:
@@ -78,6 +95,10 @@ allOf:
nvmem-cell-names:
maxItems: 1
+ required:
+ - clocks
+ - resets
+
- if:
properties:
compatible:
@@ -94,12 +115,14 @@ allOf:
nvmem-cell-names:
minItems: 2
+ required:
+ - clocks
+ - resets
+
required:
- compatible
- reg
- interrupts
- - clocks
- - resets
- nvmem-cells
- nvmem-cell-names
diff --git a/include/dt-bindings/thermal/mediatek,lvts-thermal.h b/include/dt-bindings/thermal/mediatek,lvts-thermal.h
index 350f98178b26..3f493d7f13b3 100644
--- a/include/dt-bindings/thermal/mediatek,lvts-thermal.h
+++ b/include/dt-bindings/thermal/mediatek,lvts-thermal.h
@@ -45,6 +45,26 @@
#define MT8188_AP_CAM1 6
#define MT8188_AP_CAM2 7
+#define MT8189_MCU_BIG_CPU1 0
+#define MT8189_MCU_BIG_CPU2 1
+#define MT8189_MCU_BIG_CPU3 2
+#define MT8189_MCU_BIG_CPU4 3
+#define MT8189_MCU_LITTLE_CPU1 4
+#define MT8189_MCU_LITTLE_CPU2 5
+#define MT8189_MCU_LITTLE_CPU3 6
+#define MT8189_MCU_LITTLE_CPU4 7
+#define MT8189_MCU_LITTLE_CPU5 8
+#define MT8189_MCU_LITTLE_CPU6 9
+#define MT8189_MCU_LITTLE_CPU7 10
+#define MT8189_MCU_LITTLE_CPU8 11
+
+#define MT8189_AP_SOC1 12
+#define MT8189_AP_SOC2 13
+#define MT8189_AP_SOC3 14
+#define MT8189_AP_APU 15
+#define MT8189_AP_GPU1 16
+#define MT8189_AP_GPU2 17
+
#define MT8195_MCU_BIG_CPU0 0
#define MT8195_MCU_BIG_CPU1 1
#define MT8195_MCU_BIG_CPU2 2
--
2.45.2
More information about the Linux-mediatek
mailing list