From patchwork Tue Aug 27 12:14:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 172278 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp5702042ily; Tue, 27 Aug 2019 05:14:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyb2xMM+7yG55toa21oBhP2Nrz+av6ewqLEWdILW5rMzmepn8YXWEgEnlaQ2V/GOBL8PACB X-Received: by 2002:a17:902:d883:: with SMTP id b3mr8914269plz.323.1566908086333; Tue, 27 Aug 2019 05:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566908086; cv=none; d=google.com; s=arc-20160816; b=hcezfJ9murNIXl7zKZV7WB1om1iJ2SvkymZvEXY+0LwIJLsIpYfVQ2K9y4U/aTnWHK 3wVgnltSDMvFvEEcZLkt1X6Xsr6zL3quEmN40Zu7vMS6xigundVeH1Dl9v8NGwILO3+a yk3qYKjAwqpvffzcou36uOjTmtvVefREFlTyJqwoNJ4bPwaH1Rj1RuQ5Uwx7/ZGSamii a+4wDtSn9LcGxL+GlVnrTQBT4Wdg38v11t3KNKMo+vOMbjAH1VQ5xyFEsvXWa2LtYGdO qfYHqDQuAwNIrOX3a8EZGNWDvEDLb8+kNRcnKYf/z42TovXuoDaog7/BBQzD5L0njG11 16kg== 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=pptHIxhK3eUIONZUZXLRgUgraNH7ZHKiRKOOZXId9Og=; b=HRQiaZONSJ46tp8dtRoYqQCXEBBfxh4oS+TOhL5811Jc4/P16WVInlMgWnELDU3QUw Fi9nUlG2z17RiGOzl3p/mkt11nXAgHi/X/lrgHcZfNxXjF2icBNYqOeXU2bsOU0ZmI5c Ji0krmxkkbohMwLTX/QITx/NAUKFtCYivLRpXIzGxHXMZX9I0FLXMr3/TB2fRpVjYjSV DnPcs3rQ3ZOdecDyn0BuuHrIqnkWYFV/zz7QhGZvqcULCFq3+4VwSFFHS13m1Ovlqjvg S6fISCo4rLErrsC8iDfpClTKrRgfdASPEJHgp5XIdEIRBP20cHD1dgpIyhDOH73xLxxg AAhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yt68EfZ2; 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=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 t4si12939498plb.366.2019.08.27.05.14.46; Tue, 27 Aug 2019 05:14:46 -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=pass header.i=@linaro.org header.s=google header.b=Yt68EfZ2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729770AbfH0MOp (ORCPT + 8 others); Tue, 27 Aug 2019 08:14:45 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43896 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729765AbfH0MOp (ORCPT ); Tue, 27 Aug 2019 08:14:45 -0400 Received: by mail-pf1-f193.google.com with SMTP id v12so14008352pfn.10 for ; Tue, 27 Aug 2019 05:14:44 -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=pptHIxhK3eUIONZUZXLRgUgraNH7ZHKiRKOOZXId9Og=; b=Yt68EfZ2pCFv6y3gNY6s3zwZ4WSXntxsFOa47DjhNzOsV1J5zO/oWMXCCM4ziZopTz bc59P5UcoHPyCzi8fpT3YV0x8Y8a9xopYAIppMf0Ei5huVhnE/riO5bgNckL3Lc/tu2E ibzWAufe7k3bLbA3nFAaz6IiNjcoh1dSxIr1vja5R5iKFcCSEVke98SjyUfm4yQmHgsL fW34Jl0um+NvWqv2+ew8nSypw3pPLE70fQXXZEuaKLWxhzYUoaei9XyypBgJ89dre9CI qO3nXzc/NqrNtjkAHCVo2hp3/8mQokN+UyXXdqAJCEf8u8epkU2/7YYUTaOcAtwCW2sF NIUg== 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=pptHIxhK3eUIONZUZXLRgUgraNH7ZHKiRKOOZXId9Og=; b=qhZ+s5Un6TBRc+VRX61a/HVW0dYF/e/rbf6jusoZVzDzLootYd/85zcPLKQVp6CPzB MtQ5/phKD7Dmz5EvxP8iXabWtRunBz+BZr3Mo9lV4ROpUUaqbAeHBdO2nTFjY0VAD7jV Cx4AMvYOyW4yjWG5tfT5OjOOEb7G7xL9MgBcMpKVyRHFA85E8aR5SM5/vLWz2oI2MIzj 7HgwSZ/oW4cnQW1MlJbpcPCfyQs6JU9HtJFrJGojz202IAY/3aBDeYZXaqmTtm2kRyWP 0jLoDRhXixoQLSQpV4wGjOyqNlygCjoma5L4f2ycG10sh37ykDHqvE5w/fAFiruzUR+s uHGA== X-Gm-Message-State: APjAAAVrGqO7+L/pI1jPoQHezL+jWN5pkYf/RqpgLbScJ0hlsbRFkdjh IJpSV7PJ5PdbKNsGyS4XV2RzVw== X-Received: by 2002:a17:90a:2ec3:: with SMTP id h3mr5833943pjs.121.1566908084300; Tue, 27 Aug 2019 05:14:44 -0700 (PDT) Received: from localhost ([49.248.54.193]) by smtp.gmail.com with ESMTPSA id g10sm25108702pfb.95.2019.08.27.05.14.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Aug 2019 05:14:43 -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, sboyd@kernel.org, masneyb@onstation.org, marc.w.gonzalez@free.fr, Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v2 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor Date: Tue, 27 Aug 2019 17:44:01 +0530 Message-Id: <5b26d4410b50387fcacae939d97f9f75853e69ea.1566907161.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- 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 369e58f64145d..d32f639505f1b 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 {