From patchwork Wed Jul 18 07:49:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 142251 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp231315ljj; Wed, 18 Jul 2018 00:49:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfzygmCGfR/rGgqJfMhVsptco1VwMwXSnlUJBalmM52jTMX0P8V3PfI6AQwZfL2l0Al+akN X-Received: by 2002:a62:1157:: with SMTP id z84-v6mr4155083pfi.66.1531900167893; Wed, 18 Jul 2018 00:49:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531900167; cv=none; d=google.com; s=arc-20160816; b=J8FjqIXFykXbYDeBvhPulsMVP/ioWkZ/1XRW3ZcY021C989nOlR/z41Wd1yFgGQc/Y HR7gjcFWxB/iJSMPgvdEQkZsCoPvYyzK5Il4WS6yRD5m+/yQ406qg0S9L9eLVcom6Zoc WxQ668AT2Oj5kSUP/Y4T6GxWWi6APwWZB+xr10nl4AYgVkr3MTH+GuaHn+oRJJT4NBEz WygwZYxREqfZZ0z/gugXiEGY7EAHY55X4OlJYD7RoaLKrl3ftnh8m/X1gDpUcsPsqqNK 9Fep21KaOXCQjOlHq9lEsmZFUuO/9xXuwhMvMt7oRAm1dvKWqK5a+jTZ+JpnTG/rVf8A 5CvA== 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:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=WBZo5D3wVTahf2I3vNuHoL4xS1KjP30JrJO+K1pLif4=; b=R2C67x6qzdrQjXAMo6GyssEwd9rbpHEQs5FFwC3hOgt4uA+DcC4obxyJYuWNxw6Ft4 7Ujg8+5n53QqcN8Aw9FgIQ9vp5+51xeR/X15DFe3tf1/lPo1ZFQLAUuE/+wLOBpUWX+y uUkS9QKT5b4t7FpdnPY9JMeKdEeQ3P/wiXIrUkDQCP6QNyjPiOjSWVUpoNHPv9BaLBIF L7a5NI29cZyMbWRWNdziJxaw7Sunn4IiHRwyz536MEBBdCw6uCk3j7yCKEtR9NN0NB6C WB06nbFBK8gxFFZ/bSMkmV8wjXxxR8tIsIZe2K38xbTsFeg1E7lkKBiMza8yYAgsSOiL Bd/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kyeGdi8Y; 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=fail (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 32-v6si2911103pgy.672.2018.07.18.00.49.27; Wed, 18 Jul 2018 00:49:27 -0700 (PDT) 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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kyeGdi8Y; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728103AbeGRI0C (ORCPT + 5 others); Wed, 18 Jul 2018 04:26:02 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43576 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726969AbeGRI0C (ORCPT ); Wed, 18 Jul 2018 04:26:02 -0400 Received: by mail-wr1-f68.google.com with SMTP id b15-v6so3593933wrv.10 for ; Wed, 18 Jul 2018 00:49:26 -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; bh=Olw6CucR1gGeb506sf4sE2oIBIreMnW2/BM09+7ohCE=; b=kyeGdi8Yca07kJkDQ3bmWS3/lvn9nryL7/Awu2Ex67IRiwmrm/36whVNXRYtELw2RW XCXbV27EL62sdtconlo9rfF2E49AkNf799/Vagv73KPs5Ne3fVkeQhDR+2Ta0Lpy2sz4 gLWengeW70fzTNHOPji/hNWRGhWngth72AnI8= 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; bh=Olw6CucR1gGeb506sf4sE2oIBIreMnW2/BM09+7ohCE=; b=qn9GxC47JU6wHKFVPA/P1mMZzM/esoHoN5nzik+4gpYsYVHtt8Zjf9O4iuSm/9stWO +E4729sgewdHVdJvVzNke7l6JF44lsrShGDBItclxKeYeQe8DOGvB0u2VANfE9lEtc2E nE/5FepJMsmItHjuPsJ7tTiP85f5tbZi5ajrP2JfE0h5jJvhD4d3jztEO6Ol7XH5BS8E YGdoK4p4SVQ7a3939J81kO2RD24V9r9LNF3UWHjXkN9qs5kACsA4vjziksE5nkavYaou mWwfYcpPwBKJp3fKWhuWp523cpaCXxG2reJx4wVFcLXH6Gip5nOAyfup2XE56iAUTmF5 uazg== X-Gm-Message-State: AOUpUlF6gwYXmXrhwnTb9KpKvscTpBSzavWllusBEHowUvLkS48Ph+eE PlK3NAQW3/WRKWgEZfifIdwMvQ== X-Received: by 2002:adf:f342:: with SMTP id e2-v6mr3504776wrp.161.1531900165364; Wed, 18 Jul 2018 00:49:25 -0700 (PDT) Received: from localhost ([103.249.91.115]) by smtp.gmail.com with ESMTPSA id c7-v6sm1976278wma.26.2018.07.18.00.49.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jul 2018 00:49:24 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, edubezval@gmail.com, David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1] arm64: dts: sdm845: enable tsens thermal zones Date: Wed, 18 Jul 2018 13:19:17 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org One thermal zone per cpu is defined Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 170 +++++++++++++++++++++++++++++++++++ 1 file changed, 170 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 01ff146..a75be7c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -340,4 +340,174 @@ }; }; }; + + thermal-zones { + cpu0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 1>; + + trips { + cpu_alert0: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit0: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 2>; + + trips { + cpu_alert1: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit1: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 3>; + + trips { + cpu_alert2: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit2: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu3-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 4>; + + trips { + cpu_alert3: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit3: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu4-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 7>; + + trips { + cpu_alert4: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit4: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu5-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 8>; + + trips { + cpu_alert5: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit5: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu6-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 9>; + + trips { + cpu_alert6: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit6: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu7-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 10>; + + trips { + cpu_alert7: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit7: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + }; };