Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1511068ybx; Thu, 31 Oct 2019 11:39:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqygmH5i0CPJD3DYEoici3NTaT0isdQUpOPFudm/c98jTTHheTVszEwDlupzV6lnz3HzI8ba X-Received: by 2002:a50:984b:: with SMTP id h11mr7998580edb.248.1572547173288; Thu, 31 Oct 2019 11:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572547173; cv=none; d=google.com; s=arc-20160816; b=RrL7XLdIza6uXeVNGHYmJC5IymqWJlaHNef+XdZHype4OoKgu+5wzjHvpTWbusPU5E gPpKXxA0JjhKN5gsuXBBuruMSe3e1KYVNNC/DOvVl8evqgPpudz9RR3i0zgjsvcemsA2 nQFPqcUOhQhgTZybNmENhndd0AGflDCL7I03vvUQf4PXaXlIhAUoaXhG36vrUjdgTpqe Eaf4c4ltVxLxlBG6+7qVN2VZiIRHXSMwEV8P09asY0mNvZO2AguwaWiQz+uhYPfSvfCQ ehCnd5o42UJP6/Jnnp3uKI751i0ChJ0DRXRPeXTpvcW6a/WVq+FJKOb8HsMdzXl38T40 Cn1g== 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=nriGyJyXat3Y4a9oQhJbIq7/9DtAHAspKVmlIyI8mxWVxTiUx8Msc1QfAm7daawSzL BYa1vHTqCFgCiBK/9PZl14WPEruCIvkDQADNxg+yB/sbr26ZTlBduaY8FGJrnzfCqdtJ DA6/lEsGJ4Ovkx2vZ3zilRtBXjDTAAtdnClAMSs9QIzNwtQ5+E6VBn/eYsaNgdYXDH3d 7iDqj8Nyn5D0avFCgSg7VnOFyewrG8yICTVo9ZT7pt9KHD3YpMyo4/K3nqcKVqccBSvz Lv3o8hLjcfrI/O64Erz4M6GbIcUaLpprqcdJZ4bs6zpAVRf1OWcpe+FOibv0W39zKSWa s/og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=byzZsRbo; 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 e11si4143219eje.376.2019.10.31.11.39.09; Thu, 31 Oct 2019 11:39:33 -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=byzZsRbo; 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 S1729444AbfJaSiN (ORCPT + 99 others); Thu, 31 Oct 2019 14:38:13 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:39261 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729429AbfJaSiM (ORCPT ); Thu, 31 Oct 2019 14:38:12 -0400 Received: by mail-pg1-f194.google.com with SMTP id p12so4597264pgn.6 for ; Thu, 31 Oct 2019 11:38:12 -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=byzZsRbo1K5r5tZ9HCdoeKVaM2vVjUyHpMT8oMNzYnFVyuGnd51bXKwnJz/wYP4tLL md/RZdp6ZrW6+UC+s3BaSFceWg3YjZw4JKw9O5j9QqfGmucTLWkTvDlDQ3KkQhFfm8bv Mmqm9lB4VFO4p3mNYVJUBPX/drJlSHi9+TYQRSNVIkwnIzTr2Zmv5KieSjkseQFvzvSX yIDb7zFiftuB/fKiSZZZJtLcOJhKp995o20a0vYkyjrNPxH96ysTxPOdqrBw5hHs4oxK VIwGgkuXQTSJNBYt3RJf46PQ9KHuPuyJEd9vw/lWFTck3sdLVst85/eV2F6DOCsPGJdY TFyA== 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=NFDP5AGVQdZ/xRU+P5r8+KKKMtUc/ujw7SwqhaSLvk8hhiYmydv/zgV3EFoNr0rD+N YnYj6//7v89A7e0wPT986XLfjedg9sA3y8A7sEDy6nhUWRo1CbHDECZHnjvWLurGpG1A 8l3xELB6Y+4TrM8bqO1DQbKLiA/r+QVCE1wo4GrVh3ggrotsSepbaSuAxTQx0MUP9Jh6 IZlE+FHU+knH82MopmJdHdemMThWEY2K3f2aNc9aWfpGcnKVXaAmzRZEEBXhs3efb2/R o3TQ7z+8OVCjg/ZtrI5avtO+iXwhj61+Y997LCLejmlcQa9g+vUwWZzLcaYr5X09uP1I Cbkw== X-Gm-Message-State: APjAAAVh3pKAc0atDwVTprZ8mqyh+1j0xbIkNbrVPW2pNHsTo3U65U5n l/Vb82ppzXgH2YbZgWQT1sOt0GPtA9E3nw== X-Received: by 2002:a62:1ac6:: with SMTP id a189mr8291977pfa.96.1572547091322; Thu, 31 Oct 2019 11:38:11 -0700 (PDT) Received: from localhost ([49.248.58.234]) by smtp.gmail.com with ESMTPSA id h25sm3867466pfn.47.2019.10.31.11.38.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Oct 2019 11:38:10 -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, julia.lawall@lip6.fr, Amit Kucheria , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v7 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor Date: Fri, 1 Nov 2019 00:07:29 +0530 Message-Id: <72cc755c16888976edea555f1df60a299daa8a1e.1572526427.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(+) 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 { -- 2.17.1