Merge "ARM: dts: qcom: Update temp-alarm device names for kalama PMICs"

This commit is contained in:
qctecmdr
2022-03-05 11:33:09 -08:00
committed by Gerrit - the friendly Code Review server
7 changed files with 143 additions and 9 deletions

View File

@@ -32,6 +32,41 @@
status = "ok";
};
&spmi_bus {
#address-cells = <2>;
#size-cells = <0>;
interrupt-controller;
#interrupt-cells = <4>;
pm8010_m: qcom,pm8010@c {
compatible = "qcom,spmi-pmic";
reg = <0xc SPMI_USID>;
#address-cells = <1>;
#size-cells = <0>;
pm8010m_tz: pm8010-m-temp-alarm@2400 {
compatible = "qcom,spmi-temp-alarm";
reg = <0x2400>;
interrupts = <0xc 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
};
pm8010_n: qcom,pm8010@d {
compatible = "qcom,spmi-pmic";
reg = <0xd SPMI_USID>;
#address-cells = <1>;
#size-cells = <0>;
pm8010n_tz: pm8010-n-temp-alarm@2400 {
compatible = "qcom,spmi-temp-alarm";
reg = <0x2400>;
interrupts = <0xd 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
};
};
&pm8550_gpios {
key_vol_up {
key_vol_up_default: key_vol_up_default {
@@ -95,6 +130,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";
@@ -186,6 +226,60 @@
};
&thermal_zones {
pm8010m_tz {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&pm8010m_tz>;
trips {
trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};
trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "critical";
};
trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "critical";
};
};
};
pm8010n_tz {
polling-delay-passive = <100>;
polling-delay = <0>;
thermal-governor = "step_wise";
thermal-sensors = <&pm8010n_tz>;
trips {
trip0 {
temperature = <95000>;
hysteresis = <0>;
type = "passive";
};
trip1 {
temperature = <115000>;
hysteresis = <0>;
type = "critical";
};
trip2 {
temperature = <145000>;
hysteresis = <0>;
type = "critical";
};
};
};
msm-therm {
polling-delay-passive = <0>;
polling-delay = <0>;

View File

@@ -13,7 +13,7 @@
#address-cells = <1>;
#size-cells = <0>;
pm8550_tz: qcom,temp-alarm@a00 {
pm8550_tz: pm8550-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;

View File

@@ -14,13 +14,20 @@
#address-cells = <1>;
#size-cells = <0>;
pm8550b_tz: qcom,temp-alarm@a00 {
pm8550b_tz: pm8550b-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x7 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pm8550b_lite_tz: pm8550b-temp-alarm-lite@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>;

View File

@@ -13,7 +13,7 @@
#address-cells = <1>;
#size-cells = <0>;
pm8550ve_f_tz: qcom,temp-alarm@a00 {
pm8550ve_f_tz: pm8550ve-f-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x5 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;

View File

@@ -13,7 +13,7 @@
#address-cells = <1>;
#size-cells = <0>;
pm8550vs_c_tz: qcom,temp-alarm@a00 {
pm8550vs_c_tz: pm8550vs-c-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
@@ -37,7 +37,7 @@
#size-cells = <0>;
status = "disabled";
pm8550vs_d_tz: qcom,temp-alarm@a00 {
pm8550vs_d_tz: pm8550vs-d-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
@@ -61,7 +61,7 @@
#size-cells = <0>;
status = "disabled";
pm8550vs_e_tz: qcom,temp-alarm@a00 {
pm8550vs_e_tz: pm8550vs-e-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
@@ -85,7 +85,7 @@
#size-cells = <0>;
status = "disabled";
pm8550vs_g_tz: qcom,temp-alarm@a00 {
pm8550vs_g_tz: pm8550vs-g-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;

View File

@@ -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";

View File

@@ -13,7 +13,7 @@
#address-cells = <1>;
#size-cells = <0>;
pmr735d_k_tz: qcom,temp-alarm@a00 {
pmr735d_k_tz: pmr735d-k-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0xa 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
@@ -36,7 +36,7 @@
#address-cells = <1>;
#size-cells = <0>;
pmr735d_l_tz: qcom,temp-alarm@a00 {
pmr735d_l_tz: pmr735d-l-temp-alarm@a00 {
compatible = "qcom,spmi-temp-alarm";
reg = <0xa00>;
interrupts = <0xb 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;