From patchwork Thu Jul 25 22:18:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 169759 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12182599ilk; Thu, 25 Jul 2019 15:19:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7ZXXkNQNum6XwZN8AGTSbdA7yElCskxFvt+bQnift4J/w0Z1w0ycbE5KU4gZGBU+av+Qi X-Received: by 2002:a65:6288:: with SMTP id f8mr82738115pgv.292.1564093171702; Thu, 25 Jul 2019 15:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564093171; cv=none; d=google.com; s=arc-20160816; b=hKGsvxmcnDJhjoqnSEQhSdytj6sgmT1T6OP9aZVwt0di1dg+3feanPxqg1gpJeBUE+ w2evjR07fp+q0JHZJ41XapSO/YVdEyOKYEu98G42KIIXXMoPz2ORHrCoeWHGafVbSjFd YjT3wtUNdCUYBAuvHgNDnjvIxBxeXo1EOxrz3njBdtYwn0lF//NgT9ryU9Q4WygXDqbY goVdkw008AGc62PDTIImb72Ik9KoI/Hs65tu/7WJDpsa0I7ATFzS+gIGQZzF0VCDLxY4 sjrLHpN7HCwWCMQhwWNF0uUFprXZke202gxYdLt/Eg/b/Ld7Hl6ue5gKYMBnCxueyD0d VNOw== 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=B+sNITIVQHHNvE1ebQJYrxPKhAnKZEk3KdjPCeO24Js=; b=fJdv9mWptjmmF7MVAQDtY9TxMY6YlfkBYRNKljFuXco8cHd80kVSuNTd8UOmWNWgOp aFm1fRiBynOc/SJJ1tEYN/Nnqzk+v1dW5HITH01wSqrJI5bGhVfi8f2w5YsrMEUxpE1m Ub+1DdH3SHtGQ4qy05wYRzwpoBjkRg5npHnZ+/UgVOidF64adK/9Nx45G5vutfoBivW8 dfxNw6XPnygLncOA4adpT4ag9GjkuL1tXx2gCgnKecsCo93iC3ioiqyifV/aQ8ybNok4 lw46w9ZOPkkwOvJHLiJmvRAylhl7ltPmzWoZAwCGpOHRsI7Zew5ZUYgqukyWRvHg1voG ingg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OEYWnG+L; 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 s12si17148989plp.63.2019.07.25.15.19.31; Thu, 25 Jul 2019 15:19:31 -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=OEYWnG+L; 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 S1727137AbfGYWTa (ORCPT + 29 others); Thu, 25 Jul 2019 18:19:30 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:45747 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727073AbfGYWT2 (ORCPT ); Thu, 25 Jul 2019 18:19:28 -0400 Received: by mail-pg1-f194.google.com with SMTP id o13so23697684pgp.12 for ; Thu, 25 Jul 2019 15:19:28 -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=B+sNITIVQHHNvE1ebQJYrxPKhAnKZEk3KdjPCeO24Js=; b=OEYWnG+L8vtEXhvSjaepFzrMjQlSIKpC/tyVyA0/OeNXeVuDDpXjMWYrmKBaCQqq1w BIfbHV1lzc1m+Stz7OAOo+ChkH13/DbiIErj+opZtqgxMt2IUKi7pu4yAIlpAozKnCmV Ega9ZJQBRaw/vtIMhf9yByIcTr7Nc4chaZx41kzdgWX1M3GJ64jTUAvAS806iSXUtkoj v/Z8QMLnskh+bA0IpJLziNIUvs3J6a1oAA8HjXw9ULD9qjmKAJXXWvZEDVW5v29scXjl uB9KNzYN9xPLFVpOu90sGqVFzMatBUIz1BDwSUUwOUfynTxxnKEjFNJg6PbJflcBelf2 srcw== 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=B+sNITIVQHHNvE1ebQJYrxPKhAnKZEk3KdjPCeO24Js=; b=mmoPVKSV1tF6fyqQ0dm3OLaIk6LxT+d5NW/DpQPds984FXOyfnM5+8LZJy3CsXo8s5 fpRFYxMj7pAD/fRyJPrqdvIKFgBGN1pQx8vpXxJtSM8PGMZNTGuhdaepAjv5JhTVg1ZB vUPNY7SxSxOA3e33rTJrsRkFqtVIVuRD9shKhM96kAeTUrjFLme9DzzBjMMO0IsA7q48 Jt7blI6hIzmElTa5e9xomfkar7yqwacfXRKJHKOjDD1MpnlsB3UhijDIWgrVb9shG6a/ r9aFPTcnHDot0EpU8LgSMYIep2CipH0EtX4QNj3z/Dlzfzf5Gr7sBcbvxmRgaZaSqfKH Dxuw== X-Gm-Message-State: APjAAAXiz5BpvXipdG78iMrn9Ex8mUR4TtghlwjpwBDEDoAon7zQRhSD yFuRQCC1ZbYRkI0bO8U3Sw6mT8tvMQiJLQ== X-Received: by 2002:a17:90a:ab0b:: with SMTP id m11mr97773483pjq.73.1564093167338; Thu, 25 Jul 2019 15:19:27 -0700 (PDT) Received: from localhost ([49.248.170.216]) by smtp.gmail.com with ESMTPSA id v18sm46030597pgl.87.2019.07.25.15.19.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 15:19:26 -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 08/15] arm64: dts: sdm845: thermal: Add interrupt support Date: Fri, 26 Jul 2019 03:48:43 +0530 Message-Id: <7f6f6b93b277702dea1e37c29ef61641d98455ea.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/sdm845.dtsi | 88 +++++++++++++++------------- 1 file changed, 46 insertions(+), 42 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 4babff5f19b5..43c06e54b69d 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2386,6 +2386,8 @@ reg = <0 0x0c263000 0 0x1ff>, /* TM */ <0 0x0c222000 0 0x1ff>; /* SROT */ #qcom,sensors = <13>; + interrupts = ; + interrupt-names = "tsens0"; #thermal-sensor-cells = <1>; }; @@ -2394,6 +2396,8 @@ reg = <0 0x0c265000 0 0x1ff>, /* TM */ <0 0x0c223000 0 0x1ff>; /* SROT */ #qcom,sensors = <8>; + interrupts = ; + interrupt-names = "tsens1"; #thermal-sensor-cells = <1>; }; @@ -2712,8 +2716,8 @@ thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 1>; @@ -2756,8 +2760,8 @@ }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 2>; @@ -2800,8 +2804,8 @@ }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 3>; @@ -2844,8 +2848,8 @@ }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 4>; @@ -2888,8 +2892,8 @@ }; cpu4-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 7>; @@ -2932,8 +2936,8 @@ }; cpu5-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 8>; @@ -2976,8 +2980,8 @@ }; cpu6-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 9>; @@ -3020,8 +3024,8 @@ }; cpu7-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 10>; @@ -3064,8 +3068,8 @@ }; aoss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 0>; @@ -3079,8 +3083,8 @@ }; cluster0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 5>; @@ -3099,8 +3103,8 @@ }; cluster1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 6>; @@ -3119,8 +3123,8 @@ }; gpu-thermal-top { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 11>; @@ -3134,8 +3138,8 @@ }; gpu-thermal-bottom { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens0 12>; @@ -3149,8 +3153,8 @@ }; aoss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 0>; @@ -3164,8 +3168,8 @@ }; q6-modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 1>; @@ -3179,8 +3183,8 @@ }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 2>; @@ -3194,8 +3198,8 @@ }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 3>; @@ -3209,8 +3213,8 @@ }; q6-hvx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 4>; @@ -3224,8 +3228,8 @@ }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 5>; @@ -3239,8 +3243,8 @@ }; video-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 6>; @@ -3254,8 +3258,8 @@ }; modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens1 7>; 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>; }; 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>; }; From patchwork Thu Jul 25 22:18:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 169762 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12182723ilk; Thu, 25 Jul 2019 15:19:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzK40YNPfXON2GHEehSlfy+J/xhujF5k5BzTovmEvZbmX7N47MH71Mc1aPe0ViK6tm8+89f X-Received: by 2002:a17:90a:1ac5:: with SMTP id p63mr93068895pjp.25.1564093181557; Thu, 25 Jul 2019 15:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564093181; cv=none; d=google.com; s=arc-20160816; b=lcWV0Z8ksYNilqcW2Q3/LKO7933POVENv5iyXLiiHeJN7XhQu2vK4Ln4Do8Brkc0Xg CPOQZJ/9sDJqk6N7ajXUllXmSiBEe61zPyKaFY0ilvSB1HbgovTqVJJKcfAALsqTSimV 3CeArSD7MlwskIHEkasriaESH1a65nBH10UixrpWSzKV5X47YeDuBBIhBhdsubzTtRqW MryJ9PZEmYE8pRNTBYXVIeBvdOUi2ysFHWfAgZT9hYOElHpYbEQu0sWwjpczXF1OnAo6 E+Tb2IHdP1j9XU6HdVFHk+pyRe6UDlg+Bms+NXvKrOP7EBhtohHaU69HhZNeobnce3vv 9EXA== 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=kYY2KGeTwdILF2FlXV59Zq9qsKbWJTGhUy3mp43RMqs=; b=kLrWfzjbnBTObY9IHRXbyX2yVd7peCzNv6aVKHMqvlDCmkeSie9LJAkpxKDnYNutvl wr2H5uj8uI9IDBybq4tMSnvZm+Mk6UTJoY6T+UIB8LxsUi65fd7WGVX13EwCAVD2iesp /2GYGvsoTPu9oPD0Toi5+zxqozmbmqig/QKasqR5CPe2F7D5HxxdzeRmQcZGenicrRM4 hqh1Jo7/ynNCtLk/MFxYf5G9qEiQgqrPe/jEHKpSRJbyqY0Y6YUZ8UcW6PenFEk6SJou nz+z21ewifgs8J0TTF/LXM+tcbBi+rYVn/caZrgkz6/H09dVhdGXRVTGvIKAOGbnrQ/9 UzZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MGdVaAia; 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 z18si17173007pjt.94.2019.07.25.15.19.41; Thu, 25 Jul 2019 15:19:41 -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=MGdVaAia; 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 S1727247AbfGYWTj (ORCPT + 29 others); Thu, 25 Jul 2019 18:19:39 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39183 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727221AbfGYWTi (ORCPT ); Thu, 25 Jul 2019 18:19:38 -0400 Received: by mail-pf1-f195.google.com with SMTP id f17so19441234pfn.6 for ; Thu, 25 Jul 2019 15:19:38 -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=kYY2KGeTwdILF2FlXV59Zq9qsKbWJTGhUy3mp43RMqs=; b=MGdVaAiayGKurKmlzzCapq5eHfl991sITtHwnpq57sUvocciiP2DfUAFGrLQwQ5b3E Q4Pl6pdJhnsUGMO/96C17+R8qtS6XLJIY0EV3Ddf5i4vq52lxUrMHIswICArv0rEZWZi wVJ99efLWVwxJwHhpdcLNTj41W5Ygfhk2PAGcLa4iD1JZGPgvQDFcEly4Tm+brAYeAMU SyuVLdpHehJg5DH/WlqEitRMLyMPQkOYrwF2deaULOQlqG5MJTMbiej+AqMIzXQbeAfF QVWDkwkkbQt4RhI100prhoolWmR7+Z22BA8mOnOB5UJ+bqULJrlcm/Iv3lT/yw+fa3gN NhIg== 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=kYY2KGeTwdILF2FlXV59Zq9qsKbWJTGhUy3mp43RMqs=; b=iwzG1TD5f1sz7jFzCjM788W9GnaIZK+Y/7nKfDYBuycZOOpSugqMyd8zxSvqRnAeBt +KgdZPHnPPQxEFYctZyFRSh/9DXbNylj8/KkEnCvlIXVj9ei9LNrP1gqF0i+jUWbQdfm kKf3nTAubm+HQObExPgUrwThWZ/UKGK6/Q6BzPrTl5S03q66Iconx9QnGgwzSIzIZLHQ Q7cUlkUGzWWtFlx8Fm0YVy/YE7lHYJH2DogcbiEDTFtC9Oqr13JfhokxPJX6BVJoPWso +GNiUTge9oAMRG6wz4H83d0m3IkRSycebN3YFSqJXKSi/ZEqs2wFMHHNd1XyjytfF+N0 zAZA== X-Gm-Message-State: APjAAAX46/59mRsp4ihJyy9uAvPsXZ947ncHSJfFu+1yN/G3an4Q2pMT 98CgYN3Ko7DjrRKj6xlSNyKo0Sibc7+a5g== X-Received: by 2002:a17:90a:fa07:: with SMTP id cm7mr92107753pjb.138.1564093177830; Thu, 25 Jul 2019 15:19:37 -0700 (PDT) Received: from localhost ([49.248.170.216]) by smtp.gmail.com with ESMTPSA id v13sm61288573pfe.105.2019.07.25.15.19.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 15:19:37 -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 11/15] arm64: dts: qcs404: thermal: Add interrupt support Date: Fri, 26 Jul 2019 03:48:46 +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 interrupt for the tsens controller. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 42 +++++++++++++++------------- 1 file changed, 22 insertions(+), 20 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 3d0789775009..0c715f9cc011 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -280,6 +280,8 @@ nvmem-cells = <&tsens_caldata>; nvmem-cell-names = "calib"; #qcom,sensors = <10>; + interrupts = ; + interrupt-names = "tsens"; #thermal-sensor-cells = <1>; }; @@ -1071,8 +1073,8 @@ thermal-zones { aoss-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 0>; @@ -1086,8 +1088,8 @@ }; q6-hvx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 1>; @@ -1101,8 +1103,8 @@ }; lpass-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 2>; @@ -1116,8 +1118,8 @@ }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 3>; @@ -1131,8 +1133,8 @@ }; cluster-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 4>; @@ -1165,8 +1167,8 @@ }; cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 5>; @@ -1199,8 +1201,8 @@ }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 6>; @@ -1233,8 +1235,8 @@ }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 7>; @@ -1267,8 +1269,8 @@ }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 8>; @@ -1301,8 +1303,8 @@ }; gpu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 9>; From patchwork Thu Jul 25 22:18:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 169763 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12182775ilk; Thu, 25 Jul 2019 15:19:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRKsHiRbdQC8+H3HrJeuDttfM7vHkfU5rzyUELi/fiOFud+05fIhr8G/A+RxLLiNGWMj/5 X-Received: by 2002:a63:2b8e:: with SMTP id r136mr54691693pgr.216.1564093185803; Thu, 25 Jul 2019 15:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564093185; cv=none; d=google.com; s=arc-20160816; b=Hqpf8uixMudTjvDkMhsn4oes3yWOvOGPrsFo44ShCmoVw76CcUoD8IZUJLbXpQfsVI +TNtp98TK6se9On92R0S/NzUFx6a9FryOBoGuNoy59bTwEb+2Nif3p2dyi5TKnwUW6lb nhXhBIs6Bf/WlXtkBno73Ge2T3YGptPRutIG1HddfJ+Nicyn+pvo0HeaL5WhgEHQXoRl moaFIGWGI4Q4rUBd2WJ1eE/z8KBiMEfZBjXVyAdYHv3Oek/K1vxZLo/ScX49fTnFgO5K l7NW7tteYSB5Kk6q/ixsmWNPWZisbJLfBbY5Vzu3oftnIphlC16PWDam5CKNvaUcCzMf sz/w== 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=iTUMfB0Wim/a1bz2uuCGtMiuUYFdGiUbnvdD+HL9w8A=; b=X20LM3dmKEIHc5CYe3eXhesuL7SHYx2dQGqavLSNKAkLC4jw437xQK7CbVwrXW22lS SUAdsgplo7ztGgbKXK8pV+XrpoPwCwy5nMLs5g3S+8MWqWj5nXOcnktKdMk5dvYzo+4W T26/2XIQ05WG+WdscM5PMxaU9y7MZVVvZA37nW7jfdY/Lm7arpX2HQ+3Ai8DIGMTL9U+ 6McytHkJTeQXIw8Glf7nDzHN6kmJbDGwDNQ+EYvEbtX/dHolDq4Cf8lGg2HNIGCnv/VC R7ncvpXus3YjLyVTo4YIFWk0o2M7FVAiOaGZHhepP6HUsQ3QRMATNDz/mCRRSCwM1KQ+ 4iPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OJdrO8Nf; 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 z18si17173007pjt.94.2019.07.25.15.19.45; Thu, 25 Jul 2019 15:19:45 -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=OJdrO8Nf; 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 S1727299AbfGYWTo (ORCPT + 29 others); Thu, 25 Jul 2019 18:19:44 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40318 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727273AbfGYWTm (ORCPT ); Thu, 25 Jul 2019 18:19:42 -0400 Received: by mail-pg1-f195.google.com with SMTP id w10so23721014pgj.7 for ; Thu, 25 Jul 2019 15:19:41 -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=iTUMfB0Wim/a1bz2uuCGtMiuUYFdGiUbnvdD+HL9w8A=; b=OJdrO8NfixWF+IfHJd7NkzCiHvqJm5zt41U9YgoUEqvpVfGa6OPD1GxjM6vfwYvCrF XYSXsJ2BqjSnZlEd3dP24brGNtsmKEXdi5Nlldeld2mew3YrYN33G2e7hfXoKGCF2wVl yT4SZzUxicgQ2bVQs9424GpVZU74Wsl5BW9OpPS0GWn1BrtCJ1ksG3FkUDwlbun+GreU u6jhls4NaCCGjj3KDEOk1/On71du2K/CwBGWrTt8c7lOGY9QgDN071p8gf8O4xw26SUg 0PjFtA+5GPm2ii9otFWj65Bv8DYXcWhidXV3hu5dhZW4hqb92MtcCBxjghS2gEvNdE+L l2KQ== 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=iTUMfB0Wim/a1bz2uuCGtMiuUYFdGiUbnvdD+HL9w8A=; b=C4aArdrTIP5nxwMn/uLNoMuCjCMqAZ24Ad94NWtu8pfRbWJy8Ct9IhS+VFeckOoBL4 pqIMmTT0z4RWiSB6oDfBYV82/h2Kj9Udgxtkm5C33byACSI2sCkKm5MlO/9nijONdwIq rR0aDRU/b/GPjrYD211FS0iY3T9SZiado9e+P6PG0Hkih0rJSgINvgsr1WdyMZV1CQLw 4vUHoFqaurF7jVLG3DVx3MBMuyHnqYAL1rx3UIKUWkFRRz+px8mbn3AADZRD53Sn84wM STgpCaOgLb3/bGYs9dF1UZ1rBBHOZ+2mNu7kdXt175MxH2myXVsKNY7JNVAvgytbwh8s vdEw== X-Gm-Message-State: APjAAAWXEAjjQ8WwW688gtE5jv/LN3c1zHqHOEMDURTEhXGOoR5mN+fm 5IejvfQf1aHS22X8HXKO+vvVZrpvDEj1ow== X-Received: by 2002:aa7:8817:: with SMTP id c23mr19090975pfo.146.1564093181321; Thu, 25 Jul 2019 15:19:41 -0700 (PDT) Received: from localhost ([49.248.170.216]) by smtp.gmail.com with ESMTPSA id e10sm51975982pfi.173.2019.07.25.15.19.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 15:19:40 -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: masneyb@onstation.org, devicetree@vger.kernel.org Subject: [PATCH 12/15] arm64: dts: msm8974: thermal: Add interrupt support Date: Fri, 26 Jul 2019 03:48:47 +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 interrupt for the tsens controller. Signed-off-by: Amit Kucheria --- Cc: masneyb@onstation.org arch/arm/boot/dts/qcom-msm8974.dtsi | 36 +++++++++++++++-------------- 1 file changed, 19 insertions(+), 17 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index d32f639505f1..d10d47d20ab8 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -139,8 +139,8 @@ thermal-zones { cpu-thermal0 { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 5>; @@ -159,8 +159,8 @@ }; cpu-thermal1 { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 6>; @@ -179,8 +179,8 @@ }; cpu-thermal2 { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 7>; @@ -199,8 +199,8 @@ }; cpu-thermal3 { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 8>; @@ -219,8 +219,8 @@ }; q6-dsp-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 1>; @@ -234,8 +234,8 @@ }; modemtx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 2>; @@ -250,7 +250,7 @@ video-thermal { polling-delay-passive = <0>; - polling-delay = <1000>; + polling-delay = <0>; thermal-sensors = <&tsens 3>; @@ -279,8 +279,8 @@ }; gpu-thermal-top { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 9>; @@ -294,8 +294,8 @@ }; gpu-thermal-bottom { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 10>; @@ -531,6 +531,8 @@ nvmem-cells = <&tsens_calib>, <&tsens_backup>; nvmem-cell-names = "calib", "calib_backup"; #qcom,sensors = <11>; + interrupts = ; + interrupt-names = "tsens"; #thermal-sensor-cells = <1>; }; From patchwork Thu Jul 25 22:18:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 169764 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12182810ilk; Thu, 25 Jul 2019 15:19:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcneSUYCJ61aIUTF/pqCo+VKSReU4Jras6/SuXdapl0y3+9F72wP8U8FGQL5gnaAsrWF2O X-Received: by 2002:aa7:9713:: with SMTP id a19mr962613pfg.64.1564093188812; Thu, 25 Jul 2019 15:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564093188; cv=none; d=google.com; s=arc-20160816; b=Exk+SrJ5c9TT+8C/a5Sh/jgU5d+nSAQ13aKgYtMrKfPCtq+54j9tnLFZDRWLdTsws1 +LP9kqRBstJz5QNQG+JHlXu0RP7ja7sjDiHtSr94Kusq+TTPfZ0dtTxz33rx1PLMEA7Z XC87W7mCbZP2DuANIKKuHfs8ViOdCwMpX/F7c07Q2iZ8UW2ePxWzXn0SGHxMKAoP89Ha LpjiCM17YJinfPs0mN2jbgRFuP1y49FYX+NqcgbK4UgogliWq2w25qE//r3At0o8N3kD EmG1UJCuuW4D1QbwmnmWKSdTsrD+2NG7XfmM83J1Su/6I3l2lspasHh9vX3XACFmpPIS lnzw== 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=aNjPKzyo6hMwnV5/FxL6BFlsZjKINMXfLX+sOTPPGgw=; b=RZhz9cbJKu2xUhINU6qXgDw0c2H2qlI+oa4HjlUr6icC7kYlAwZX1MO9d73UDJNpoM 3hKk6aklaPThDLz6d99fmhBUNRADuSkKfKN67Nw8jYeZiWyQa+KFjteU/ys6K2f9nUV3 TVHgfelJdAf4lvPfZyM1hwkVmwf4Xi0qpBlFAbW3G9XJgwMZtOzU7M4Pv31vZN4ZSGzj P4ZjgLNjCCxT3GFuVWTSHjUCAU15/3ihPUZYvV509vhhVZP22Y1+Ee8FEVTWSw1tr2VO SfbSkhwXWiZhTNPT5zkKrSGk0Xi6xBMprWTEGzifoSiSVc9UNJ6l10ENuX8aBDsGxj4n JVNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R4IbPtu1; 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 z18si17173007pjt.94.2019.07.25.15.19.48; Thu, 25 Jul 2019 15:19:48 -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=R4IbPtu1; 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 S1727322AbfGYWTr (ORCPT + 29 others); Thu, 25 Jul 2019 18:19:47 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40574 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727303AbfGYWTp (ORCPT ); Thu, 25 Jul 2019 18:19:45 -0400 Received: by mail-pl1-f196.google.com with SMTP id a93so23882650pla.7 for ; Thu, 25 Jul 2019 15:19:45 -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=aNjPKzyo6hMwnV5/FxL6BFlsZjKINMXfLX+sOTPPGgw=; b=R4IbPtu14lVzwjLml/VV6llOaDJhPxOcQxNKK86jt7NrYwJQMEAeOm+pk0fnHP8ZGk Vg6OSP3yGlD1/8MRMWr0UyRW22EUlpB2Ic0BuiUqGwucMK6nXrDsDptzQBbBfx1LbYzx JS9Dqw5nTqzk3aFcTsjt/CK7055SaTSfb1pQDtfF+Gw8wXGxcmJp+3mvj01yD4b6Xpaq OWMQDFfEFZWJ1CU92Y1W5wn5YHLxMFiKyB5VeC73xdYXVAlhXr7fTS+Gt0Go+9Fu0Q8+ TkdRBkWCVODWrRiQWIPa0k2G9HflNBloEcWA1ebIQCcReoBLKBI/JyyK6Op1TKIJ6bmW O8ww== 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=aNjPKzyo6hMwnV5/FxL6BFlsZjKINMXfLX+sOTPPGgw=; b=UqNeQ1pj9aw+/K3Y5vDUwbLNtsLOxtXgr4wiEkKQ52O4L8t9M9wEUG5MeKQB1aMNu/ gVJDPp9Dk7uBOs3sXeLKUkOkqYWaB1/ncHVGbKvszvSvl48lGygQW22QVc2Y6tyj8ZO0 XEmauY5y8PPbsLCCfJqMKS9JNUVrxzlc9atE1zUG1vBlIF1giE2TzL7+tEpLLG0fdwgO iD/MWRg8Az1HF4oBLz3orwDT5+TGw2K7nsTZFCQ9yyjeVzFHUZlylx0w5AkEbcdoof3K ilhlfiT6xhIvej0B/0lPd9qSUEjd+dU1/9v+9uMT6pJw5oC/4TCdQQmQdKdLBqq8JHEz RkKA== X-Gm-Message-State: APjAAAWXND+qt3/EY2uKDVLuBfrcpiowPbWbFKqN8we9qjVklEIaoY2v Ll8l0yU34D47G/ZFI/IawQOhhYQsVL7n9g== X-Received: by 2002:a17:902:8d92:: with SMTP id v18mr94249402plo.211.1564093184755; Thu, 25 Jul 2019 15:19:44 -0700 (PDT) Received: from localhost ([49.248.170.216]) by smtp.gmail.com with ESMTPSA id t26sm39405317pgu.43.2019.07.25.15.19.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 15:19:44 -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 13/15] arm64: dts: msm8916: thermal: Add interrupt support Date: Fri, 26 Jul 2019 03:48:48 +0530 Message-Id: <380196111ac2b6faa6dfb27f26189ddaa1e6e606.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 interrupt for the tsens controller. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 8686e101905c..400045a100ca 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -176,8 +176,8 @@ thermal-zones { cpu0_1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 5>; @@ -206,8 +206,8 @@ }; cpu2_3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 4>; @@ -236,8 +236,8 @@ }; gpu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 2>; @@ -256,8 +256,8 @@ }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 1>; @@ -271,8 +271,8 @@ }; modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-sensors = <&tsens 0>; @@ -816,6 +816,8 @@ nvmem-cells = <&tsens_caldata>, <&tsens_calsel>; nvmem-cell-names = "calib", "calib_sel"; #qcom,sensors = <5>; + interrupts = ; + interrupt-names = "tsens"; #thermal-sensor-cells = <1>; };