From patchwork Wed Sep 11 07:16:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 173596 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp374502ilq; Wed, 11 Sep 2019 00:17:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqww4IqNz2NkxIoFtQVD9ZKEyQWDG5/PWgFE4cLMS0QRWFJqc5k8lRLM5TQCTBH+/SAtt/yw X-Received: by 2002:a50:e68d:: with SMTP id z13mr34652668edm.142.1568186232105; Wed, 11 Sep 2019 00:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568186232; cv=none; d=google.com; s=arc-20160816; b=vk3BTdx0ImN5C/RgjW9Epd7WCaKQobqK41msSSAdgnOFHU0dphOlbONApT7X2PoqWQ gxOOxFBPM8RXqVOuXNpfaDbaumt6ZzL8iM5VFxGxqZjjLO9x9oepbJm7ezpSC2SnpEKH h1VJBBoMzf1aI9y3L3uA5F3Lu3ySQYUZ4jvHtqIOZXeeq/q/fn7AsnMY4Q0Hv71freEZ 4lGo+kScgHE2ANg+faNrrxgzm9cuWJ2XtrCEeusUSHkjfZ4gSVZkK+0YwYP5vtfVTmcm GkTBE/BgodL0larALt8xyCnKVdEcdwA4Za+V8aRbb1wK+tmmU3x2IPVZpa2cRizliMuX lxpQ== 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=lIlDkOFMtaJ7NzGQY3181qnj2S+zXBje3XXKns63Nkk=; b=m+dTILoyM5Yiv5lMq33nsmorny8xkqrTKOh7oUosx9DgKOOUdcgasmr2sXrL2h7hGL EENCVoWGlKNchSF1Kd1K+FlUwYQZiWfqAnrdCaXV9TD2Fi7PJzeGRNeipmC0c9EAqmI4 kq7TBb9mN1/n5HBUWI/AkJFMRmTeVzptIpBvNjDCtgW5F5PLjYK4NPwMUNBN9Bnflt97 hdZS/H+QDKJa7NQkjXFw4OTIegMooJ+rzyZPeSQ2Wxq/6nN+VQUXixUbdwe0I2Bbjjd3 WVqu3LhW1cNbpBN9H6EBkR61yHWKGya1yWZISgLQwMCmkC3gO5DLIt1WHV7T+EpAer2h /iLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UAAtoaen; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 d12si984869eds.351.2019.09.11.00.17.11; Wed, 11 Sep 2019 00:17:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=UAAtoaen; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727185AbfIKHRL (ORCPT + 8 others); Wed, 11 Sep 2019 03:17:11 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:34052 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727171AbfIKHRL (ORCPT ); Wed, 11 Sep 2019 03:17:11 -0400 Received: by mail-pf1-f194.google.com with SMTP id r12so13125568pfh.1 for ; Wed, 11 Sep 2019 00:17:10 -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=lIlDkOFMtaJ7NzGQY3181qnj2S+zXBje3XXKns63Nkk=; b=UAAtoaengNlBOMQoyOKBlIE00deTToweXY5/YcG0mfMNKfwPpkulBuduHuOsfhCZzC 6Hf6M84byWt8x6cIUHT9ECcCfLrjcv3k1TPDAgVrOtlivFq/Tx7PvEmC6mxgGw+2Om5u Uc6XrnGR271u5bApaQLWn398fedVex4YIkFqpA8moReQvUtMxZ9N21EyjdFF6W9RssuU vWed0m4TQIRE6d/2te7b6RG/xvY9zjHT6a+7cNT2gZpD/fAzgqU+LppNlGaW2/qKs9rU UQbL/0Jv5ehnpRh7JJuz4+VT0y9c/nLr8bZHiYE8+sw8LixcQuutJOZmEUGdbuluffeB RGmA== 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=lIlDkOFMtaJ7NzGQY3181qnj2S+zXBje3XXKns63Nkk=; b=e7+mE1V3MK2noK/+2HMcvFz5FPVrnOr0sLV3av4+Lu5bKMaQ7Dc4M74rDJ4jJJInt5 etEpNJvE1tw6F/YoVQiFD28h+EQ+emqHuaL43pSFqqKQO66v3/TlsSLXIKhYZrQylH5M Js6SDp6ptxT2iMs4jTwUsxaJ4X49WtYPm3gTrZwu1JcJeBt1DpoHnJgHvO29m9m2Rark VI6Nd+mLQuRmo2vAUVMF4L1mhSrgHERepX1NKUqvKVL+nt+JP2wgA4XR1K5Qft1/YVTO Nk5iSSsZiGa6mXuebgf1M6fNQRCMwvJKT738mNx9QRhuaSSRjm1ew0uQOmmVYJaId7FW HM+g== X-Gm-Message-State: APjAAAVbh3E9UK2kuESd1Vqivowoezj2btkHdksAKb9V6CpUWeD2OcU5 B5F82+9dOMR9bMneHwvLUQmXfg== X-Received: by 2002:aa7:980c:: with SMTP id e12mr39037859pfl.79.1568186230152; Wed, 11 Sep 2019 00:17:10 -0700 (PDT) Received: from localhost ([49.248.201.118]) by smtp.gmail.com with ESMTPSA id u4sm18343585pfh.55.2019.09.11.00.17.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 00:17:09 -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, masneyb@onstation.org, swboyd@chromium.org, Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v3 08/15] arm64: dts: sdm845: thermal: Add interrupt support Date: Wed, 11 Sep 2019 12:46:25 +0530 Message-Id: <56e10197d9fc5d31a9446c944de97f3dbe032883.1568185732.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Register upper-lower interrupts for each of the two tsens controllers. Signed-off-by: Amit Kucheria Reviewed-by: Stephen Boyd --- 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..fdd74c39b744 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 = "uplow"; #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 = "uplow"; #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>;