Merge "ARM: dts: qcom: add TEMP_ALARM devices for PMICs used on Sun boards"

This commit is contained in:
qctecmdr
2023-10-12 22:21:39 -07:00
committed by Gerrit - the friendly Code Review server
5 changed files with 262 additions and 0 deletions

View File

@@ -19,6 +19,13 @@
#size-cells = <0>; #size-cells = <0>;
status = "disabled"; status = "disabled";
pm8550ve_d_tz: pm8550ve-d-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pm8550ve_d_gpios: pinctrl@8800 { pm8550ve_d_gpios: pinctrl@8800 {
compatible = "qcom,pm8550ve-gpio"; compatible = "qcom,pm8550ve-gpio";
reg = <0x8800>; reg = <0x8800>;
@@ -36,6 +43,13 @@
#size-cells = <0>; #size-cells = <0>;
status = "disabled"; status = "disabled";
pm8550ve_g_tz: pm8550ve-g-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pm8550ve_g_gpios: pinctrl@8800 { pm8550ve_g_gpios: pinctrl@8800 {
compatible = "qcom,pm8550ve-gpio"; compatible = "qcom,pm8550ve-gpio";
reg = <0x8800>; reg = <0x8800>;
@@ -72,6 +86,62 @@
}; };
&thermal_zones { &thermal_zones {
pm8550ve_d_temp_alarm: pm8550ve_d_tz {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&pm8550ve_d_tz>;
status = "disabled";
trips {
pm8550ve_d_trip0: trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};
pm8550ve_d_trip1: trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "passive";
};
pm8550ve_d_trip2: trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "critical";
};
};
};
pm8550ve_g_temp_alarm: pm8550ve_g_tz {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&pm8550ve_g_tz>;
status = "disabled";
trips {
pm8550ve_g_trip0: trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};
pm8550ve_g_trip1: trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "passive";
};
pm8550ve_g_trip2: trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "critical";
};
};
};
pm8550ve_i_temp_alarm: pm8550ve_i_tz { pm8550ve_i_temp_alarm: pm8550ve_i_tz {
polling-delay-passive = <100>; polling-delay-passive = <100>;
polling-delay = <0>; polling-delay = <0>;

View File

@@ -91,6 +91,13 @@
#size-cells = <0>; #size-cells = <0>;
status = "disabled"; status = "disabled";
pm8550vs_f_tz: pm8550vs-f-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x5 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pm8550vs_f_gpios: pinctrl@8800 { pm8550vs_f_gpios: pinctrl@8800 {
compatible = "qcom,pm8550vs-gpio"; compatible = "qcom,pm8550vs-gpio";
reg = <0x8800>; reg = <0x8800>;
@@ -132,6 +139,13 @@
#size-cells = <0>; #size-cells = <0>;
status = "disabled"; status = "disabled";
pm8550vs_j_tz: pm8550vs-j-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x9 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pm8550vs_j_gpios: pinctrl@8800 { pm8550vs_j_gpios: pinctrl@8800 {
compatible = "qcom,pm8550vs-gpio"; compatible = "qcom,pm8550vs-gpio";
reg = <0x8800>; reg = <0x8800>;
@@ -228,6 +242,34 @@
}; };
}; };
pm8550vs_f_temp_alarm: pm8550vs_f_tz {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&pm8550vs_f_tz>;
status = "disabled";
trips {
pm8550vs_f_trip0: trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};
pm8550vs_f_trip1: trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "passive";
};
pm8550vs_f_trip2: trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "critical";
};
};
};
pm8550vs_g_temp_alarm: pm8550vs_g_tz { pm8550vs_g_temp_alarm: pm8550vs_g_tz {
polling-delay-passive = <100>; polling-delay-passive = <100>;
polling-delay = <0>; polling-delay = <0>;
@@ -255,4 +297,32 @@
}; };
}; };
}; };
pm8550vs_j_temp_alarm: pm8550vs_j_tz {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&pm8550vs_j_tz>;
status = "disabled";
trips {
pm8550vs_j_trip0: trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};
pm8550vs_j_trip1: trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "passive";
};
pm8550vs_j_trip2: trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "critical";
};
};
};
}; };

View File

@@ -18,6 +18,13 @@
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
pmd802x_tz: pmd802x-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pmd802x_gpios: pinctrl@8800 { pmd802x_gpios: pinctrl@8800 {
compatible = "qcom,pmd802x-gpio"; compatible = "qcom,pmd802x-gpio";
gpio-controller; gpio-controller;
@@ -27,3 +34,32 @@
}; };
}; };
}; };
&thermal_zones {
pmd802x_temp_alarm: pmd802x_tz {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&pmd802x_tz>;
trips {
pmd802x_trip0: trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};
pmd802x_trip1: trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "passive";
};
pmd802x_trip2: trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "critical";
};
};
};
};

View File

@@ -18,6 +18,20 @@
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
pmih010x_tz: pmih010x-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x7 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pmih010x_lite_tz: pmih010x-temp-alarm-lite@c00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xc00>;
interrupts = <0x7 0xc 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pmih010x_gpios: pinctrl@8800 { pmih010x_gpios: pinctrl@8800 {
compatible = "qcom,pmih010x-gpio"; compatible = "qcom,pmih010x-gpio";
gpio-controller; gpio-controller;
@@ -27,3 +41,59 @@
}; };
}; };
}; };
&thermal_zones {
pmih010x_temp_alarm: pmih010x_tz {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&pmih010x_tz>;
trips {
pmih010x_trip0: trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};
pmih010x_trip1: trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "passive";
};
pmih010x_trip2: trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "critical";
};
};
};
pmih010x_lite_temp_alarm: pmih010x_lite_tz {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&pmih010x_lite_tz>;
trips {
pmih010x_lite_trip0: trip0 {
temperature = <125000>;
hysteresis = <0>;
type = "passive";
};
pmih010x_lite_trip1: trip1 {
temperature = <135000>;
hysteresis = <0>;
type = "passive";
};
pmih010x_lite_trip2: trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "critical";
};
};
};
};

View File

@@ -34,6 +34,22 @@
status = "ok"; status = "ok";
}; };
&pm8550vs_f_temp_alarm {
status = "ok";
};
&pm8550vs_j_temp_alarm {
status = "ok";
};
&pm8550ve_d_temp_alarm {
status = "ok";
};
&pm8550ve_g_temp_alarm {
status = "ok";
};
&pm8550ve_i_temp_alarm { &pm8550ve_i_temp_alarm {
status = "ok"; status = "ok";
}; };