arm64: dts: mt8183-kukui: Add tboard thermal zones
Subsystems (2)
PATCH v3 1/1 arm64: dts: mt8183-kukui: Add tboard thermal zones
From: Michael Kao <[email protected]>
Add tboard thermal zones.
The tboard thermal sensors are a kind of NTC sensors which are located on PCB board to correlate the temperature of the case (Tskin).
pull-up voltage: 1800 mv
pull-up resistor: 75K
Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc ) AuxIn = Vsense * 4096 / 1500
---
Change in v3:
- Modify Tboard to tbaord in mt8183-kukui.dtsi
- Add more description about tboard thermal sensor
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
@@ -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
@@ -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
Quoted 9 lines · Ben Tseng
From: Michael Kao <[email protected]>
Add tboard thermal zones.
The tboard thermal sensors are a kind of NTC sensors which are located on PCB board to correlate the temperature of the case (Tskin).pull-up voltage: 1800 mv
pull-up resistor: 75K
Quoted 7 lines
Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc ) AuxIn = Vsense * 4096 / 1500
Signed-off-by Michael Kao <[email protected]>Signed-off-by Ben Tseng <[email protected]>Tested-by Hsin-Yi Wang <[email protected]>
Applied to v5.13-next/dts64
Thanks!
Quoted 52 lines
---
Change in v3:
- Modify Tboard to tbaord inmt8183-kukui.dtsi
- Add more description about tboard thermal sensorChange 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@@ -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@@ -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>;