Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp26986imu; Tue, 27 Nov 2018 08:33:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/WPbqj1exDPWc2ro9rDVzaEXv1ms1+0PhVaoj3BAsmPOSvjIVs4iNtZbuzHt5TnEf7jP/rw X-Received: by 2002:a17:902:bf44:: with SMTP id u4mr17085148pls.5.1543336417177; Tue, 27 Nov 2018 08:33:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543336417; cv=none; d=google.com; s=arc-20160816; b=wod8nAc2sfQnokK6w0GBtVdRNwlB2/ZSwUijB0JKJyo6nbgjB5vGRAXBfCw+BakguQ 4ErNCVXgeAoCVzipwh54rsOm7sXa4SJcG8VBeqxbQZmJ0F553cyV4t+zdQ0lSWWlPvR3 DQicduHcur+a2Y+evxJ4GEmHdYlLC2sPu1oGHxudDS1G2w+W2vL2stUUfxvhgbm5g3ot RecwNanow2SDNTtjkN1n/tSsmeiZPARga6jAqFxkEcMF4fS2CDPaYsO4VgTgabGH/1v/ G+hWCvpe/2jUkPp5ueQDpsWT7dAJxJAwGM3jCK5B7tcycBy5Ht/kRduGHdVxW4xPWaLK ClGQ== 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=4rjnRaV+6g5gOHVzVhs9FARzKLyeED1GNhZcm14IHcQ=; b=hVD7B7C+h6t0zL/KnTSHvsB5hFdFbBL8KONfBZnsCremkQdt7AUDofKe2uK8xsFx94 2Qe/TvrcFFcQGIuSMrd4anY3d8vAn0U6lEHbH3lESA5VbPw7ojZBPbQBKkB8qAfznl8+ IQqAoNdOVkViLIZOrayIA4Ok0DLkZNFOV00TnTWX1QqrESoW1+2KIk/KP/fDrobBnzua wvMBArKFQKeL0hbW3fkZYQacx3RbkKXRYL2oIUT0ETFNn6rTglET3KySyze3IhGn9PS7 3gf9OFkJKCb0qItveYWDgaghh1zZ/xepSoNHI6UlrqRXhpFSDtb8dwsCK56MaNKwL1H+ BruA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jhHZYN0O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 d17si4472588pfm.40.2018.11.27.08.33.03; Tue, 27 Nov 2018 08:33:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=jhHZYN0O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1731133AbeK1D20 (ORCPT + 99 others); Tue, 27 Nov 2018 22:28:26 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44078 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730874AbeK1D20 (ORCPT ); Tue, 27 Nov 2018 22:28:26 -0500 Received: by mail-wr1-f66.google.com with SMTP id z5so19043244wrt.11 for ; Tue, 27 Nov 2018 08:29: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=4rjnRaV+6g5gOHVzVhs9FARzKLyeED1GNhZcm14IHcQ=; b=jhHZYN0OjAgFm7nzGlRp1OrMujFZRMpZgk632/l4MgD4u9A3RiATpkOaj8AeDQIAaC cXYMvBBUpOPaFhpsPBJzy7GQNWS+ISQMmszHj7wxoYu0pfHbCWqYoiJmPQAcca6pWh4V kcve0NR1wPcbD+BWZUgsRg2QhU6H3sQXa3hs4= 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=4rjnRaV+6g5gOHVzVhs9FARzKLyeED1GNhZcm14IHcQ=; b=NkEZuchr5bmId04fwDv4uFhvuC7KtKpcnR2T8DWezBuec3KFix2xBJV8soaNys6Pr3 PRF8LEqleYe3ScsRB53QMmf7M+moOmAg0d3n9XPEdORG23nF76frjyBj+JWnQYgubLiE 7GAgRIH9CozNBMpBJB0R/u638maP9kd231IsPXGNWD5uVTJJpqvdPwdtdL8CzmuI+meD 7/tNV0gCcHy1WZTcBZpXWWB5M7HxEW0RmepDAndVTK+QSqIO7pLFafpQiudGHuOSCwiV U7gVIlCWcVQzWqHJ8GlsePA+vHrmmA4G2zD5+TYTc613EgH+3fGEOJD5nc8OOWEzObhh J4gA== X-Gm-Message-State: AA+aEWb9MSqvHt5H/y3pApADrpsuhCaxJyW4VTQRSQED35be4RxlnQak RiUMmaKoDtYDZUBD66Bnoi/ZhNxIebY= X-Received: by 2002:adf:a50c:: with SMTP id i12mr26876754wrb.220.1543336197845; Tue, 27 Nov 2018 08:29:57 -0800 (PST) Received: from localhost ([49.248.92.105]) by smtp.gmail.com with ESMTPSA id v5sm2416870wrr.11.2018.11.27.08.29.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Nov 2018 08:29:57 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, vkoul@kernel.org, khasim.mohammed@linaro.org, David Brown , Rob Herring , Mark Rutland Subject: [PATCH v3 4/4] arm64: dts: qcom: qcs404: Add thermal zones for each sensor Date: Tue, 27 Nov 2018 21:59:07 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Reviewed-by: Vinod Koul Tested-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 206 +++++++++++++++++++++++++++ 1 file changed, 206 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 57d14d8f0c90..cbc3fd378893 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -30,6 +30,7 @@ reg = <0x100>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; CPU1: cpu@101 { @@ -38,6 +39,7 @@ reg = <0x101>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; CPU2: cpu@102 { @@ -46,6 +48,7 @@ reg = <0x102>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; CPU3: cpu@103 { @@ -54,6 +57,7 @@ reg = <0x103>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; L2_0: l2-cache { @@ -507,4 +511,206 @@ #interrupt-cells = <2>; }; }; + + thermal-zones { + aoss-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 0>; + + trips { + aoss_alert: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + aoss_crit: trip1 { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 1>; + + trips { + dsp_alert: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + dsp_crit: trip1 { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + lpass-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 2>; + + trips { + lpass_alert: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + lpass_crit: trip1 { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 3>; + + trips { + wlan_alert: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + wlan_crit: trip1 { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cluster-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 4>; + + trips { + cluster_alert: cluster_alert { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + cluster_crit: cluster_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cpu-thermal0 { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 5>; + + trips { + cpu_alert0: cpu_alert0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_crit0: cpu_crit0 { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cpu-thermal1 { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 6>; + + trips { + cpu_alert1: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_crit1: trip1 { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cpu-thermal2 { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 7>; + + trips { + cpu_alert2: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_crit2: trip1 { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cpu-thermal3 { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 8>; + + trips { + cpu_alert3: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_crit3: trip1 { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + gpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 9>; + + trips { + gpu_alert: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + gpu_crit: trip1 { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; }; -- 2.17.1