From patchwork Mon Feb 18 12:35:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 158605 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2439885jaa; Mon, 18 Feb 2019 04:36:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IauTLX+fIooOXwQJ0Lkut3DhpTjmIQVRw5k1tCiBb+d+iXpCUJ5XwcNf62M1Vv7g5VRNGHj X-Received: by 2002:a17:902:850a:: with SMTP id bj10mr2723593plb.91.1550493363908; Mon, 18 Feb 2019 04:36:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550493363; cv=none; d=google.com; s=arc-20160816; b=sjyfKl0EhZzcqQxbapgWsCl4FZFmlsDcOK+qhVQfvAG7x/fUKW/RaZzQdo5sKz+cTw YWQG1Lhsny3V8It/arMLxBdb3t3uMwUoHRz8TS/9WFKTIYrESPRkDaov9y0x//WrcGnS kOcrf7xu7ElLXhZDD2xGeQxc4tCQWTQOo05SkTC0e13G5JmkriWIaDtw3NlsJecM0VuI WheuatV6iPYI4ZdTGYSTelHU6wdGASiEHvDve6ePs5EDkRYlOUeQOPIrpDdD5G2CmHos 3hXPh26nxtaN597N/ky29hOTB67gmbetJn2EbwJ8VF03cHGEMOFqIjbY5loDBfF1oo42 QgNg== 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=ssMp2Pe32HI1MMC/wAOh7tQF9HUmue5BH2ZmF71FZeU=; b=aJ2DSlNS53HyiRUFfs5GI4YBGfoM6mchG99+WWhpryAe7KFv2HkpIf0z1JHgy0jsdR +UoDs9ZpFbNUEBsf4yDbB5SykZ+pqjnV6Y0/JObYnqwC5Eqp+Y6PNSnf3qEDdMkGs2xf FLrfYciugZ70uC6vVULoxVgU8hmiDbSFqHV/vNTyMnsz3EWIF7BAbyq8DPZMJEOdBZvp BJMMdIfeAPK6JocWD53wOB91mDWRdw3VxB69/Zb2v9INf04pATMYRTyfKtguasNR1EnN TPql3842U79CkqLuDKd7NZTr04PJi1L0zBdJmxXfR8GVISsMDrWoOKa9HN3RYplWSbec aDaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O787LItj; 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 y24si10735800pgf.555.2019.02.18.04.36.03; Mon, 18 Feb 2019 04:36:03 -0800 (PST) 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=O787LItj; 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 S1730628AbfBRMgD (ORCPT + 15 others); Mon, 18 Feb 2019 07:36:03 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38198 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730560AbfBRMgC (ORCPT ); Mon, 18 Feb 2019 07:36:02 -0500 Received: by mail-wm1-f67.google.com with SMTP id v26so16935890wmh.3 for ; Mon, 18 Feb 2019 04:36:01 -0800 (PST) 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=ssMp2Pe32HI1MMC/wAOh7tQF9HUmue5BH2ZmF71FZeU=; b=O787LItjmkEXtGdpkelQdSlXmvzwr1PvV+JJj7+Zz3z2hhI2QqqYDIOJ1QvLtyv2fy 9vbqhAvhsJtmKZcTyCafuNQp8kXCGyhlp+2QLx8BX179kUXNU/TgneG3HZDYhgVDaGLg Q22F7ukU6y2DpVruvOicJQS3vYMuSiKRnNOjTyfvPkqOSC0eWGAuqUVvL7p1SPGh+q67 csCJQjhFYUl72gXfjUVA/OmnGjw210T/aRmXWE31bcAM/iMh3x3hxx3HkdCxijPnaKsW wx+nNR2v5CfztBbOmxLBKheEMH27RQgQw4hLdjMem/oX1vndOLmwhaBL2nC1yT26ln1p aQJw== 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=ssMp2Pe32HI1MMC/wAOh7tQF9HUmue5BH2ZmF71FZeU=; b=cJD+SgFz8XpqEbiVclVr/WVWNefXtjHfUzLXrbgjljnXDpK/LlbTUxO/lsSYpy8rtZ zOxkeLoC9vc3ugNGxrPIL9WYBUOh6AfnpseXviEYDbjW0+sVR/DZA/QOie3g8Ia16u0H qEYgCYRkAIHR4LGME2+6MwWOLqr/VP2cfyo1FxHXoMtOUPa19mIq00dzef9qNGK+Ml/u sshcF/MVKaj1GvGJtOOVfXO4/VDcbXH3tb/48k0b7D0xCP6TtZAo2lImb8rtMFyV3xqC vzgq17Nrh9E4aJj1LG+CPBYGOIHULaxoiUkDGzw4XF7FdSh3um5HgQzXA9RLPOUA9m3n 840Q== X-Gm-Message-State: AHQUAuZ2/uRnOYyomR8AaccTz+D+sr6/sI+O8PxAfUIycCJ9Kiob/O83 5WuuhX9eIH1cfFPp9X2D3qDTYg== X-Received: by 2002:a1c:6306:: with SMTP id x6mr389506wmb.144.1550493360831; Mon, 18 Feb 2019 04:36:00 -0800 (PST) Received: from localhost ([49.248.190.152]) by smtp.gmail.com with ESMTPSA id h1sm15703213wmb.0.2019.02.18.04.35.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 04:36:00 -0800 (PST) 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, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v1 04/12] arm64: dts: msm8996: thermal: Add temperature sensors near major peripherals Date: Mon, 18 Feb 2019 18:05:18 +0530 Message-Id: <51feb49578f6e412eb5e80012dc63eab5532342b.1550493113.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 msm8996 has a total of 21 temperature sensors. Populate DT with information about them. There are 2 sensors on each of the cpus - one on the top, the other below (we only expose one on the top in DT for now). For the GPU, we expose both, the one on the top and the one below. Depending on the version of the silicon, sensor 2 is either placed near the L3 cache or the venus video decoder. It would've been nice to be able to be version-specific but we don't have DTs that differentiate the two versions of silicon yet. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 98 +++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index ae6e9f0778f0..8e36a39e1386 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -237,6 +237,104 @@ }; }; }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 6>; + + trips { + gpu1_alert0: trip-point@0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpu1_crit: gpu_crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 7>; + + trips { + gpu2_alert0: trip-point@0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + gpu2_crit: gpu_crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + m4m-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 1>; + }; + + l3_or_venus-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 2>; + }; + + cluster0-l2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 7>; + }; + + cluster1-l2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 12>; + }; + + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 1>; + }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 2>; + }; + + mem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 3>; + }; + + modemtx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 4>; + }; }; timer { From patchwork Mon Feb 18 12:35:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 158609 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2440286jaa; Mon, 18 Feb 2019 04:36:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IZV7szsqqNuMq8TzM1zHzssr9Nzp5rnEdWNf8Z1bV/oeFeqUhob47uv2ZU7WdbHpHrHEje1 X-Received: by 2002:aa7:82d7:: with SMTP id f23mr5827804pfn.114.1550493387801; Mon, 18 Feb 2019 04:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550493387; cv=none; d=google.com; s=arc-20160816; b=peLJG82bjOhvsqSp+drC9riunV/U0dpgeZy1Ri+IERbouoFtA8CO/0IXVyLhtazStn Tpg/2h7CvKR/e/hdEHnGGcwawEyQ8/Nx6WoNrjDplh1PVzWhyUvqY5Fi48uqSuoHWhoO 4++3yzthSBA1eNpSD+1wmZOcPkkuw+RBJaGc1+2oCbAgQXz8d6nanSXPnfQ96BHh6DdW AHQoimfMIV1lB5o1Upx3ZGB4T7EFdSDeueRYI8LbaTcG85SiyodQSP/gZDqcQjSiumpK jc9yCsAWkthyjcOVH+L4WWZ7tzVDfC1YZymfY+MHQfaIgt20h99fuHPbpNjmcI9KUPE7 WhCw== 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=9U95FbF25ViJswUkrIR1g6AQUt6aGXXn7Rwca8tPtIo=; b=Um3aDvLA9KKtV9KxNLiQwHGnGr/KgQeBukvYgIr7j231zK0AeIStk64I9wp5RBbCQU DibZ+bn6dWSTw99id1XstpBfsY9JXeHhIrUrHA8CmV9JwGgUZGICYW4XVxNmGcJ7hgNz CJGp8Y0TkKyzb5IWvnD0JFKpD2Dos3arhRabUbI8EFZ96+Bx7U9lnob2uQd+3pX7w3Vx 0fLNj73fe7im1F994xug+SNX7b+G/ITm2QrNbt+p+bqSxspgFEVDIf1R43nekckagBWe annW+ZXYJarKSUI4Pe2cMZkx6exwDku70xXv80SA9O/godM86k++nYhoDYyhUKaG6aqc WwAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eGEc4QEx; 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 q1si13983955plb.229.2019.02.18.04.36.27; Mon, 18 Feb 2019 04:36:27 -0800 (PST) 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=eGEc4QEx; 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 S1730970AbfBRMg0 (ORCPT + 15 others); Mon, 18 Feb 2019 07:36:26 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34638 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729346AbfBRMg0 (ORCPT ); Mon, 18 Feb 2019 07:36:26 -0500 Received: by mail-wr1-f65.google.com with SMTP id f14so18248161wrg.1 for ; Mon, 18 Feb 2019 04:36:25 -0800 (PST) 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=9U95FbF25ViJswUkrIR1g6AQUt6aGXXn7Rwca8tPtIo=; b=eGEc4QExCkJp0UwEHtuBBvbhlsO3OgbyxZSfLvym0jqGn78n6PlUJHNzp1+YzHhMi1 2aOmXquTExBGw+w6ImLDQubILng9lOzlL45Db4sJr1qhSw2cqqLbWy+H6kfg9U/FDDh1 Ffg6CMXKLkpuaYfvG+z3EtzvTM62QCphywJoxhNseLcZ1HAg4I7TwEvAguPWv/9AUTph +OekJPnuGaFd+IXwvvBkG0dvGrPLoa7JG7VNChH6GPKsaoD7yVtn0xasHUYFUHdbcmHe cVYwAYs1HCQZF2EoSXteN/8iH9UCBadyoZkZz9o2zo5P1fyrCOlmuvUwz++C6jO6QlXW 6dkA== 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=9U95FbF25ViJswUkrIR1g6AQUt6aGXXn7Rwca8tPtIo=; b=hIkOhE3sQHWyvuh2CEoE/J4OicnC7TcMDTu1TD1ZLYL4+/RCXqYC2N4GszicJ8aG8z REs9hq8+NXzN40hrgKx8Ovf6Ct2WFSHQWJoprg1AcfHWCRSM1gCqio5pYtyWPoT80uMY U/ZDblNzGX/sdoMj1rBcsE08lQiL+w5Ty+5GGvMs/m2wlKjKiVmMk7VWZlNG5ZXSE3rv dlIA2bA0i/5U3Zy77KvhTMwaRRmEDqKWjPf44M3L0g0ETQvZRdAT68omr5p6TMVWSH+8 lgW1da8nq1bYdOoCQBCFBOgusScWHTKEIBtqgbQ4kiA8IhclMTEtQTruW/c4BgdKbN0s VD9Q== X-Gm-Message-State: AHQUAuaOMEqnlaBwSvzMzWLcbZ3J9liTDV/njWgStC15B0S6mYrhMJ09 6A0Oz0Wib66lfloQP+pNUr0QoQ== X-Received: by 2002:adf:eb90:: with SMTP id t16mr15906905wrn.324.1550493384509; Mon, 18 Feb 2019 04:36:24 -0800 (PST) Received: from localhost ([49.248.190.152]) by smtp.gmail.com with ESMTPSA id u8sm1209194wrr.33.2019.02.18.04.36.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 04:36:24 -0800 (PST) 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, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v1 08/12] arm64: dts: msm8998: thermal: Add temperature sensors near major peripherals Date: Mon, 18 Feb 2019 18:05:22 +0530 Message-Id: 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 msm8998 has a total of 22 temperature sensors. Populate DT with information about them. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 63 +++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index dc641523fcbd..26a493af0866 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -513,6 +513,69 @@ thermal-sensors = <&tsens0 13>; }; + + cluster0-mhm-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 5>; + }; + + cluster1-mhm-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 6>; + }; + + cluster1-l2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 11>; + }; + + modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 1>; + }; + + mem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 2>; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 3>; + }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 4>; + }; + + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 5>; + }; + + multimedia-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 6>; + }; }; timer { From patchwork Mon Feb 18 12:35:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 158610 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2440392jaa; Mon, 18 Feb 2019 04:36:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IYi3JxCOzndxrMlP2Tx3BFpyNnqynKOVHOOXQ0+LnW8Jw2MCBxzzhnVxQt/fr4xrYcLH+0L X-Received: by 2002:a62:bd17:: with SMTP id a23mr23701584pff.233.1550493394008; Mon, 18 Feb 2019 04:36:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550493394; cv=none; d=google.com; s=arc-20160816; b=ay949CTzIgOmCw9Bquv+WwKWPgsrhS1BPmIsGoiFBmCopujMu5XSKK+jITfwYgNrTs uz1IeGxsrcFT5EIMpjCwJ2xnIuShPuKgweZFamrwyH894lSSnIAs5cSDGTzI7qd47HgE L1gYnXwh6N9tulZMcxo/0qhVybrq6evC4XbHgs2IPnLs6bNu4krnJVOESLHIyyiRM6yo tNz6nMd8JKnziZsO1qP5XlH/Vr2uly8v1Tp+2fzFy+9CO3QIsQJNK/T+80y/EJGTi9wR XpQ3ZxAk2ywbkLcSbkWdBCr+IpjbMPiV6TKOQkSrK+JRxjMAjCa7XhZN3YAJEnPkjEFH yiWA== 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=X8u9l4N6lQKfR92IM8mSGGsF856tgRM+MVFm0jbOT8A=; b=h/Dvi9fbG4OasORGurj3WA12W6qNd/ZUR0VA88lvVzy+PFEETZegxeA5CvpWiW382j 1N2t4IFc9+ZDisaKT89Kb3nLr1WSG7M9vKMckCXng1REMZANAhHOovoknpuCEgIK/tNk Wd9+vsNMwkX1faklSTpv2oV/E0XChb/f4+HMCeElV2zmBBvYLUQqSMra1lvuKwVs1POo 92wbAnNGQAqrSBjp+1PAeQd1MLQUITd6vSa6TyqJDYZeHnEW1+tzlfgSETtqeX9mcstp 4R4h5HAhDPIIbL6O0FwnDJ4D1JCU4U24Rj5VRFb3FwDs7/qwSbBq8iTRmQQtA/W6uQUX lUEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CdFBjGnM; 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 x18si12195622plr.76.2019.02.18.04.36.33; Mon, 18 Feb 2019 04:36:33 -0800 (PST) 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=CdFBjGnM; 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 S1730990AbfBRMgc (ORCPT + 15 others); Mon, 18 Feb 2019 07:36:32 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46702 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729025AbfBRMgc (ORCPT ); Mon, 18 Feb 2019 07:36:32 -0500 Received: by mail-wr1-f65.google.com with SMTP id i16so9939138wrs.13 for ; Mon, 18 Feb 2019 04:36:31 -0800 (PST) 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=X8u9l4N6lQKfR92IM8mSGGsF856tgRM+MVFm0jbOT8A=; b=CdFBjGnMmIzlCGGIHIQdv1jeCRGmsYPp9cLii/fuQwY5FhzLYescGI4BKddG+UJa4Y tB7dsCeBce00eSCzfM40f95CVt47Bk2gTbk1Kpp0f3ne8q5e2XWYFKXFFUlW1K+qW/D6 0oXyJv0Ol8yFAkk3u+Z5NY5GsXK6SotAGsMRQWyvoXuYtAfqsssMtF3wcyC3YYSLBH+L vJpItXxaZJvAuqEj6Auy/APNEOReVD9ThTrG1inrWE4OwhP/lPgq6vtAdonTtga2AjQk Jk4dCaAzZFDIrmOueqQKqpbUOaewIPniqZvRsMh4Dwgy3HNfTSEWOauh8nmc0LcRPYub oleQ== 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=X8u9l4N6lQKfR92IM8mSGGsF856tgRM+MVFm0jbOT8A=; b=RztFlIzl4uUsSpAMSkYfuVOwxsvG8S/yZ3PnmK/ZrMq2/ct6pb31UVkDvU8vfCTPpd xl8fNnNeUfNL6vunc3SHiRb3pYWFP8gpyvXP0QZaUMeJN1bDpqXiaDFtCB5+XezdGzMr 4ef7czOe2Y/GZNtE+kCUXHW9uzxrqghVep6oGwZlceaNtzmtQWs+0Qu+MwihAfXBnOAd FVBEA8DV40PdGepP7VKsdTSg+JP6pjxnS7uLORPpehfHSgLfrO6Qx9KhpsRbuMeFQrYU Beb+v+9Hol0BqWL2vY0eCBDQJg1jsOx3XLgPWGxC7MK2AN26zw4mETlosh87xuMubAY/ hXVQ== X-Gm-Message-State: AHQUAuaqfz4CbyqSdXg7mhVRBRawsn9F06MBWxU5mT9QlCN7vqcZeLkY kAVMJZRLJXUngK0V9yd93ZUGWA== X-Received: by 2002:a5d:68c2:: with SMTP id p2mr15424289wrw.23.1550493390452; Mon, 18 Feb 2019 04:36:30 -0800 (PST) Received: from localhost ([49.248.190.152]) by smtp.gmail.com with ESMTPSA id p9sm7265051wmc.14.2019.02.18.04.36.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 04:36:29 -0800 (PST) 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, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v1 09/12] arm64: dts: sdm845: thermal: Add temperature sensors near major peripherals Date: Mon, 18 Feb 2019 18:05:23 +0530 Message-Id: <1a57e10249dfb9d97b45d748338dbd188a6cf6d5.1550493113.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 sdm845 has a total of 21 temperature sensors. Populate DT with information about them. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 91 ++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index c27cbd3bcb0a..55c8f3f99add 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -1851,5 +1851,96 @@ }; }; }; + + aoss0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 0>; + }; + + cluster0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 5>; + }; + + cluster1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 6>; + }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 11>; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 12>; + }; + + aoss1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 0>; + }; + + q6-modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 1>; + }; + + mem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 2>; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 3>; + }; + + q6-hvx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 4>; + }; + + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 5>; + }; + + video-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 6>; + }; + + modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 7>; + }; }; };