Loading Documentation/devicetree/bindings/thermal/qcom,cx-ipeak-cdev.txt 0 → 100644 +33 −0 Original line number Diff line number Diff line Qualcomm Technologies, Inc. CX Peak current cooling device The CX IPEAK cooling device, will be used to set thermal client vote to CX IPEAK LM hardware. When all pre-defined clients on CX rail including thermal client set their vote, CXIP LM hardware throttles pre-defined client on the same rail. Required Parameters: - compatible: Usage: required Value type: <string> Definition: should be "qcom,cxip-lm-cooling-device" - reg: Usage: required Value type: <values in hex> Definition: Must contain 2 variables <a b> where 'a' is the starting register address of the CX IPEAK LM hardware and 'b' is the size of the peripheral address space. - #cooling-cells: Usage: required Value type: <integer> Definition: Must be 2. This is required by of-thermal and refer the doc <devicetree/bindings/thermal/thermal.txt> for more details. Example: cxip_cdev: cxip-cdev@1fed000 { compatible = "qcom,cxip-lm-cooling-device"; reg = <0x1fed000 0x24>; #cooling-cells = <2>; }; arch/arm64/configs/vendor/sdmsteppe-perf_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -332,6 +332,7 @@ CONFIG_QTI_QMI_COOLING_DEVICE=y CONFIG_REGULATOR_COOLING_DEVICE=y CONFIG_QTI_BCL_PMIC5=y CONFIG_QTI_BCL_SOC_DRIVER=y CONFIG_QTI_CX_IPEAK_COOLING_DEVICE=y CONFIG_MFD_SPMI_PMIC=y CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_QPNP_LCDB=y Loading arch/arm64/configs/vendor/sdmsteppe_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -341,6 +341,7 @@ CONFIG_QTI_QMI_COOLING_DEVICE=y CONFIG_REGULATOR_COOLING_DEVICE=y CONFIG_QTI_BCL_PMIC5=y CONFIG_QTI_BCL_SOC_DRIVER=y CONFIG_QTI_CX_IPEAK_COOLING_DEVICE=y CONFIG_MFD_SPMI_PMIC=y CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_QPNP_LCDB=y Loading drivers/thermal/qcom/Kconfig +11 −0 Original line number Diff line number Diff line Loading @@ -103,3 +103,14 @@ config QTI_ADC_TM device. It shows up in Sysfs as a thermal zone with multiple trip points. Thermal client sets threshold temperature for both warm and cool and gets updated when a threshold is reached. config QTI_CX_IPEAK_COOLING_DEVICE bool "CX IPeak cooling device" depends on THERMAL_OF help This implements a mitigation device to place a thermal client vote to CXIP LM hardware. When all pre-defined clients on CX rail including thermal client set their vote, CXIP LM hardware throttles the clients on the CX rail. If you want this support, you should say Y here. drivers/thermal/qcom/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -9,3 +9,4 @@ obj-$(CONFIG_MSM_BCL_PERIPHERAL_CTL) += bcl_peripheral.o obj-$(CONFIG_QTI_BCL_PMIC5) += bcl_pmic5.o obj-$(CONFIG_QTI_BCL_SOC_DRIVER) += bcl_soc.o obj-$(CONFIG_QTI_ADC_TM) += adc-tm.o adc-tm-common.o adc-tm5.o obj-$(CONFIG_QTI_CX_IPEAK_COOLING_DEVICE) += cx_ipeak_cdev.o Loading
Documentation/devicetree/bindings/thermal/qcom,cx-ipeak-cdev.txt 0 → 100644 +33 −0 Original line number Diff line number Diff line Qualcomm Technologies, Inc. CX Peak current cooling device The CX IPEAK cooling device, will be used to set thermal client vote to CX IPEAK LM hardware. When all pre-defined clients on CX rail including thermal client set their vote, CXIP LM hardware throttles pre-defined client on the same rail. Required Parameters: - compatible: Usage: required Value type: <string> Definition: should be "qcom,cxip-lm-cooling-device" - reg: Usage: required Value type: <values in hex> Definition: Must contain 2 variables <a b> where 'a' is the starting register address of the CX IPEAK LM hardware and 'b' is the size of the peripheral address space. - #cooling-cells: Usage: required Value type: <integer> Definition: Must be 2. This is required by of-thermal and refer the doc <devicetree/bindings/thermal/thermal.txt> for more details. Example: cxip_cdev: cxip-cdev@1fed000 { compatible = "qcom,cxip-lm-cooling-device"; reg = <0x1fed000 0x24>; #cooling-cells = <2>; };
arch/arm64/configs/vendor/sdmsteppe-perf_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -332,6 +332,7 @@ CONFIG_QTI_QMI_COOLING_DEVICE=y CONFIG_REGULATOR_COOLING_DEVICE=y CONFIG_QTI_BCL_PMIC5=y CONFIG_QTI_BCL_SOC_DRIVER=y CONFIG_QTI_CX_IPEAK_COOLING_DEVICE=y CONFIG_MFD_SPMI_PMIC=y CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_QPNP_LCDB=y Loading
arch/arm64/configs/vendor/sdmsteppe_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -341,6 +341,7 @@ CONFIG_QTI_QMI_COOLING_DEVICE=y CONFIG_REGULATOR_COOLING_DEVICE=y CONFIG_QTI_BCL_PMIC5=y CONFIG_QTI_BCL_SOC_DRIVER=y CONFIG_QTI_CX_IPEAK_COOLING_DEVICE=y CONFIG_MFD_SPMI_PMIC=y CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_QPNP_LCDB=y Loading
drivers/thermal/qcom/Kconfig +11 −0 Original line number Diff line number Diff line Loading @@ -103,3 +103,14 @@ config QTI_ADC_TM device. It shows up in Sysfs as a thermal zone with multiple trip points. Thermal client sets threshold temperature for both warm and cool and gets updated when a threshold is reached. config QTI_CX_IPEAK_COOLING_DEVICE bool "CX IPeak cooling device" depends on THERMAL_OF help This implements a mitigation device to place a thermal client vote to CXIP LM hardware. When all pre-defined clients on CX rail including thermal client set their vote, CXIP LM hardware throttles the clients on the CX rail. If you want this support, you should say Y here.
drivers/thermal/qcom/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -9,3 +9,4 @@ obj-$(CONFIG_MSM_BCL_PERIPHERAL_CTL) += bcl_peripheral.o obj-$(CONFIG_QTI_BCL_PMIC5) += bcl_pmic5.o obj-$(CONFIG_QTI_BCL_SOC_DRIVER) += bcl_soc.o obj-$(CONFIG_QTI_ADC_TM) += adc-tm.o adc-tm-common.o adc-tm5.o obj-$(CONFIG_QTI_CX_IPEAK_COOLING_DEVICE) += cx_ipeak_cdev.o