diff options
author | Robin Peng <robinpeng@google.com> | 2021-11-15 10:35:37 +0800 |
---|---|---|
committer | Robin Peng <robinpeng@google.com> | 2021-11-16 13:31:33 +0800 |
commit | fe02f71e9d6ade188507a27343163fe62030bbd8 (patch) | |
tree | 6e267374b67325948677ce048ef832d297a39b6b /dts/gs101-bluejay-thermal.dtsi | |
parent | 681dc37b333dbfafb6cc34af6e737e2d37a49d48 (diff) | |
download | bluejay-fe02f71e9d6ade188507a27343163fe62030bbd8.tar.gz |
Initial commit of bluejay kernel
branched from pa/2085395
Bug: 206553389
Signed-off-by: Robin Peng <robinpeng@google.com>
Change-Id: I52112e343158b23abf8d32c317b1c4e60389378f
Diffstat (limited to 'dts/gs101-bluejay-thermal.dtsi')
-rw-r--r-- | dts/gs101-bluejay-thermal.dtsi | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/dts/gs101-bluejay-thermal.dtsi b/dts/gs101-bluejay-thermal.dtsi new file mode 100644 index 0000000..b8e3ad8 --- /dev/null +++ b/dts/gs101-bluejay-thermal.dtsi @@ -0,0 +1,127 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Google GS101 Passport-specific thermal device tree source + * + * Copyright (c) 2021 Google, LLC + * https://www.google.com + */ + +#include <dt-bindings/thermal/thermal.h> + +&acpm_mfd_bus1 { + s2mpg11mfd@00 { + gs101_tm1: gs101_spmic_tm1 { + compatible = "google,gs101-spmic-thermal"; + #thermal-sensor-cells = <1>; + adc_chan_en = /bits/ 8 <0xff>; + }; + }; +}; + +/* Thermal Zones */ +&thermal_zones { + neutral_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&gs101_tm1 0>; + trips { + trip_config0: trip-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&gs101_tm1 1>; + trips { + trip_config1: trip-config1 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + charger_skin_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&gs101_tm1 2>; + trips { + trip_config2: trip-config2 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + skin_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&gs101_tm1 3>; + trips { + trip_config3: trip-config3 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + usb_pwr_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&gs101_tm1 4>; + trips { + trip_config4: trip-config4 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + disp_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "step_wise"; + thermal-sensors = <&gs101_tm1 5>; + trips { + trip_config5: trip-config5 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + skin_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&gs101_tm1 6>; + trips { + trip_config6: trip-config6 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + gnss_tcxo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&gs101_tm1 7>; + trips { + trip_config7: trip-config7 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; |