From c7a22b2cfaeac5f12ac1439fec373fa6c1bd6f2a Mon Sep 17 00:00:00 2001 From: Gopala Krishna Nuthaki Date: Sat, 29 Aug 2020 01:57:20 +0530 Subject: [PATCH] ARM: dts: qcom: Update pm7250b alram sensor thermal config for HOLI Add pm7250b pmic alram thermal zone mitigation with battery cooling device. Change-Id: Icd51766dcbbc78ddaa7fd18e3965454c6dd96473 --- qcom/holi-thermal-overlay.dtsi | 22 ++++++++++++++++++++++ qcom/pm7250b.dtsi | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/qcom/holi-thermal-overlay.dtsi b/qcom/holi-thermal-overlay.dtsi index f9c2e39e0dec..1eaf50bcf0f6 100644 --- a/qcom/holi-thermal-overlay.dtsi +++ b/qcom/holi-thermal-overlay.dtsi @@ -4,6 +4,10 @@ #cooling-cells = <2>; }; +&pm7250b_charger { + #cooling-cells = <2>; +}; + &thermal_zones { socd { cooling-maps { @@ -19,6 +23,24 @@ }; }; + pm7250b_tz { + cooling-maps { + battery_cdev0 { + trip = <&pm7250b_trip0>; + cooling-device = + <&pm7250b_charger (THERMAL_MAX_LIMIT-1) + (THERMAL_MAX_LIMIT-1)>; + }; + + battery_cdev1 { + trip = <&pm7250b_trip1>; + cooling-device = + <&pm7250b_charger THERMAL_MAX_LIMIT + THERMAL_MAX_LIMIT>; + }; + }; + }; + pm6350_tz { cooling-maps { trip0_cpu0 { diff --git a/qcom/pm7250b.dtsi b/qcom/pm7250b.dtsi index 4e2c3c9603b1..12a626a950a8 100644 --- a/qcom/pm7250b.dtsi +++ b/qcom/pm7250b.dtsi @@ -423,7 +423,7 @@ }; &thermal_zones { - pm7250b-tz { + pm7250b_tz { polling-delay-passive = <100>; polling-delay = <0>; thermal-governor = "step_wise";