Skip to contentSkip to conversation

arm64: dts: mt8183-kukui: Enable thermal Tboard

PATCH Superseded Ben Tseng 2 participants 2 messages Jun 3, 2021

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Ben Tseng

author
#0 lore raw

PATCH v2 1/1 arm64: dts: mt8183-kukui: Enable thermal Tboard

From: Michael Kao <[email protected]>

Add Tboard thermal sensor settings.

pull-up voltage: 1800 mv
pull-up resistor: 75K

Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc ) AuxIn = Vsense * 4096 / 1500

---
Change in v2:
- Rebase to kernel-v5.13-rc1
- Resend

---
 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 14 ++++++++++++++
 arch/arm64/boot/dts/mediatek/mt8183.dtsi       |  2 +-
 2 files changed, 15 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +14 -0
index ff56bcf..65768ab 100644
@@ -847,6 +847,20 @@
 	status = "okay";
 };
 
+&thermal_zones {
+	Tboard1 {
+		polling-delay = <1000>; /* milliseconds */
+		polling-delay-passive = <0>; /* milliseconds */
+		thermal-sensors = <&tboard_thermistor1>;
+	};
+
+	Tboard2 {
+		polling-delay = <1000>; /* milliseconds */
+		polling-delay-passive = <0>; /* milliseconds */
+		thermal-sensors = <&tboard_thermistor2>;
+	};
+};
+
 &u3phy {
 	status = "okay";
 };
arch/arm64/boot/dts/mediatek/mt8183.dtsi +1 -1
index c5e822b..4173a5d 100644
@@ -673,7 +673,7 @@
 			nvmem-cell-names = "calibration-data";
 		};
 
-		thermal-zones {
+		thermal_zones: thermal-zones {
 			cpu_thermal: cpu_thermal {
 				polling-delay-passive = <100>;
 				polling-delay = <500>;
Signature · 1 line
1.8.1.1.dirty
maintainer
#1 lore raw
Quoted 27 lines · Ben Tseng

From: Michael Kao <[email protected]>

Add Tboard thermal sensor settings.

pull-up voltage: 1800 mv
pull-up resistor: 75K

Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc ) AuxIn = Vsense * 4096 / 1500

---
Change in v2:
- Rebase to kernel-v5.13-rc1
- Resend

---
 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 14 ++++++++++++++
 arch/arm64/boot/dts/mediatek/mt8183.dtsi       |  2 +-
 2 files changed, 15 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +0 -0
index ff56bcf..65768ab 100644

arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi line 851

Quoted 5 lines
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +2 -0
@@ -847,6 +847,20 @@
 	status = "okay";
 };
 
+&thermal_zones {
+	Tboard1 {

Lower-case please. It would be also good to know what tboard1 and 2 stands for.

Regards,
Matthias

Quoted 21 lines
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +12 -0
+		polling-delay = <1000>; /* milliseconds */
+		polling-delay-passive = <0>; /* milliseconds */
+		thermal-sensors = <&tboard_thermistor1>;
+	};
+
+	Tboard2 {
+		polling-delay = <1000>; /* milliseconds */
+		polling-delay-passive = <0>; /* milliseconds */
+		thermal-sensors = <&tboard_thermistor2>;
+	};
+};
+
 &u3phy {
 	status = "okay";
 };
arch/arm64/boot/dts/mediatek/mt8183.dtsi +0 -0
index c5e822b..4173a5d 100644

arch/arm64/boot/dts/mediatek/mt8183.dtsi line 679

Quoted 8 lines
arch/arm64/boot/dts/mediatek/mt8183.dtsi +1 -1
@@ -673,7 +673,7 @@
 			nvmem-cell-names = "calibration-data";
 		};
 
-		thermal-zones {
+		thermal_zones: thermal-zones {
 			cpu_thermal: cpu_thermal {
 				polling-delay-passive = <100>;
 				polling-delay = <500>;

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek