ARM: dts: qcom: Add BCL2 node and thermal zone mitigations for sun
This change adds to enable BCL2 node; adds bcl thermal zone mitigations and cooling maps for pmih010x. Change-Id: I4e4cef9a1d7064afd32ee1422bb2e5a23a31689a Signed-off-by: Minghao Zhang <quic_minghao@quicinc.com>
This commit is contained in:
@@ -250,6 +250,20 @@
|
|||||||
#thermal-sensor-cells = <1>;
|
#thermal-sensor-cells = <1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pmih010x_bcl2: bcl@4900 {
|
||||||
|
compatible = "qcom,bcl-v5";
|
||||||
|
reg = <0x4900 0x100>;
|
||||||
|
interrupts = <0x7 0x49 0x0 IRQ_TYPE_NONE>,
|
||||||
|
<0x7 0x49 0x1 IRQ_TYPE_NONE>,
|
||||||
|
<0x7 0x49 0x2 IRQ_TYPE_NONE>;
|
||||||
|
interrupt-names = "bcl-lvl0",
|
||||||
|
"bcl-lvl1",
|
||||||
|
"bcl-lvl2";
|
||||||
|
qcom,pmic7-threshold;
|
||||||
|
#thermal-sensor-cells = <1>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
bcl_soc: bcl-soc {
|
bcl_soc: bcl-soc {
|
||||||
compatible = "qcom,msm-bcl-soc";
|
compatible = "qcom,msm-bcl-soc";
|
||||||
#thermal-sensor-cells = <0>;
|
#thermal-sensor-cells = <0>;
|
||||||
|
@@ -96,3 +96,152 @@
|
|||||||
&ibat_lvl1 {
|
&ibat_lvl1 {
|
||||||
temperature = <7000>;
|
temperature = <7000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pmih010x_bcl {
|
||||||
|
qcom,bcl-mon-vbat-only;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&pmih010x_bcl2 {
|
||||||
|
qcom,bcl-mon-ibat-only;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&thermal_zones {
|
||||||
|
pmih010x-ibat2-lvl0 {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&pmih010x_bcl2 0>;
|
||||||
|
|
||||||
|
trips {
|
||||||
|
ibat2_lvl0:ibat2-lvl0 {
|
||||||
|
temperature = <6500>;
|
||||||
|
hysteresis = <200>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
pmih010x-ibat2-lvl1 {
|
||||||
|
polling-delay-passive = <0>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&pmih010x_bcl2 1>;
|
||||||
|
|
||||||
|
trips {
|
||||||
|
ibat2_lvl1:ibat2-lvl1 {
|
||||||
|
temperature = <7000>;
|
||||||
|
hysteresis = <200>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
pmih010x-bcl2-lvl0 {
|
||||||
|
polling-delay-passive = <50>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&pmih010x_bcl2 5>;
|
||||||
|
|
||||||
|
trips {
|
||||||
|
thermal-engine-trip {
|
||||||
|
temperature = <100>;
|
||||||
|
hysteresis = <0>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
|
||||||
|
thermal-hal-trip {
|
||||||
|
temperature = <100>;
|
||||||
|
hysteresis = <0>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
|
||||||
|
b_bcl2_lvl0: b-bcl2-lvl0 {
|
||||||
|
temperature = <1>;
|
||||||
|
hysteresis = <1>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cooling-maps {
|
||||||
|
lbat2_modem0 {
|
||||||
|
trip = <&b_bcl2_lvl0>;
|
||||||
|
cooling-device = <&modem_bcl 1 1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
lbat2_gpu0 {
|
||||||
|
trip = <&b_bcl2_lvl0>;
|
||||||
|
cooling-device = <&msm_gpu 1 1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
pmih010x-bcl2-lvl1 {
|
||||||
|
polling-delay-passive = <50>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&pmih010x_bcl2 6>;
|
||||||
|
|
||||||
|
trips {
|
||||||
|
thermal-engine-trip {
|
||||||
|
temperature = <100>;
|
||||||
|
hysteresis = <0>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
|
||||||
|
thermal-hal-trip {
|
||||||
|
temperature = <100>;
|
||||||
|
hysteresis = <0>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
|
||||||
|
b_bcl2_lvl1: b-bcl2-lvl1 {
|
||||||
|
temperature = <1>;
|
||||||
|
hysteresis = <1>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cooling-maps {
|
||||||
|
lbat2_modem1 {
|
||||||
|
trip = <&b_bcl2_lvl1>;
|
||||||
|
cooling-device = <&modem_bcl 2 2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
lbat2_gpu1 {
|
||||||
|
trip = <&b_bcl2_lvl1>;
|
||||||
|
cooling-device = <&msm_gpu 2 2>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
pmih010x-bcl2-lvl2 {
|
||||||
|
polling-delay-passive = <50>;
|
||||||
|
polling-delay = <0>;
|
||||||
|
thermal-sensors = <&pmih010x_bcl2 7>;
|
||||||
|
|
||||||
|
trips {
|
||||||
|
thermal-engine-trip {
|
||||||
|
temperature = <100>;
|
||||||
|
hysteresis = <0>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
|
||||||
|
thermal-hal-trip {
|
||||||
|
temperature = <100>;
|
||||||
|
hysteresis = <0>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
|
||||||
|
b_bcl2_lvl2: b-bcl2-lvl2 {
|
||||||
|
temperature = <1>;
|
||||||
|
hysteresis = <1>;
|
||||||
|
type = "passive";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cooling-maps {
|
||||||
|
lbat2_gpu2 {
|
||||||
|
trip = <&b_bcl2_lvl2>;
|
||||||
|
cooling-device = <&msm_gpu 3 3>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user