From patchwork Tue Aug 27 12:14:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 172282 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp5702447ily; Tue, 27 Aug 2019 05:15:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxs6TGrg6xl4qdAx0tVT7W8jjOnq9fb2CwJCk88s99oUi71PPkEMtIM1p0jph0jbWfhUaw2 X-Received: by 2002:a63:c203:: with SMTP id b3mr21105714pgd.450.1566908105606; Tue, 27 Aug 2019 05:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566908105; cv=none; d=google.com; s=arc-20160816; b=uUlE9E4AwfAu3T88iZJWeAHshUX5nDkVfg+sbONaU12SRsvz40NHM5+jwGdBNgh8Us qjy4+J5oopY6XlKqQQYjIINNWPDVDsy4vWBCy3qim93HjkE15xr2ScZKWmWr1oS2xGNq kBgf4b4acR1h18ZyXGIFdaKqwPEGJ/Vfi63pDXONYk0R7imBOnWAy41OwN2zbySoRiWB 6UseCobdTrgNMJU1A8DUoffXg8RErvoOtX43Wy4baeLEzFJLZEYTRUphK/xsxeAWBjHL eFAoESJQ+TPSUjzM3k8OBxwzvy0oqbhSCBMJcPEzv64dAO2NLycusNSBOitpnmbo7219 Z/gA== 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=Z0Le2PAu5WlIzLrzHU7A+NgFGbrzrQB5/n7YQK779lQ=; b=ebWbkYxA9GWGt0K117m7BhDgUMuu6rBx4tGZxvtqGorfmeVZzJHjRXMnaySgsxXrPk cIAX6RYz7ZGw32KkU+MXcmiKG/tT+xsAG0cXiCBP+ahGbbLX5rV3ob16dmocBDqGYlVm WFCbp+ommWy1HvX0xPSMuZKZ/5ALmUj5SB3dcuDo3WJKOc4YLn4vCoWdLUc+M8O8NK7P 6KJs/BToU3lUsxZEzfA5x+yAY+o3ZESSmi1SF3T+C3iVjJWzIUTSd+KibUKU8vY+DIn4 u3duyUVdJpX5XPG5sit56DpG7MxH1R6pfCAK9QCFLdrqdeTjCY2p/T9XK6vC/AAujxJQ dXEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=whhOKA68; 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 q7si971253pfg.203.2019.08.27.05.15.05; Tue, 27 Aug 2019 05:15:05 -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=whhOKA68; 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 S1729945AbfH0MPE (ORCPT + 28 others); Tue, 27 Aug 2019 08:15:04 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:42334 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729916AbfH0MPC (ORCPT ); Tue, 27 Aug 2019 08:15:02 -0400 Received: by mail-pf1-f193.google.com with SMTP id i30so14000281pfk.9 for ; Tue, 27 Aug 2019 05:15:01 -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=Z0Le2PAu5WlIzLrzHU7A+NgFGbrzrQB5/n7YQK779lQ=; b=whhOKA68YptOYkj4IkTgoOPKKfPHlSFwGl1urwiruMkzIGkYQcY4eGQH+oGLL0o3FR ah28jbdMtX56fl5LBfgovM3UL/CJujI5CG9fGDDCydwezhToV+s2eeFjLd6vRDKIZJJ0 5W9Dlgmk8HcUoOE1NyXRGQwEv1+kv5F3O/pGbVzSVV4AJrQqbLqKdhW8YUUGSmB0HzFS +LfAdgaWNiFJTeCfG1A75xlQX47dZs4oPCcaTBA/J7wc8lQs08aQzczYk8ogKGbcFlcJ u6d8NjmjO7pRMrMZZ9CK/SPQ1MRXKEdzPO8lI8LnF1Q3aG5ELhfAVAo9z6Z90nglQMX/ G/Gg== 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=Z0Le2PAu5WlIzLrzHU7A+NgFGbrzrQB5/n7YQK779lQ=; b=i8RxfdxEBthYupCjWCATlR/RnRRoc4Jd92+UBPq4XUORSIOq9sxa4izMuwjzampo4b 2GBr5iBf7OakW4dcn5ZH1y4/XyUxzxzCHY/MHeeLW8pNjZs+OLo5j+sq7GRKemLqYWEA cBNC4euw1YEY9Mj4ZBTDGN6EtRoSU9pdMXPFiYVqqRUgKhXmIXILtBARsSgF45+xXiEL cwNLLY1MS9Lp/+Eixy0ZL/1pN1W8lwBJIt5d4obQ6PR/PEOZiyphz6m1Q+egtXTaQU3y GYmuq5aoGWHa8r4iwAhvYtqhYjYUO2q2adhFntx5o/HsApTfMGwLyCXRs5QljqY2jVyb 797A== X-Gm-Message-State: APjAAAVwV/PzyxuEJZZNWoOp3vLWIvzKKcPlN3l4+R8HoV41iQAfjy+k ZRsFuHZJrcR4qFygr/r/B3PLBn1SqU1CBQ== X-Received: by 2002:a17:90a:bf0e:: with SMTP id c14mr8812038pjs.140.1566908100794; Tue, 27 Aug 2019 05:15:00 -0700 (PDT) Received: from localhost ([49.248.54.193]) by smtp.gmail.com with ESMTPSA id o3sm4426355pje.1.2019.08.27.05.14.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Aug 2019 05:15:00 -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 09/15] arm64: dts: msm8996: thermal: Add interrupt support Date: Tue, 27 Aug 2019 17:44:05 +0530 Message-Id: <1cb5ab682bce53d32f3a73b5b29cc6c3e800bfcc.1566907161.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 Register upper-lower interrupts for each of the two tsens controllers. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 60 ++++++++++++++------------- 1 file changed, 32 insertions(+), 28 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 96c0a481f454e..bb763b362c162 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -175,8 +175,8 @@ thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 3>; @@ -196,8 +196,8 @@ }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 5>; @@ -217,8 +217,8 @@ }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 8>; @@ -238,8 +238,8 @@ }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 10>; @@ -259,8 +259,8 @@ }; gpu-thermal-top { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 6>; @@ -274,8 +274,8 @@ }; gpu-thermal-bottom { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 7>; @@ -289,8 +289,8 @@ }; m4m-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 1>; @@ -304,8 +304,8 @@ }; l3-or-venus-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 2>; @@ -319,8 +319,8 @@ }; cluster0-l2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 7>; @@ -334,8 +334,8 @@ }; cluster1-l2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 12>; @@ -349,8 +349,8 @@ }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 1>; @@ -364,8 +364,8 @@ }; q6-dsp-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 2>; @@ -379,8 +379,8 @@ }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 3>; @@ -394,8 +394,8 @@ }; modemtx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 4>; @@ -591,6 +591,8 @@ reg = <0x4a9000 0x1000>, /* TM */ <0x4a8000 0x1000>; /* SROT */ #qcom,sensors = <13>; + interrupts = ; + interrupt-names = "uplow"; #thermal-sensor-cells = <1>; }; @@ -599,6 +601,8 @@ reg = <0x4ad000 0x1000>, /* TM */ <0x4ac000 0x1000>; /* SROT */ #qcom,sensors = <8>; + interrupts = ; + interrupt-names = "uplow"; #thermal-sensor-cells = <1>; };