xpeng: Import thermal-engine config into device tree

Change-Id: I0e1dcc5c8734f79b37e80b4a0379d4efd4068582
This commit is contained in:
Marc Bourgoin 2023-10-02 14:26:27 -06:00
parent 5595e1fc26
commit 400c4e794e
3 changed files with 189 additions and 1 deletions

View file

@ -0,0 +1,185 @@
[FRONT_TEMP]
algo_type virtual
trip_sensor skin-msm-therm-usr
thresholds -18000
thresholds_clr -20000
sensors camera-therm-usr pmb8350b_therm quiet_therm usb_therm
weights 3 39 5 53
offsets -1000 0 0 0
sampling 1000
math 0
sys_temp
[REPORT-FRONT-TEMP]
algo_type monitor
sampling 300000
sensor FRONT_TEMP
thresholds 42000
thresholds_clr 40000
actions report
action_info 1
[BACK_TEMP]
algo_type virtual
trip_sensor skin-msm-therm-usr
thresholds -18000
thresholds_clr -20000
sensors camera-therm-usr quiet_therm usb_therm
weights 42 37 21
offsets 0 0 0
sampling 1000
math 0
sys_temp
[BACK_PATEMP1]
algo_type virtual
trip_sensor modem-mmw-pa1-usr
thresholds 50000
thresholds_clr 40000
sensors camera-therm-usr quiet_therm usb_therm
weights 42 37 21
offsets 0 0 0
sampling 1000
math 0
[BACK_PATEMP2]
algo_type virtual
trip_sensor modem-mmw-pa2-usr
thresholds 50000
thresholds_clr 40000
sensors camera-therm-usr quiet_therm usb_therm
weights 42 37 21
offsets 0 0 0
sampling 1000
math 0
[REPORT-BACK-TEMP]
algo_type monitor
sampling 300000
sensor BACK_TEMP
thresholds 42000
thresholds_clr 40000
actions report
action_info 1
[DETECT-STANDBY]
algo_type virtual
trip_sensor skin-msm-therm-usr
thresholds -18000
thersholds_clr -20000
sensors cpu_utilization lcd_brightness_value
weights 16 50
sampling 1000
less_than
math 7
[OVERRIDE-CHG]
algo_type monitor
sampling 1000
sensor DETECT-STANDBY
thresholds 1
thresholds_clr 0
actions internal_override
action_info 1
[FREEZE-CHG]
algo_type monitor
sampling 1000
descending
sensor DETECT-STANDBY
thresholds 0
thresholds_clr 1
actions freeze_rule
action_info 1
[MON-MSM-STB]
algo_type monitor
sampling 1000
sensor skin-msm-therm-usr
thresholds 38000 42000 49000
thresholds_clr 35000 38000 42000
actions battery battery battery
action_info 6 5 4
freezing
[MON-MSM-COMB1]
algo_type monitor
sampling 1000
sensor BACK_TEMP
thresholds 35000 37000 38000 41000 43000
thresholds_clr 32000 35000 37000 38000 41000
actions battery battery battery battery battery
action_info 5 4 3 2 1
override_c 10000
[MON-MSM-CPU0]
algo_type monitor
sampling 1000
sensor BACK_TEMP
thresholds 38000 40000 43000 48000
thresholds_clr 36000 38000 40000 43000
actions cpu0 cpu0 cpu0 cpu0
action_info 1708800 1497600 1305600 1094400
[MON-MSM-CPU4]
algo_type monitor
sampling 1000
sensor BACK_TEMP
thresholds 37000 39000 43000 48000
thresholds_clr 36000 37000 39000 43000
actions cpu4 cpu4 cpu4 cpu4
action_info 1996800 1670400 1440000 1209600
[MON-MSM-CPU7]
algo_type monitor
sampling 1000
sensor BACK_TEMP
thresholds 37000 38000 39000 43000
thresholds_clr 36000 37000 38000 39000
actions cpu7 cpu7 cpu7 cpu7
action_info 1785600 1555200 1305600 1075200
[MON-MSM-GPU]
algo_type monitor
sampling 1000
sensor BACK_TEMP
thresholds 39000 40000 41000 42000 43000
thresholds_clr 37000 39000 40000 41000 42000
actions gpu gpu gpu gpu gpu
action_info 608000000 540000000 443000000 379000000 315000000
[MON-MODEM1]
algo_type monitor
sampling 5000
sensor BACK_TEMP
thresholds 44500
thresholds_clr 42000
actions modem_skin
action_info 1
[MON-MODEM2]
algo_type monitor
sampling 5000
sensor BACK_PATEMP1
thresholds 49000
thresholds_clr 47000
actions modem_skin
action_info 2
[MON-MODEM3]
algo_type monitor
sampling 5000
sensor BACK_PATEMP2
thresholds 49000
thresholds_clr 47000
actions modem_skin
action_info 2
[MON-PA-FR1]
algo_type monitor
sampling 5000
sensor BACK_TEMP
thresholds 46000
thresholds_clr 44000
actions modem_pa_fr1
action_info 1

View file

@ -100,5 +100,9 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
# Thermal
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal-engine-xpeng.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-xpeng.conf
# Inherit from vendor blobs
$(call inherit-product, vendor/motorola/xpeng/xpeng-vendor.mk)

View file

@ -652,7 +652,6 @@ vendor/etc/sensors/proto/sns_wrist_tilt_gesture.proto
vendor/etc/sensors/sns_reg_config
# Thermal engine - configs
vendor/etc/thermal-engine-xpeng.conf
vendor/etc/thermal-engine.conf
# Touchscreen firmware