From patchwork Tue Aug 27 12:14:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 172283 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp5702551ily; Tue, 27 Aug 2019 05:15:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqx52ee7M8fU/13ODd9KLeIUyyrHwfJAkmDnG4Xn3/UxITF5bP5gSDGJFG6pJ+7TqWdHdCFV X-Received: by 2002:a65:500a:: with SMTP id f10mr4769557pgo.105.1566908109995; Tue, 27 Aug 2019 05:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566908109; cv=none; d=google.com; s=arc-20160816; b=zqhIFDE2qLGulm+mtSkp+QBPSI261kvcP9SpIKYN8Wc/AH+uYtNslEkRM4ga+DNY2p DavhY+FdbZ3WKQbj/B04jCjD4uSeL3mXKnPpr5TnqIFl7WIv8gq+vqVGl1p3Tebqb55V l+0qnLIFiYeXT8nfTkh/iN78NHcQELQ23zapeoOdU6kCoc/uR6IT0v7zVDUPrSojcgk/ A8U3Noz94ftyYW8xF8yKj0dtGrz/SC9pAJI+b6fNdRnO58wlu5GHTw8fNjB4cNUIqTe/ WvAsK218bWp+plEldBz5+DVCipzz/MD6wzcqSLJM2BiQ++EmNjGee1VkM/aq3SD3kOHJ eiFg== 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=jsacasSdR4EmC5KykVj3gAAOQ3NwmmFKtHpE2Pab4bk=; b=dSOEPi7yKRMi33+6fEQn8mIPbR723dgJ+dSnheg59G5bVimZLj2NOkprnWQPRQS781 l29uLIpdnaBxQa5kiDq0FVFYMGH9JWBmgTloMfJTSQbKy/NAkVDkuqForxx/tlKWuwbd spWs165r2tEoHxTdd+eH2q/ro6I4XFIitZvWTannmMTHG9TxFnp++clZjJYvNMvokIJj +IzEdUMCp/s57FdDGH2eKxaGSbcCjc1ABle//Mr3gc7kH5HYNGd6ihrMEjGNdVsSIl7v 8RkpY21uH+OQMGgVgFgYEYW8f1f6GgMUAmMfkHZmfG8dWikAJL7/NzroOdfFBJkl9wSJ uFqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OQ9KIMH2; 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 q7si971253pfg.203.2019.08.27.05.15.09; Tue, 27 Aug 2019 05:15:09 -0700 (PDT) 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=OQ9KIMH2; 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 S1729916AbfH0MPJ (ORCPT + 16 others); Tue, 27 Aug 2019 08:15:09 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43934 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726596AbfH0MPF (ORCPT ); Tue, 27 Aug 2019 08:15:05 -0400 Received: by mail-pf1-f194.google.com with SMTP id v12so14008930pfn.10 for ; Tue, 27 Aug 2019 05:15:05 -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=jsacasSdR4EmC5KykVj3gAAOQ3NwmmFKtHpE2Pab4bk=; b=OQ9KIMH25tS/wRGr8LPMqixT/2rRHQEbcKive4WxsloxddJVXVgHXGwkBL0BOLaXtN B2PjLpp/zt+OQv+WAubAnIQNxVbGahPYvoycwVda61RFfQsRedVuNBgopQvwFFiJB+K6 ltNvtf/BpeD9W2ZMKd8Cgz6OIlGiwWl3F3ndlQe138nQA18C/4tqk1+yeSGUNbYy43Wd oE1W0UrMoGPOBVM8hd1TiJ5ApUE8J7VmS71mdP6tx2pS3+Eet0Pqfu7tBYKpa8CaLqFc 13SRQI3qq3MpBWR055LKUYw5C9Lv1nQ43f2KBF56WwjSZu6J3IJ0QEkDKrF480FF172Y NAlw== 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=jsacasSdR4EmC5KykVj3gAAOQ3NwmmFKtHpE2Pab4bk=; b=ZCIY+JbKcIriMhUr561oi+iwgsjNOIaMELQnwIJoAxc/xZTSy5X+ZM53PZzEFc3xex qkn8yvG+mY2o1oybMm6yGEDJTosHpnSpUpd4tXev/CkDkZmGPMMOER/FnMGKNkEEtm58 mU6lfyL1vOlTez27lQeLFwT2h4sMYk8N/l8rR6vOSl99RIuk6D+5tO9WKC/WpmLLXHoi pk1qmDgg34PKEcB2gBmPDr2JCxoHiasDCXj0m7EDtK1z0h1Qa0RMcSxTfIHJU+Yge3Ib uoqF7ezWZFctGcbtugKDrHUvhKPnV045877lngxjPab4N/TDoTevdiFcx4UZmDSkNrBK 76Vg== X-Gm-Message-State: APjAAAUTBuv9WDVBNfUqk7cWUq/+x7vlem78tLyd35WOsqgZBJ44Oy/k iJHAkQ5T4hke1XkIdGeFAz8Jpg== X-Received: by 2002:a63:d84e:: with SMTP id k14mr21037638pgj.234.1566908104765; Tue, 27 Aug 2019 05:15:04 -0700 (PDT) Received: from localhost ([49.248.54.193]) by smtp.gmail.com with ESMTPSA id y188sm15124199pfb.115.2019.08.27.05.15.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Aug 2019 05:15:04 -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 10/15] arm64: dts: msm8998: thermal: Add interrupt support Date: Tue, 27 Aug 2019 17:44:06 +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 Register upper-lower interrupts for each of the two tsens controllers. Signed-off-by: Amit Kucheria --- 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 c13ed7aeb1e0c..1e2f77b38f2c1 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 = "uplow"; #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 = "uplow"; #thermal-sensor-cells = <1>; };