From patchwork Thu Jul 25 22:18:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 169761 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12182686ilk; Thu, 25 Jul 2019 15:19:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgmdyKUSX2JGPe5kRDnyCSzOrN7rgfTIHKtmbHQbJGh2eklMeeXn49ht/mEoTndKPF+Oac X-Received: by 2002:a63:9249:: with SMTP id s9mr85417727pgn.356.1564093178025; Thu, 25 Jul 2019 15:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564093178; cv=none; d=google.com; s=arc-20160816; b=dstny+kInkh35LfCpvEaOihycTlaLjoYOSeqxCkzr0AHKi/HZDE73vJtfGF8e7/J4v f1I+XuY3ePg251dYCHnd8dvYyS5B+h0Lr4uvosr7r6t3ytY7IkfzDtNNJMWEU9Uk40/P Xk5RFZOmwcYaE8KCR6DFVMUlZyt0f8LBcOVeBiG7A+tznK6E9nzwgEup6Zi2APDPAhxd TxKxYU1ErPufPftoON4BEzl0PyzM1K9fh8sm153W1AatQKpp4qV3Y8ETAlCqox/57Rmw CaTvi0yESkndrbqIdG6ieL8wnO5JtCp0TomzDF68tJ0W+BPRWUcmZ1AdV6X2SSHldQGo e16Q== 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=JdFpkP7pbSMH9B4M7FTkhgG/lqjyJ6OOE6axVL6CUAA=; b=u3bMv0U05WcgHOGoEDcaW9njlnksZuuLGicG6Rjqe9ypA17ZcSN3wmfOzKcaQC5Jqy boqmudMsgTXqgjWnD4v2Mk8MBC3LDCh2zOokL+QlkpkED5kt55YfFfO8JOocdxOqisq8 Q4UkmfjvmF0a1FhezD9Q5oD2nycbHpoAqQvnKkK89hGDYLuCqouIJk18qpMBJx0aYp0s IQ/Yq5uf6C/YGDSynA2zOmUfJcaNjQn7SGuQsb7tBuMuam90fvVHYxFFjIVEMkinE3lG jt+R1goiJxcaEV8XPJ2Q/GxQLsUYA++vh+MQ4mTDIOXAg80H8vUcsJ9q4caAvHEPv2ia iocg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GYJfW3Nk; 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 i186si18916738pge.9.2019.07.25.15.19.37; Thu, 25 Jul 2019 15:19:38 -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=GYJfW3Nk; 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 S1727222AbfGYWTh (ORCPT + 29 others); Thu, 25 Jul 2019 18:19:37 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37391 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727201AbfGYWTf (ORCPT ); Thu, 25 Jul 2019 18:19:35 -0400 Received: by mail-pg1-f195.google.com with SMTP id i70so12974264pgd.4 for ; Thu, 25 Jul 2019 15:19:35 -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=JdFpkP7pbSMH9B4M7FTkhgG/lqjyJ6OOE6axVL6CUAA=; b=GYJfW3Nk1FciY+HZgW4xr/BxUwR7yovYnBpJcN1IbpNy1g1p3YsR/uwxoB2IEi7P4K KcbL5OybLLonmU2MsMy5Q4cq3vm39gIgZPoP+xBpaaLSREG8FuBZvYcrvWnRYDY+Tt4K gKHCBwaODfRdhdGG2E9Qc6dEl/hlqAj2VffQcXz8erUZ8nbzYhE6deP/J+tDFIaeOC8M PEiDGmTj8kVDTzuXHPslBfvdhR0WOBZvo6Yh52qvN9S085CKrLZNVi28rcG9vlHXyp9T kfczcZmu9/OshGnXY7I0YVHqA4igGLAg1y2t58VzSN23q3RidX2i5UPwStT+unPXrT47 00lA== 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=JdFpkP7pbSMH9B4M7FTkhgG/lqjyJ6OOE6axVL6CUAA=; b=kz2yFj+ehaxVxxHHMbmMW0hFJpZHLkxw2UYkMfWCPiZdCK0iFn7sQrgfndDtIsR76t klZEqKJLcvKbiMeCtsMOH9GtBZlANVxmD5Gy039xh8rVF5EfRxKN+Y0d5cNEzpdvbeNO SyLqdYvsLEus+HcJaE8qjcIHb80ypBTEAtqwxNBdm52JlljFFWRarsSK5Y49VyGJ8xeO UCrGaBhsBAiZXaULjlXCIcDmIkGItSJwCQDTobenhkTJ2WuHzDiV20T3ez3Z87X6UiOP PH5Ypw3GE3PFh7q+8FfRHd5lb+DMaA2j43sZhBru/2k8U5zfOAVZ39x5USvBwLRY54/T fVdQ== X-Gm-Message-State: APjAAAVDvh2Jg7qt9DYnf/dqy20OfR03Q6zJzRMG5JfQwHEp0o4nwgg2 hvYTaL50KSGjJFgu73qTiT8Vt+VEhX0Rxg== X-Received: by 2002:a62:8494:: with SMTP id k142mr18672822pfd.75.1564093174334; Thu, 25 Jul 2019 15:19:34 -0700 (PDT) Received: from localhost ([49.248.170.216]) by smtp.gmail.com with ESMTPSA id 81sm45632927pfa.86.2019.07.25.15.19.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 15:19:33 -0700 (PDT) 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, Andy Gross , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: marc.w.gonzalez@free.fr, devicetree@vger.kernel.org Subject: [PATCH 10/15] arm64: dts: msm8998: thermal: Add interrupt support Date: Fri, 26 Jul 2019 03:48:45 +0530 Message-Id: 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 --- Cc: marc.w.gonzalez@free.fr arch/arm64/boot/dts/qcom/msm8998.dtsi | 82 ++++++++++++++------------- 1 file changed, 42 insertions(+), 40 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index c13ed7aeb1e0..f9abd652a544 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -440,8 +440,8 @@ thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 1>; @@ -461,8 +461,8 @@ }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 2>; @@ -482,8 +482,8 @@ }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 3>; @@ -503,8 +503,8 @@ }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 4>; @@ -524,8 +524,8 @@ }; cpu4-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 7>; @@ -545,8 +545,8 @@ }; cpu5-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 8>; @@ -566,8 +566,8 @@ }; cpu6-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 9>; @@ -587,8 +587,8 @@ }; cpu7-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 10>; @@ -608,8 +608,8 @@ }; gpu-thermal-bottom { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 12>; @@ -623,8 +623,8 @@ }; gpu-thermal-top { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 13>; @@ -638,8 +638,8 @@ }; clust0-mhm-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 5>; @@ -653,8 +653,8 @@ }; clust1-mhm-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 6>; @@ -668,8 +668,8 @@ }; cluster1-l2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 11>; @@ -683,8 +683,8 @@ }; modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 1>; @@ -698,8 +698,8 @@ }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 2>; @@ -713,8 +713,8 @@ }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 3>; @@ -728,8 +728,8 @@ }; q6-dsp-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 4>; @@ -743,8 +743,8 @@ }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 5>; @@ -758,8 +758,8 @@ }; multimedia-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 6>; @@ -845,8 +845,9 @@ compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; reg = <0x10ab000 0x1000>, /* TM */ <0x10aa000 0x1000>; /* SROT */ - #qcom,sensors = <14>; + interrupts = ; + interrupt-names = "tsens0"; #thermal-sensor-cells = <1>; }; @@ -854,8 +855,9 @@ compatible = "qcom,msm8998-tsens", "qcom,tsens-v2"; reg = <0x10ae000 0x1000>, /* TM */ <0x10ad000 0x1000>; /* SROT */ - #qcom,sensors = <8>; + interrupts = ; + interrupt-names = "tsens1"; #thermal-sensor-cells = <1>; };