On Tue, Dec 23, 2025 at 06:02:26PM +0530, Gaurav Kohli wrote:
> Enable cdsp cooling devices and cooling map bindings
> for cdsp.
>
> Signed-off-by: Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
> ---
> arch/arm64/boot/dts/qcom/kodiak.dtsi | 36 ++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/kodiak.dtsi b/arch/arm64/boot/dts/qcom/kodiak.dtsi
> index c2ccbb67f800..03c1cef910a9 100644
> --- a/arch/arm64/boot/dts/qcom/kodiak.dtsi
> +++ b/arch/arm64/boot/dts/qcom/kodiak.dtsi
> @@ -4780,6 +4780,14 @@ compute-cb@14 {
> };
> };
> };
> +
> + cooling {
> + compatible = "qcom,qmi-cooling-cdsp";
> + cdsp_sw: cdsp_sw {
> + label = "cdsp_sw";
> + #cooling-cells = <2>;
> + };
> + };
> };
>
> usb_1: usb@a600000 {
> @@ -7587,12 +7595,26 @@ nspss0_alert0: trip-point0 {
> type = "hot";
> };
>
> + nspss0_alert1: trip-point1 {
> + temperature = <100000>;
As with the previous patch, I want this number to be motivated in the
commit message.
Regards,
Bjorn
> + hysteresis = <5000>;
> + type = "passive";
> + };
> +
> nspss0_crit: nspss0-crit {
> temperature = <110000>;
> hysteresis = <0>;
> type = "critical";
> };
> };
> +
> + cooling-maps {
> + map0 {
> + trip = <&nspss0_alert1>;
> + cooling-device = <&cdsp_sw
> + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> + };
> + };
> };
>
> nspss1-thermal {
> @@ -7605,12 +7627,26 @@ nspss1_alert0: trip-point0 {
> type = "hot";
> };
>
> + nspss1_alert1: trip-point1 {
> + temperature = <100000>;
> + hysteresis = <5000>;
> + type = "passive";
> + };
> +
> nspss1_crit: nspss1-crit {
> temperature = <110000>;
> hysteresis = <0>;
> type = "critical";
> };
> };
> +
> + cooling-maps {
> + map0 {
> + trip = <&nspss1_alert1>;
> + cooling-device = <&cdsp_sw
> + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> + };
> + };
> };
>
> video-thermal {
> --
> 2.34.1
>