From patchwork Wed Oct 16 07:34:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 176430 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6992830ill; Wed, 16 Oct 2019 00:34:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKNWSKZ35XYhsZ9E9j5/zcMDlbA2Rhar+T6tNoGJ2b8b61mxWWat7k6En/v9N1sDk3pYxT X-Received: by 2002:a50:9f68:: with SMTP id b95mr37179839edf.301.1571211289173; Wed, 16 Oct 2019 00:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571211289; cv=none; d=google.com; s=arc-20160816; b=XdvufevBO8+yyku2UCpkPk8JkA8jitOD6jTG+QPgdk18iNt4G0n26gfNyWgR4LHNUf 3ns98BAaXpPm1RACDy2hglmlG9mP5PjDmQioHhpXbY8LncnOoOkzfdJf2zG93zUaAfZG +MnZ8nxyLoxVytXh1bVC7TF7IoNSVmNtOI8vjYfIZFBWS181qAbK7SCoINFOXA5kXMsF UX+T0/wz9d8kbMnhsi9cl3ae1fbzRWREg7P5Zhv4GCP9qIE0EgEtXrOzPUaV5TlSIPbA l0Y/ep8NW5EQas5Dv71YXvIFc+DDIS/HuP6UAAY0cfcU3WenPM2Ew5nn4rKSqeAwVMbG xTEw== 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=N1sFZqwPmR4rpLnTH9EOl8Ec1vu8lx2vJgOvXRwWkdo=; b=u8/qHwroh0y1Yui8G1FZUDPfsiX92KpD5FU5XCuNTPzULY2TGh3iNpsIXgrqQj0BOL 0Ks/uOgeBuKFhQvMHYdTsuEFORdVZ6weYJ5/5W/bYcaMVGqJ79Jk6DKKiaGaPW80IbUg E7aYBmn7k5uJR66aMfQBzUirNMlK51Sgxt43UgVLE3p6ekbxUVpxCR3MGkDVHwAImORa 6zynz2gBFNhW9pAfl7v7t+sTwT7tTrH2qEiUXjIIEqm8EpYMZykQpB+hAlx8/uC9djSp SXSwoYTr3pBEo3unLykVSSHyBEY02oCfmh8J5Bi4wqpNYccPkZmYR34LzWqlwCqTy0CZ YM1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nHQTggvo; 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 l45si16276411edc.185.2019.10.16.00.34.48; Wed, 16 Oct 2019 00:34:49 -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=nHQTggvo; 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 S1733238AbfJPHen (ORCPT + 26 others); Wed, 16 Oct 2019 03:34:43 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:41268 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733052AbfJPHem (ORCPT ); Wed, 16 Oct 2019 03:34:42 -0400 Received: by mail-pg1-f193.google.com with SMTP id t3so13751493pga.8 for ; Wed, 16 Oct 2019 00:34:41 -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=N1sFZqwPmR4rpLnTH9EOl8Ec1vu8lx2vJgOvXRwWkdo=; b=nHQTggvoUfAdmuLIISJfzQD+E5MdYiRMIJMZhsaRyVJooc3Na6gQvHL8n7SYjjZ6wr HacXvujAglqyTWjGUDxGzUEeDyCh6z7o+6VceXISis/Ik5gJ5jn6r1FnZiGxjfI+X603 i/Fgm6YM1XcAl7XVQ0QbisND0p7J4xB0MZTTgkhwH2q4pploc79rciwHb8pTFgspqMac q89VeCtNrikU1tlUyyXDFXK/1AA6wQRfjr51H8oVtfUJ9WLHvB+8+v8pPucUf3iNjohO V5QI5nL/N58L01MA7oWhRVM3rLTH0I23adq8XWtwe6hBqX/7iwPy3xFTtSVUq9t1qL6W shHw== 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=N1sFZqwPmR4rpLnTH9EOl8Ec1vu8lx2vJgOvXRwWkdo=; b=oZlnRNlFQqByOdm42hH2AorFul0aMxbmzUA0OzdrUeYXfuR2NhdWodzIgSrdN+INmw P8B76P2LPe68J2G+6bNSnpSh7DmdzcqWup4assXwS15GtymC9NxLd0PQhwTeRaZW/Bz1 iOclYXFNEGq5vuPig7cLusrE4Vvsc6AzhLM+sNO7Df8rYVBU/PKaO8VSQ6j3cIkQtdT2 EOFO8T0zsYMSW4qYf9KEZ/UwYQh31k7z6bcchGzSgrvOfQYu9OEFewp1XaZPvOg0kTb9 Ev7cIKGAaXVoEE9adP/AfMyu5aHauXF5JTjlX2p5v1ja1SuO0QfrMIAtbj093Cgmod1+ cxaA== X-Gm-Message-State: APjAAAWxRW6EwVfjFaCSDETUiUM/WXna/0hbxggFDLMAjfZXsucpD1Tj 0TArGJtLdSs2ot35M5msG2+7367e6heCYg== X-Received: by 2002:a17:90a:ac06:: with SMTP id o6mr3233009pjq.133.1571211281067; Wed, 16 Oct 2019 00:34:41 -0700 (PDT) Received: from localhost ([49.248.175.127]) by smtp.gmail.com with ESMTPSA id p190sm29052416pfb.160.2019.10.16.00.34.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Oct 2019 00:34:40 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, masneyb@onstation.org, swboyd@chromium.org, Amit Kucheria , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor Date: Wed, 16 Oct 2019 13:04:04 +0530 Message-Id: <72cc755c16888976edea555f1df60a299daa8a1e.1571210269.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 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 Tested-by: Brian Masney Reviewed-by: Stephen Boyd --- 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..33c534370fd5 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 = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 3>; + + trips { + video_alert0: trip-point0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + 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 {