MT7986 Thermal Service Application Note 20220202 v1.0
MT7986 Thermal Service Application Note 20220202 v1.0
MT7986 Thermal Service Application Note 20220202 v1.0
Use
z.c al
tws enti
om
ng@ nfid
MT7986 Thermal Service Application Note
gyo Co
din Tek
2021/3/11 Judy Huang
ang edia
M
z.c al
tws enti
om
Version Date Author (Optional) Description
0.1 2021-3-11 Judy Huang Initial draft
ng@ nfid
1.0 2022-2-2 Micheal Su Official release
gyo Co
din Tek
ang edia
M
MediaTek Proprietary and Confidential. © 2021 MediaTek Inc. All rights reserved. 2
CONFIDENTIAL C
Use
Outline
z.c al
tws enti
om
Purpose
ng@ nfid
Thermal Interrupt Control Flow
Thermal ADC and Temperature Transformation
gyo Co
iwpriv command
din Tek
ang edia
M
MediaTek Proprietary and Confidential. © 2021 MediaTek Inc. All rights reserved. 3
CONFIDENTIAL C
Use
Purpose
z.c al
tws enti
• Get HW temperature status, and trigger thermal interrupt for temperature related action
om
handler. SW can set thermal task by composing thermal interrupt flag, thermal interrupt
threshold, and thermal task handler.
ng@ nfid
• Once an HW interrupt is triggered, thermal task handler would execute and config new
interrupt threshold.
gyo Co
din Tek
ang edia
M
MediaTek Proprietary and Confidential. © 2021 MediaTek Inc. All rights reserved. 4
CONFIDENTIAL C
Use
Thermal Interrupt Control Flow
z.c al
tws enti
om
ng@ nfid
gyo Co
din Tek
ang edia
M
MediaTek Proprietary and Confidential. © 2021 MediaTek Inc. All rights reserved. 5
CONFIDENTIAL C
Use
Thermal ADC and Temperature Transformation
z.c al
tws enti
• Read Efuse column for transformation relationship slope calibration value and offset
om
calibration value.
ng@ nfid
• For thermal adc value Y(n), Temperature in Celcius
• T(n) = (Y(n)-Calibration Part) * (THERMO_TEMP_SWEEP/ THERMO_CODE_SWEEP +
gyo Co
Slope/100) + THERMO_REF_OFFSET_DEF + Compensation Offset
din Tek
THERMO_TEMP_SWEEP = 209
THERMO_CODE_SWEEP = 100
ang edia THERMO_REF_OFFSET_DEF = 28
M
MediaTek Proprietary and Confidential. © 2021 MediaTek Inc. All rights reserved. 6
CONFIDENTIAL C
Use
iwpriv command
z.c al
tws enti
• # read temperature (temperature in ℃)
om
– iwpriv ra0 set get_thermal_sensor=0
ng@ nfid
• # read temperature (ADC value)
– iwpriv ra0 set get_thermal_sensor=1
gyo Co
• # check thermal tasks: threshold/ trigger enable
din Tek
– iwpriv ra0 set ThermalTaskInfo=0
ang edia
M
MediaTek Proprietary and Confidential. © 2021 MediaTek Inc. All rights reserved. 7
Use
z.c al
tws enti
om
ng@ nfid
gyo Co
din Tek
MediaTek Proprietary and Confidential
© 2021 MediaTek Inc. All rights reserved. The term “MediaTek” refers to MediaTek Inc. and/or its affiliates.
ang edia
This document has been prepared solely for informational purposes. The content herein is made available to a restricted number of clients or partners, for internal
use, pursuant to a license agreement or any other applicable agreement and subject to this notice. THIS DOCUMENT AND ANY ORAL INFORMATION PROVIDED BY
MEDIATEK IN CONNECTION WITH THIS DOCUMENT (COLLECTIVELY THIS “DOCUMENT”), IF ANY, ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND,
WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE. MEDIATEK DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS OR GUARANTEE REGARDING THE
M
USE OR THE RESULT OF THE USE OF THIS DOCUMENT IN TERMS OF CORRECTNESS, ACCURACY, TIMELINESS, RELIABILITY, OR OTHERWISE. MEDIATEK SPECIFICALLY
DISCLAIMS ALL WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTIES ARISING OUT OF
COURSE OF PERFORMANCE, COURSE OF DEALING OR USAGE OF TRADE. This Document must be held in strict confidence and may not be communicated,
reproduced, distributed or disclosed to any third party or to any other person, or being referred to publicly, in whole or in part at any time except with MediaTek’s
prior written consent, which MediaTek reserves the right to deny for any reason. You agree to indemnify MediaTek for any loss or damages suffered by MediaTek
for your unauthorized use or disclosure of this Document, in whole or in part. If you are not the intended recipient of this document, please delete and destroy all
copies immediately.
CONFIDENTIAL C
Use
z.c al
tws enti
om
ng@ nfid
gyo Co
din Tek
ang edia
M
MediaTek Proprietary and Confidential. © 2021 MediaTek Inc. All rights reserved.