diff --git a/qcom/waipio-thermal.dtsi b/qcom/waipio-thermal.dtsi index b650faab..a13e868d 100644 --- a/qcom/waipio-thermal.dtsi +++ b/qcom/waipio-thermal.dtsi @@ -247,6 +247,15 @@ #include "waipio-thermal-modem.dtsi" +&soc { + qmi-ts-sensors { + cdsp { + qcom,instance-id = ; + qcom,qmi-sensor-names = "isense_trim"; + }; + }; +}; + &thermal_zones { aoss-0 { polling-delay-passive = <0>; @@ -1484,4 +1493,35 @@ }; }; }; + + isense_trim { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&qmi_sensor + (QMI_CDSP_INST_ID+QMI_NSP_ISENSE_TRIM)>; + trips { + isense_trim_trip: isense-trim-config { + temperature = <2>; + hysteresis = <1>; + type = "passive"; + }; + }; + + cooling-maps { + gold_cdev { + trip = <&isense_trim_trip>; + cooling-device = <&CPU4 15 15>; + }; + + gold_plus_cdev { + trip = <&isense_trim_trip>; + cooling-device = <&CPU7 15 15>; + }; + + cdsp_hw_cdev { + trip = <&isense_trim_trip>; + cooling-device = <&cdsp_hw 1 1>; + }; + }; + }; }; diff --git a/qcom/waipio-v2.dtsi b/qcom/waipio-v2.dtsi index df0fa82f..9e27051e 100644 --- a/qcom/waipio-v2.dtsi +++ b/qcom/waipio-v2.dtsi @@ -161,4 +161,15 @@ }; }; }; + +&thermal_zones { + isense_trim { + cooling-maps { + gold_plus_cdev { + cooling-device = <&CPU7 18 18>; + }; + }; + }; +}; + #include "waipio-v2-gpu.dtsi"