mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 09:49:52 +00:00
ARM: dts: qcom: add PM8550B TEMP_ALARM_LITE device for Kalama boards
Add a qcom-spmi-temp-alarm device for the TEMP_ALARM_LITE peripheral found in the PM8550B PMIC. This secondary PMIC die temperature monitor is used to provide additional thermal protection to the chip. Change-Id: I6274ac557d07a93b802bcca5a305fdab7575f7fb
This commit is contained in:
@@ -95,6 +95,11 @@
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pm8550b_lite_tz {
|
||||
io-channels = <&pmk8550_vadc PM8550B_ADC5_GEN3_TEMP_ALARM_LITE>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pm8550vs_c_tz {
|
||||
io-channels = <&pmk8550_vadc PM8550VS_C_ADC5_GEN3_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
|
||||
@@ -21,6 +21,13 @@
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
|
||||
pm8550b_lite_tz: qcom,temp-alarm@c00 {
|
||||
compatible = "qcom,spmi-temp-alarm";
|
||||
reg = <0xc00>;
|
||||
interrupts = <0x7 0xc 0x0 IRQ_TYPE_EDGE_BOTH>;
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
|
||||
pm8550b_gpios: pinctrl@8800 {
|
||||
compatible = "qcom,pm8550b-gpio";
|
||||
reg = <0x8800>;
|
||||
@@ -204,6 +211,33 @@
|
||||
};
|
||||
};
|
||||
|
||||
pm8550b_lite_temp_alarm: pm8550b_lite_tz {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pm8550b_lite_tz>;
|
||||
|
||||
trips {
|
||||
trip0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
trip1 {
|
||||
temperature = <135000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
|
||||
trip2 {
|
||||
temperature = <145000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm8550b-ibat-lvl0 {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
|
||||
@@ -163,6 +163,12 @@
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm8550b_lite_die_temp {
|
||||
reg = <PM8550B_ADC5_GEN3_TEMP_ALARM_LITE>;
|
||||
label = "pm8550b_lite_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm8550b_vph_pwr {
|
||||
reg = <PM8550B_ADC5_GEN3_VPH_PWR>;
|
||||
label = "pm8550b_vph_pwr";
|
||||
|
||||
Reference in New Issue
Block a user