From patchwork Thu Feb 28 12:21:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 159364 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp577151jad; Thu, 28 Feb 2019 04:28:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IbZYdtabKu5nHRCZTt56uzWFhnEzb0KZU7ujPy/jCMWbDJ86QEC5awYGdY0Zqz1rk+VyRNs X-Received: by 2002:a65:44cb:: with SMTP id g11mr8327441pgs.29.1551356881256; Thu, 28 Feb 2019 04:28:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551356881; cv=none; d=google.com; s=arc-20160816; b=avb/n6q/uHOjBVc0gkYsenJRv8Mz0yipDU0hrNSUQNmUKJ62tj7r2L/8Z5L0gUJW3B HQ7pqWxVH3orlgYcIZBVqy8RDDiEXDt2olwOpxHJk80LaFNLMwjruSbLv1jAwTdf2axE yrvnLjrqOlOr7+hVDtmkpXO4ZDz3gLX6Vi7oX0eNTQ6D6Byk+0OPx2v4PaJsV2mG9FPD gb457/sToh8YwTlYEDsQfEuAWqlKl7F6/+K3/dUa7dlkbKWKoa/RU47WTDZtQPySBV76 tgvw4TGF8D+eoz4/LGI64NEOAbARm7+xeMd+PV4gwrOZ8gL8nzG4RY74Wqh39c1a3LBW hBRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=n8wsQ7ixOIiYIm36smSOqEN/oeuVV2Uzvv7QGvE7MK8=; b=WNYDiOHKIm1Z8euxlkKIQIQeXe9cYeamA/WyieseRQgf+tSQO6k1J4aKGPW70YmjbP Jyuv5hRffrEUFhPJc1JZpx4wx7+KRCMRJD2uAK5NDaHOuPS1pM0GjgoaYRCqI8Jv1ElE m5xZg9P4OcQcXDhtWWqJt4vspB/x4o9XKVSLYVV2SIWbNwrCYBExC+BRK5OPIX1VfNXQ QYRki4I6vwWkfSB5p3vf+OFT0Fjk7EhpTL4c+K7q9MzUmjkTbI+LO3fbu09NGDNsPKtT 2kFTvW5FlK8S5C+rjViB8okRvGkXLf/ZVEUnGa6WhNmym5cOaRApgo92XyWnyD63kH8b rh9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zpLpTz9E; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f74si19077230pfh.38.2019.02.28.04.28.01; Thu, 28 Feb 2019 04:28:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zpLpTz9E; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731968AbfB1M2A (ORCPT + 7 others); Thu, 28 Feb 2019 07:28:00 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45912 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731919AbfB1M17 (ORCPT ); Thu, 28 Feb 2019 07:27:59 -0500 Received: by mail-wr1-f65.google.com with SMTP id w17so21717007wrn.12 for ; Thu, 28 Feb 2019 04:27:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=n8wsQ7ixOIiYIm36smSOqEN/oeuVV2Uzvv7QGvE7MK8=; b=zpLpTz9EuHe3H8J6BSqrYGGXTQ59pWPo9uc0KOL3uym5G7IC5wsSariHgQn36HPBDw irV3C4yxFv0bUCagssXQLQIy0m2YSNPGTKxqKZySv5s3rd7ZdtS4pzgtrHTJ+jxnD4yA w0ahKEvSrkGcZWoX6fHpBT7VWPsPHAk04Flh0/4S3VZ08V7gxqAIwKvgongvnVVqg455 sDkKAmvN8kx1fH0/FdjaGEmzORdawyBNWI8bN3GKozOgEGnVFyclIj82+Dxl8o6heTxG 76fmwzxKpOntZM+ED9U0tznDVrlNkQ9bskfhpWts3HtPkgEX2RlAflM8HcKTGUIGniTP /M/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=n8wsQ7ixOIiYIm36smSOqEN/oeuVV2Uzvv7QGvE7MK8=; b=CayCIPhtZ6T/Fv3MZiIr8bP86fp2OHVd0lS54V+q6qAQ4RQdSsnJppFed2CDciRdkD OWlcdxdBj7dS4NBDoe7qkRzDuI9nDsCabvi0G74urgNkwS0GVfNfKiUb71jjs/jIAjnq +xETfo5CMjZoAfMNuiiZiKiJgf+qX9aFYXawB2AqjnsqFxielFgambflM2vmUnxOgAB7 97a+iEkCcAib6xYcXPnSZL/zAEsMnE4NMfIY1LgtkwpGfovHjsn/R7C/RpsiHh7sEnFH gxO1P+9EchGw8LlbaELEuarh+duV7M+0xgJgX2tTFSVuZxsw/j71++pcokh3gyInnt3F 24lQ== X-Gm-Message-State: APjAAAU2s+l8X40NffS6+oK9I3cbcJby6ffcaJ2txaBuqz9bG5YJsiZF kh/joRfj5qjDKZlWQae7x+0+CA== X-Received: by 2002:a05:6000:1084:: with SMTP id y4mr6228423wrw.14.1551356877669; Thu, 28 Feb 2019 04:27:57 -0800 (PST) Received: from localhost ([49.248.54.130]) by smtp.gmail.com with ESMTPSA id a1sm25201268wrq.96.2019.02.28.04.27.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 04:27:56 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Daniel Lezcano , David Brown , Zhang Rui Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 20/24] dt: thermal: tsens: Add bindings for qcs404 Date: Thu, 28 Feb 2019 17:51:10 +0530 Message-Id: <65d1d506388301b88fdc4380897441d3b1d36f90.1551355503.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org qcs404 uses v1 of the TSENS IP block. Create a fallback DT property "qcom,tsens-v1" to gather common code Signed-off-by: Amit Kucheria Reviewed-by: Rob Herring --- .../devicetree/bindings/thermal/qcom-tsens.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt index 1d9e8cf61018..673cc1831ee9 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.txt +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.txt @@ -6,11 +6,14 @@ Required properties: - "qcom,msm8916-tsens" (MSM8916) - "qcom,msm8974-tsens" (MSM8974) - "qcom,msm8996-tsens" (MSM8996) + - "qcom,qcs404-tsens", "qcom,tsens-v1" (QCS404) - "qcom,msm8998-tsens", "qcom,tsens-v2" (MSM8998) - "qcom,sdm845-tsens", "qcom,tsens-v2" (SDM845) The generic "qcom,tsens-v2" property must be used as a fallback for any SoC with version 2 of the TSENS IP. MSM8996 is the only exception because the generic property did not exist when support was added. + Similarly, the generic "qcom,tsens-v1" property must be used as a fallback for + any SoC with version 1 of the TSENS IP. - reg: Address range of the thermal registers. New platforms containing v2.x.y of the TSENS IP must specify the SROT and TM @@ -39,3 +42,14 @@ tsens0: thermal-sensor@c263000 { #qcom,sensors = <13>; #thermal-sensor-cells = <1>; }; + +Example 3 (for any platform containing v1 of the TSENS IP): +tsens: thermal-sensor@4a9000 { + compatible = "qcom,qcs404-tsens", "qcom,tsens-v1"; + reg = <0x004a9000 0x1000>, /* TM */ + <0x004a8000 0x1000>; /* SROT */ + nvmem-cells = <&tsens_caldata>; + nvmem-cell-names = "calib"; + #qcom,sensors = <10>; + #thermal-sensor-cells = <1>; + }; From patchwork Thu Feb 28 12:21:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 159367 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp577412jad; Thu, 28 Feb 2019 04:28:19 -0800 (PST) X-Google-Smtp-Source: AHgI3Iay42RVThqq5SjwS2TU39MQtiMMuSngEBzjYTDmfZLrFQipK8zel+jSn/0qaT5Nm+yzmYOd X-Received: by 2002:a63:6bc6:: with SMTP id g189mr8313974pgc.427.1551356899527; Thu, 28 Feb 2019 04:28:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551356899; cv=none; d=google.com; s=arc-20160816; b=CcH/yVpyB5KSm6WZ89t5WCEhwmkFbOiN5xUjaYj4S0MHJMjT6d+mp+7WIJFtRLxV3C toA71BWkKZ9HBEZMENXW78AzUjqiNwoB3xtHQJn4QcFEuQklfQiMJbxcKY1x+u2Z/yP8 GCE8mXezRcgCpayrBjZnEjPmJFliC/ekbGAKPAo1iUthUygV+54arQmsgxZbGdbIZRRX iMTtH3TvzVb+WqTzNlpUEdKwGayMLkJxITZZSRdRMLMtKg4Sg9ChWxq5XWl8mnhDJp0G 2QRRoDhSlh9wEQTnGDH6goDpcRYCo/tAvqyJ5nVEKBEBtH9MU+CcPzD51C6TksR6XEBE mrpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=C9KTcipBBMH7iKIKkQeECQsP2OoeAr07E1QgLTBcEng=; b=BinKMjWcJjqL8I/YmmiOBlSccXdr2kjzDYjWaB7iyXmWRKHcMAKQLKkXQOUmIyFD9D eL8RHDOoMaTjv/Kv4LjCcm3i1nOIo9zHc3Bhf7zV8YS+roP5i2CTOOgf2ilTBopmRz5A j/7zSqLJ88VtgmspVnnkMKb0VD7bNtHXk/E0kJqwMO7TVFFYdYdRns1pvwxXnIlvkv2R 3QT8JxSzRHGngRTSwn3Ra9tmGVRzRLqlEogKay23ko+WuFppui15M6B77U3hiPiZIDET TyAFmeJVgK2e0q+/excOksIqf7400vbrKNG+7/PJWmDJ2ubZD4d+1X3Ov0khwHFu+9lW hapQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4rNZOWP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18si17143923pgf.439.2019.02.28.04.28.19; Thu, 28 Feb 2019 04:28:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4rNZOWP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731718AbfB1M2S (ORCPT + 7 others); Thu, 28 Feb 2019 07:28:18 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50332 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731126AbfB1M2S (ORCPT ); Thu, 28 Feb 2019 07:28:18 -0500 Received: by mail-wm1-f68.google.com with SMTP id x7so9004824wmj.0 for ; Thu, 28 Feb 2019 04:28:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=C9KTcipBBMH7iKIKkQeECQsP2OoeAr07E1QgLTBcEng=; b=U4rNZOWPYk3JdSh5EfKt+17n3fALS6FunIpr9HvS0GEuvgK28pPMANAdGYJWJWGOKy Q0b8lh9LFQrjIfGUNvrzsu/gaoJOanYgVGFJGNIUINuX1faSy3a4p2htrMnHxNxmtONK efQEjt6GRZWJLTqSRHHs528gzI/0m9aQDhdPT+jDKoNW7ST+yc0oGYrYfLdFlHOiR/xK vMqoyJJxIT44R+gBVmyI/fNo8Vx3DTjdUns3q/8VohR6MpG672FCGT0leSYMGIgVuc8k nWVLuCJoNDCoW7e5+3Ed8LSfTM5JTxzJme87HELZZ5BAOa8YNnZlXbWb10zcrfpLT+O1 rllA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=C9KTcipBBMH7iKIKkQeECQsP2OoeAr07E1QgLTBcEng=; b=aFwKKe/ub7j7NHAC2+J0SnAT6uAes28Dq5Xjw+VkMIrY7crlXIrOSgsm1/gFztpytC X8HrIDNfeDet6MXPFvLuSwGFmRFpn9hnHCheAVO5GQ8aF3swxfVUZ91/xbdr37E7J27a Ut47rQG++Ajw9DJU00Y9qP7maZ0WW3EsEs5BRw50Rob1DId7+KgnerjUsrSgnAObucal SrLQx671ysc0JmpHppMIONXg3BJVO3xT5ietO8YDzPaPoSx4HeR4uVXqAHBdcEFttaLE amrrrDzTY6L0DyU2LPJh2dT0J3BJH9NuvRjzlAI2q/dZqzGJVNbpE8sinxj0E+mgQKPX KJtA== X-Gm-Message-State: APjAAAXm8veUrfSgx7MLtKrCYJX6+EF+LeAM9DR0HiNpZoVrLT95DC7a UrgxgOF/R62mkxCa6ByToxkVSQ== X-Received: by 2002:a1c:7d8c:: with SMTP id y134mr2914817wmc.102.1551356896073; Thu, 28 Feb 2019 04:28:16 -0800 (PST) Received: from localhost ([49.248.54.130]) by smtp.gmail.com with ESMTPSA id i16sm15119244wru.16.2019.02.28.04.28.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 04:28:15 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Daniel Lezcano , David Brown , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v2 23/24] arm64: dts: qcom: qcs404: Add thermal zones for each sensor Date: Thu, 28 Feb 2019 17:51:13 +0530 Message-Id: <63c4711ea258c557158ef9dd551a1b4eae4038da.1551355503.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org qcs404 has 10 sensors connected to the single TSENS IP. Define a thermal zone for each of those sensors to expose the temperature of each zone. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 252 +++++++++++++++++++++++++++ 1 file changed, 252 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 57d14d8f0c90..8b3ac5f7f2a3 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -3,6 +3,7 @@ #include #include +#include / { interrupt-parent = <&intc>; @@ -30,6 +31,7 @@ reg = <0x100>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; CPU1: cpu@101 { @@ -38,6 +40,7 @@ reg = <0x101>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; CPU2: cpu@102 { @@ -46,6 +49,7 @@ reg = <0x102>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; CPU3: cpu@103 { @@ -54,6 +58,7 @@ reg = <0x103>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; L2_0: l2-cache { @@ -507,4 +512,251 @@ #interrupt-cells = <2>; }; }; + + thermal-zones { + aoss-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 0>; + + trips { + aoss_alert0: trip-point@0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + aoss_crit: aoss_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + q6-hvx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 1>; + + trips { + dsp_alert0: trip-point@0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + dsp_crit: dsp_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + lpass-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 2>; + + trips { + lpass_alert0: trip-point@0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + lpass_crit: lpass_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 3>; + + trips { + wlan_alert0: trip-point@0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + wlan_crit: wlan_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cluster-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 4>; + + trips { + cluster_alert0: trip-point@0 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + cluster_crit: cluster_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + cooling-maps { + map0 { + trip = <&cluster_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + cpu0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 5>; + + trips { + cpu0_alert0: trip-point@0 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu0_crit: cpu_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + cooling-maps { + map0 { + trip = <&cpu0_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + cpu1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 6>; + + trips { + cpu1_alert0: trip-point@0 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu1_crit: cpu_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + cooling-maps { + map0 { + trip = <&cpu1_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + cpu2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 7>; + + trips { + cpu2_alert0: trip-point@0 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu2_crit: cpu_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + cooling-maps { + map0 { + trip = <&cpu2_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + cpu3-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 8>; + + trips { + cpu3_alert0: trip-point@0 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu3_crit: cpu_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + cooling-maps { + map0 { + trip = <&cpu3_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + gpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 9>; + + trips { + gpu_alert0: trip-point@0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + gpu_crit: gpu_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; };