summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Sheng <alicesheng@google.com>2021-10-06 10:41:06 -0700
committerAlice Sheng <alicesheng@google.com>2021-10-06 17:59:43 +0000
commit3f43b5ec9c45fbf6c07a7a171c0f19d6edd28cb6 (patch)
tree285f905b152722e5ea922a62abc4915fc9a24cd8
parent5f5667470ca437258a1ed765456ed4bf582c83c4 (diff)
downloaddevicetree-3f43b5ec9c45fbf6c07a7a171c0f19d6edd28cb6.tar.gz
Add and adjust new temperature thresholds
To account for the fact that we now need to track battery temperature as well. The exact numbers will need to be readjusted later. Bug: 200039743 Change-Id: Ie2cf734cbe506b1d3490cfa8aad10a13024a7a70
-rw-r--r--r11_battery_root.dtsi4
-rw-r--r--r11_evt1_battery.dtsi24
2 files changed, 27 insertions, 1 deletions
diff --git a/r11_battery_root.dtsi b/r11_battery_root.dtsi
index ac85ce8..bfec404 100644
--- a/r11_battery_root.dtsi
+++ b/r11_battery_root.dtsi
@@ -20,6 +20,7 @@ google_battery: battery {
battery,fuelgauge_name = "s2mpw02-fuelgauge";
battery,wlc_name = "hl6111-charger";
battery,bat_tz_name = "BATT_NTC";
+ battery,bat_cdev_name = "batt_cool_dev";
battery,vendor = "Desay";
battery,chg_volt_limits = <4200 4350>;
@@ -54,6 +55,9 @@ google_battery: battery {
wlc_cool_dev: wlc_cool_dev {
};
+batt_cool_dev: batt_cool_dev {
+};
+
tsmab104_ntc: thermal-sensor {
compatible = "google,ntc-thermal";
#thermal-sensor-cells = <1>;
diff --git a/r11_evt1_battery.dtsi b/r11_evt1_battery.dtsi
index 9fc536a..8319164 100644
--- a/r11_evt1_battery.dtsi
+++ b/r11_evt1_battery.dtsi
@@ -1,25 +1,47 @@
&google_battery {
battery,wlc_tz_name = "PPG_NTC";
battery,wlc_cdev_name = "wlc_cool_dev";
+ battery,charge_reset_soc = <80>;
};
&wlc_cool_dev {
#cooling-cells = <2>;
};
+&batt_cool_dev {
+ #cooling-cells = <2>;
+};
+
&tsmab104_ntc {
io-channels = <&exynos_adc 0>, <&exynos_adc 1>, <&exynos_adc 5>, <&exynos_adc 4>, <&exynos_adc 6>;
io-channel-names = "soc-ntc", "batt-ntc", "lte-ntc", "audio-ntc", "ppg-ntc";
};
&batt_ntc {
+ governor = "fair_share";
trips {
+ batt_throttle_low: batt-throttle-low {
+ temperature = <45000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+ batt_throttle_high: batt-throttle-high {
+ temperature = <46000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
battery_shutdown: battery-shutdown {
- temperature = <60000>;
+ temperature = <61000>;
hysteresis = <1000>;
type = "critical";
};
};
+ cooling-maps {
+ battery-charge-throttled {
+ trip = <&batt_throttle_low>;
+ cooling-device = <&batt_cool_dev (~0) (~0) >; /* THERMAL_NO_LIMIT THERMAL_NO_LIMIT */
+ };
+ };
};
&lte_pa_ntc {