From patchwork Thu Jul 25 22:18:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 169756 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12182435ilk; Thu, 25 Jul 2019 15:19:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9bv3KIAZ1Y+rklRsPTHWnj0s3yOeYyeDCHCUV5/yCUzMhKgRXP65hXMh0vNByy0sPsYzX X-Received: by 2002:a17:902:7c05:: with SMTP id x5mr93875145pll.321.1564093160513; Thu, 25 Jul 2019 15:19:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564093160; cv=none; d=google.com; s=arc-20160816; b=P0Z6iCu72MlASA6aiVbnn8D8QOxgsIJbeazktjDzXnsD1yB51WizoDLOqoCaxU7am1 D9c3dCuUHnZ7Vw3Xo4nxaxmLER9v50IqFD01XXr+1M0RRl30EL/CFXXbm5mzsm3EoA2D wIgs6SS6ORphTYSa2RzyFMvVDjRSnlR/rpmf5fHq+zQhe/x9kqoFZxkqMlp9zkUBB3kj HG/NQjBMwZDCvN6IAxEXzFE8IPagyCivSuNP1IYeszMjaoMyU6+eysi43UD10EFARlcr wCTATHBPPFaqwBYecut4Gkj2SGQDyfgBJhNtxvrx1pfmdAPjW3mUC1kiMETyJ2Rzv/30 4xhw== 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=uiQPKHwj11EPpZuRQWpTBZjUd/uUqkvhWCoDYYQxDwA=; b=Q/RufKunjo4NaN6dzcqFqRJ4GFNdfDNwRN0k7SsKRSFkXpKok1PZ+oAgEHutr66XRS pUE/5+RiT6ecLb7DfJSXogk9dvvlLkaMqFRSJ/bKZFMoDOEweIawmtdvXo5vR2NmBaKC M9RggGfbJeYpTVsxLBryYjwFCVSVR8+xovkS8Sf+HAZhscgoN7MiL38reCdAYhnMd+jM ze02+MF2YqY619lRkAqbsvyy/S8jq6LGucqdtr4mjahIGHclEqG4wKAAGcbNi2VGb/nn f7CGW5H+Ze43prwJMoRmdH889C/3am9nKH9khI45HUKCDf8ywI4lazPhr2Tz3a9BsGzY z00Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uOd7YlV1; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 29si19369857pgk.306.2019.07.25.15.19.20; Thu, 25 Jul 2019 15:19:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=uOd7YlV1; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726763AbfGYWTS (ORCPT + 15 others); Thu, 25 Jul 2019 18:19:18 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:45968 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726759AbfGYWTR (ORCPT ); Thu, 25 Jul 2019 18:19:17 -0400 Received: by mail-pf1-f193.google.com with SMTP id r1so23426036pfq.12 for ; Thu, 25 Jul 2019 15:19:17 -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=uiQPKHwj11EPpZuRQWpTBZjUd/uUqkvhWCoDYYQxDwA=; b=uOd7YlV1/OOkQMJdcCgl8oAUvZobH84I3dUpaQ7blEHEOkHE07y7s7uxV0nagTTRuq q+/TPHlFixOUvXsY0FvjBwKRm+lQO62aY6VronZUz2YP7XZLwuTPTFJwdqlC55ASutoA dQm/VXAe2/IYPSjkimFXad0hCsBy9HXoU+5If2Assoa8l8tP7c04epZcBHhhWf25zdOd B3UzyJdvxULSnoZ1San1Txtsiuu0NxVkVwjmsORJ9lAWJMIte4qpze53IwJjrVgyY+Nl nomgCque2ZcK2lkjnEJlj1SvHGb37Yu2tbQuAtMOiQDYdMd8YHMAfB2ekcPrKDEEa4zV vO6Q== 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=uiQPKHwj11EPpZuRQWpTBZjUd/uUqkvhWCoDYYQxDwA=; b=qEOw1KUR2aPvwrFpTbN1C9whyni1/X/43e+LY3ptA9g3mRuUGfp6B7OQnPjDtr7oK/ mbfAaMjYFz+AhQ46K3kwXtYkXwelToA2O3hyooh/rJOPjUevwDWdNenKBpkW5mHl7Ok8 wT+KQN1sIq1fMynOh9AN29chitDPCmDKG+IBCI/W6NgnZaaHx24TXiuMmLpUdGlzW4qn 2KtxvGiF5YRJNleTPTMezeJqPRprTyPShBDAwrFF523c+KqmfaHhWYHsoM2Vhlp3EDFQ Asvc+LHiUiSh02RG4dSSlG9BM6vnpTX4LeFUGyjMvJRHs/OxIYmw6X9jErWpyD0H6XHA 5edQ== X-Gm-Message-State: APjAAAWGpm4/Ft1UK/MTjLuHINsMMQ+LWEIecLoXtt6AMRsLMcYD7slF 7eqRxoyFZ84ntE4X5hGQ7+bfxg== X-Received: by 2002:a62:1bca:: with SMTP id b193mr18389670pfb.57.1564093156830; Thu, 25 Jul 2019 15:19:16 -0700 (PDT) Received: from localhost ([49.248.170.216]) by smtp.gmail.com with ESMTPSA id f64sm53517242pfa.115.2019.07.25.15.19.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 15:19:16 -0700 (PDT) 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, Andy Gross , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: masneyb@onstation.org, devicetree@vger.kernel.org Subject: [PATCH 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor Date: Fri, 26 Jul 2019 03:48:40 +0530 Message-Id: <9e2948528c789225bf8a6ef458b83a5350a7ea26.1564091601.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org msm8974 has 11 sensors connected to a single TSENS IP. Define a thermal zone for each of those sensors to expose the temperature of each zone. Signed-off-by: Amit Kucheria --- Cc: masneyb@onstation.org arch/arm/boot/dts/qcom-msm8974.dtsi | 90 +++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 369e58f64145..d32f639505f1 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -217,6 +217,96 @@ }; }; }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 1>; + + trips { + q6_dsp_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modemtx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 2>; + + trips { + modemtx_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + video-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 3>; + + trips { + video_alert0: trip-point0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&tsens 4>; + + trips { + wlan_alert0: trip-point0 { + temperature = <105000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 9>; + + trips { + gpu1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 10>; + + trips { + gpu2_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; cpu-pmu {