Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4262485imm; Mon, 15 Oct 2018 11:41:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV611j+XZW+aF5S0kOjrpovIUK8/n687qDdRNq9sZtNQaY3t5W2cXag/mm8/hd5wEK+kDxN/I X-Received: by 2002:a17:902:5602:: with SMTP id h2-v6mr18020815pli.220.1539628917831; Mon, 15 Oct 2018 11:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539628917; cv=none; d=google.com; s=arc-20160816; b=NiF0LE7WcmRigo455icBoIbEmdXqlBE1SosJrPu7184LHmS2uszabxiwBeAJ1af2bK l59G5VRWMViDxnxD85KkpLDjxXSg6ZmwdbhVMyXFgG479eLR55QUF8DSawGXIcWeXxeE KaateYE3cJ1E5PSD5GMjxm/Yx9h2HXvv8kDzGYl7wu5sBHwcFD5v95goRK1HYYxulOOq g0j84FQhrUR3vic03X9moGtuXl1CSWbreI7X4JGRdXC0Beb/i90y5hIPXPd3wi6OWOmp f183Wb4YbFwdAY2yicf4xrzHmrhLNn38/qYypC2nh3C11mIER7KOufVIh0O0XUbj5k2e C4RQ== 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=bFmpkKZBQAbbZS/QFSkahIqwskTA5OAWzb+7WJWC4Ak=; b=ahMjp7w8e5ZyOJFc9HdQB6tG7zcO7RWkGqrHtvTcd8v0s1QpQejnK23O0rxMP7bVH1 JkaP42a/ZsHrMnV9R35xRBz1WvhAeLaqPJnxRMqyDs2OdnRZeENrIKRLbAiJw7xxVFPt 5/pWOzyAm/7SvnGyw/p9y1F6AFE09gA+Acig2EwWX9cknbwfmK/619WHGPnawprUkzmN /Qbr2KWZPP3QMtBTqPU0WeW76KmECJ1iM2KrC/KjAYKqn2PJGdawP00sO1hEGGCjuRni cVO8TK3R3vdUjOJKhGuC+javyTPqVOoQZ+HmfnjNuZmeAAQpf4TCEfRmDxk/s5cFB6o7 SP7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ACYsj79Z; 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 6-v6si10769536pgt.320.2018.10.15.11.41.42; Mon, 15 Oct 2018 11:41:57 -0700 (PDT) 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=ACYsj79Z; 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 S1727042AbeJPC1f (ORCPT + 99 others); Mon, 15 Oct 2018 22:27:35 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41482 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbeJPC1f (ORCPT ); Mon, 15 Oct 2018 22:27:35 -0400 Received: by mail-pg1-f196.google.com with SMTP id 23-v6so9569743pgc.8 for ; Mon, 15 Oct 2018 11:41:08 -0700 (PDT) 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=bFmpkKZBQAbbZS/QFSkahIqwskTA5OAWzb+7WJWC4Ak=; b=ACYsj79ZN7/1tmPHStu1S/GzpFncJaRgzF2auSIcWuMe4YTEXTXXu3+oUpkuAFcOOC GFvh5L1x8ywdDGWGBOOKe4tcnLTg7JIlZP9M7EDyqlzI3n89+u8XUnmRC3iTzJae2fJx 94Zu4PSWORdx7VeQCfRmWZXRro4J3jqD5APS0= 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=bFmpkKZBQAbbZS/QFSkahIqwskTA5OAWzb+7WJWC4Ak=; b=bMauz+lmG0reIx15S+uCurQslvhWvOGz7R6S5fNdar45i2EC7fwXF38gswRsBJTi/2 Hxt/MgJ/4OjWIKHTKG1/ADPr2NIgLHJftF22De1FgUWLVDUS2agy9NDoQs+vimIszVAE DsYyymQ6xGq6hOplNSbwq2ixnc9mCDGi4dZtal1go6XRkwKhMyLth2YbsG2sUT6eUEQa VvlyGSYndWPyTGu8OIAKBuNz3C5DS/Kwr75SEzagmSLzkFzbmfG5GKa/zn5fNRkKfL9m ZVxKa2ge3XB51S3KQbUVPnMnRGOGelDdGdqYRiZ4j1585HpwxUwUm+h6yLjxz42MBp+o +Ujg== X-Gm-Message-State: ABuFfoiKACxJH7M2lszVCvIJWMwBgkN4/6Ch7GPcImMd3350Onx5x8Da ws37e0MVkd0TOqw5a+d4evtLe6ghnhs= X-Received: by 2002:a62:8a91:: with SMTP id o17-v6mr18843627pfk.184.1539628867423; Mon, 15 Oct 2018 11:41:07 -0700 (PDT) Received: from localhost ([49.248.168.189]) by smtp.gmail.com with ESMTPSA id m11-v6sm13170474pgn.39.2018.10.15.11.41.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 11:41:06 -0700 (PDT) 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, David Brown , Rob Herring , Mark Rutland Subject: [PATCH v1 4/4] arm64: dts: qcom: qcs404: Add thermal zones for each sensor Date: Tue, 16 Oct 2018 00:10:43 +0530 Message-Id: <7a0c3d8b7a751d6549b063efee718cdb1741f473.1539627762.git.amit.kucheria@linaro.org> 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 --- 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 dfd65c53cf5f..ea882a9ce6e3 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -69,6 +69,7 @@ reg = <0x100>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; CPU1: cpu@1 { @@ -77,6 +78,7 @@ reg = <0x101>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; CPU2: cpu@2 { @@ -85,6 +87,7 @@ reg = <0x102>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; CPU3: cpu@3 { @@ -93,6 +96,7 @@ reg = <0x100>; enable-method = "psci"; next-level-cache = <&L2_0>; + #cooling-cells= <2>; }; L2_0: l2-cache { @@ -484,4 +488,206 @@ label = "wcss"; }; }; + + 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