From patchwork Thu Jul 25 22:18:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 169760 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12182642ilk; Thu, 25 Jul 2019 15:19:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwioi7RISVWaa6kTQ5ua0Y1ne8g1ybnN76TmyoiEHTZ8yw6xoHDp+pxzb7Ti/O2Yg1cAiDv X-Received: by 2002:a17:902:a417:: with SMTP id p23mr91740461plq.136.1564093175071; Thu, 25 Jul 2019 15:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564093175; cv=none; d=google.com; s=arc-20160816; b=NOu0MnH5MtdA84nzLbKNwE6KhjWLSubKM/puVEpSR5s5Cjpodh93pMvDHZnkLBstWo xlm0uX40qYuR4B2mmjQrkOzS1b/CKn87ZeWDoNE+S+dPQvoUuBpiwW+J/QmO7wDff6Ik I0hHT12nCAAwWnJ77C2uHGmGHL6BUUMs3eAOAUDaFhvyyyQN0mEEOhnsdBLaI38NGUL3 MbPhtUAL4Lt6OZzGzJAuQ0tzCe4lgXgLtMCiHglDJaJQ+qyAfd0i/QrI1mySbaor2B8D cz3RX6ckAtdr0m5oB9A89xMryYFpy0xdCVj5H//noBrxIpq2Jk9gzkluseLelwti/VrS xrSg== 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=HLd5BYTLvTidDZM6NfJ6T6wJij+y0rEPT4LTsgmb6as=; b=QiUyf2/BwIP9zKdV6xXoLVeNMnqTBhmiT4xmNLu6Xy/5IDWHrHu4T09wwPWUQXf69y IBTcWzEaDohF/LmqPVLX7YiNDlptN53RXKh3P6N8pWNMwrOr7aWtdMAfYk78wCiJpXuf Dm0WsdwwRgY7n+xM0XQ3fxI5kINHJW5QgJPJIlPY20H3xEDmFUdf3DklaeVIlxfeVyZc UTaKUq9M6lDpjHgNDBVtB5cNpcay6ZRezM22Uvr8lUaq7jtGWjgYsMwq2GAcXvuign1o y1hkDZSZWLXvrI8SSCUrbJaGRR6g2IbVThul99lMTFZ9yfzaD8TgQjUJz464dOPDyjaT xUog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pBMFjLZK; 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.34; Thu, 25 Jul 2019 15:19:35 -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=pBMFjLZK; 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 S1727195AbfGYWTd (ORCPT + 29 others); Thu, 25 Jul 2019 18:19:33 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42099 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727157AbfGYWTc (ORCPT ); Thu, 25 Jul 2019 18:19:32 -0400 Received: by mail-pf1-f196.google.com with SMTP id q10so23423455pff.9 for ; Thu, 25 Jul 2019 15:19:31 -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=HLd5BYTLvTidDZM6NfJ6T6wJij+y0rEPT4LTsgmb6as=; b=pBMFjLZKjntawXd1jx37nq3z7ubVUbuNaTDBHgL75L4wNFtReJcGq5+Al2eGpZPphN Z03606b5uMlr3oQnvR6W4etzzo8S60E7zjkmT4deJghIgbHHJMa9E19byS8CSbnYUgC0 IXPWJgY1Fxf1cR8UNXvMGjbTbp+8/8HXqJhXNara6xuleaZBx37yCLg6UcgV6/ovECBC dqwacFUZiHB5mH82UwyRMq4ckfbMA0vatGg/vYpE1hVXGb9nhL5eXYYQpOlM4U2363v2 rjVFaBx4shRZAz8leCYOuYj5rSgva1aIl3+aguePmqAPJEtRT45X6+8HKVIYFTyyF1Ra 94TA== 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=HLd5BYTLvTidDZM6NfJ6T6wJij+y0rEPT4LTsgmb6as=; b=s0UAnKgzJ7uDHKUiQzflrM6oM/1hZoQp+XQmfdC/UlQDKxy5RWzLhPSTemkI3tdj2Z Uqb3QpCuDN/n3NHRm4ZoQcmITaTXRGxb/+khmizcFxjF7YoDZoKfGAMj93R/MyoiSNGe bigR84QoOkgoepNowMBRjSYyQa862G6PxdCieFHIARlwEIyU6CSjPT79ry0pPKhiwlzG ot+c7YS57UoF40hWouynEOXQwnelGSqgogHUnL5+oR5t4OlMIG9uuEtUI+RqFoK/V1la pkABs0RVJylPwWINSqjzAvELz2EFrRrOAQzoA8roIwOaeYzNFowzYRh2Jq+EhSQ3E6Dn 9ZVQ== X-Gm-Message-State: APjAAAV4ienE1tqutWRKEPX883MqiXexHAiTfQMrecbv9hm1P+wqHXzB 43tzOgnSqpQwG8IcYixDw1GG0rm+YQNXvg== X-Received: by 2002:a63:7205:: with SMTP id n5mr33630981pgc.443.1564093170806; Thu, 25 Jul 2019 15:19:30 -0700 (PDT) Received: from localhost ([49.248.170.216]) by smtp.gmail.com with ESMTPSA id b68sm64261050pfb.149.2019.07.25.15.19.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 15:19:30 -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: devicetree@vger.kernel.org Subject: [PATCH 09/15] arm64: dts: msm8996: thermal: Add interrupt support Date: Fri, 26 Jul 2019 03:48:44 +0530 Message-Id: <2b291e09751d2face5c71b48548a72e56c1e6669.1564091601.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 96c0a481f454..7325eba42d19 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 = "tsens0"; #thermal-sensor-cells = <1>; }; @@ -599,6 +601,8 @@ reg = <0x4ad000 0x1000>, /* TM */ <0x4ac000 0x1000>; /* SROT */ #qcom,sensors = <8>; + interrupts = ; + interrupt-names = "tsens1"; #thermal-sensor-cells = <1>; };